10 #define ENABLE_TC_WAVEFORM_INTERRUPT 11 #define ENABLE_TC_CAPTURE_INTERRUPT 18 #define TC_SAMPLE_SENSORS_CHANNEL 0 19 #define TC_SAMPLE_SENSORS_ID ID_TC0 20 #define TC_SAMPLE_SENSORS_HANDLER TC0_Handler 21 #define TC_SAMPLE_SENSORS_IRQn TC0_IRQn 22 #define TC_SAMPLE_SENSORS_RATE_HZ 8000 26 #define TC_TIME_SYNC_CHANNEL 1 27 #define TC_TIME_SYNC_ID ID_TC1 28 #define TC_TIME_SYNC_HANDLER TC1_Handler 29 #define TC_TIME_SYNC_IRQn TC1_IRQn 30 #define TC_TIME_SYNC_IER_MASK TC_IER_LDRAS 34 #define TC_TIME_SYNC_TICKS_TO_SEC (5.3333333333333333333333333333333e-8) // 8/150,000,000 based on MCK/8 36 #define TC_TIME_BASE_ID ID_TC9 37 #define TC_TIME_CHANNEL 2 38 #define TC_TIME_HANDLER TC9_Handler 39 #define TC_TIME_IRQn TC9_IRQn 59 volatile uint64_t
time_cv(
void);
void timer_waveform_init(unsigned int channel, void(*func)(void))
void timer_time_init(void)
int timer_capture_enable(void)
volatile uint64_t time_cv(void)
int timer_capture_disable(void)
void timer_capture_init(void)
uint32_t timer_captured(void)