tte_clock_sync.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TTE_CLOCK_SYNC_H_
00019 #define TTE_CLOCK_SYNC_H_
00020
00021 #include "tte_common.h"
00022 #include "tte_config.h"
00023 #include "tte_core.h"
00024 #include "tte_hw_timer.h"
00025
00026
00027
00028 #define TTE_PCF_IC_OFF ( 3u)
00029 #define TTE_PCF_MEMB_OFF ( 4u)
00030 #define TTE_PCF_SYNC_PRIO_OFF (12u)
00031 #define TTE_PCF_SYNC_DOM_OFF (13u)
00032 #define TTE_PCF_PCF_TYPE_OFF (14u)
00033 #define TTE_PCF_TC_OFF (20u)
00034
00035
00036 #define TTE_DAMP_DIVIDENT (9)
00037 #define TTE_DAMP_DIVISOR (10)
00038 #define TTE_STARTUP_CHECK_CYCLE ((TTE_HZ)/1000)
00039
00040
00041
00042
00043 #define TTE_RX_BUFFERS_BEFORE_SYNC (2u)
00044
00046 extern int32_t tte_clock_sync(void);
00047
00050 int32_t tte_tt_sched_rx_bg(void);
00051
00052
00053
00054 extern void ns_to_tc(uint64_t ns, uint8_t *tc);
00055
00056
00057 extern void tc_to_ns(const uint8_t *tc, uint64_t *ns);
00058
00059
00060 #endif