#include "Cadence.h" #ifndef _TEST_USER_H_ #define _TEST_USER_H_ #ifdef __cplusplus extern "C" { #endif // __cplusplus #define TIMER1 1 #define TIMER_INT_FLAG_UP 0 #define TIMER_INT_FLAG_CH1 1 #define TIMER_INT_FLAG_CH2 2 #define TIMER_INT_FLAG_CH3 3 #define GPIOB 1 #define TIMER_CH2CV(timex) testCh2CapValue[timex] #define GPIO_ISTAT(gpiox) testGpioBValue[gpiox] extern int testTimerIntFlg[2][4]; extern int testCh2CapValue[2]; extern int testGpioBValue[2]; int timer_interrupt_flag_get(int timer_periph, int interrupt); void timer_interrupt_flag_clear(int timer_periph, int interrupt); #ifdef __cplusplus } #endif // __cplusplus #endif