Trim HSI until time sync packets are received
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
#ifndef INC_TIME_SYNC_H_
|
||||
#define INC_TIME_SYNC_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define TARGET_FREQ 16000000 // Hz
|
||||
#define TRIM_FREQ 48000 // Hz
|
||||
#define TIME_SYNC_INTERVAL 1000 // ms
|
||||
@ -9,5 +11,7 @@
|
||||
#define STARTUP_TIME_SYNC_TIME 5000 // ms
|
||||
|
||||
void time_sync_handle_frame();
|
||||
void time_sync_startup_check();
|
||||
void trim_hsi(int32_t delta);
|
||||
|
||||
#endif // INC_TIME_SYNC_H_
|
||||
|
||||
Reference in New Issue
Block a user