timesync tasking restructured

This commit is contained in:
Verkehrsrot committed 2019-04-07 16:13:04 +02:00
1 parent 0b40d0df70
commit 4f8d92ea7e
4 files changed
+113 -103

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@
#define TIME_SYNC_FRAME_LENGTH 0x05 // timeserver answer frame length [bytes]
#define TIME_SYNC_FIXUP 6 // calibration to fixup processing time [milliseconds]
extern TaskHandle_t timeSyncReqTask;
void timesync_init(void);
void send_timesync_req(void);
int recv_timesync_ans(uint8_t seq_no, uint8_t buf[], uint8_t buf_len);
void process_timesync_req(void *taskparameter);