Trim HSI until time sync packets are received

This commit is contained in:
jazzpi
2022-07-31 12:09:55 +02:00
parent 171d3e40cd
commit 29e15fc0f7
3 changed files with 42 additions and 19 deletions

View File

@ -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_