test_user.h 662 B

1234567891011121314151617181920212223242526272829303132
  1. #include "Cadence.h"
  2. #ifndef _TEST_USER_H_
  3. #define _TEST_USER_H_
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif // __cplusplus
  7. #define TIMER1 1
  8. #define TIMER_INT_FLAG_UP 0
  9. #define TIMER_INT_FLAG_CH1 1
  10. #define TIMER_INT_FLAG_CH2 2
  11. #define TIMER_INT_FLAG_CH3 3
  12. #define GPIOB 1
  13. #define TIMER_CH2CV(timex) testCh2CapValue[timex]
  14. #define GPIO_ISTAT(gpiox) testGpioBValue[gpiox]
  15. extern int testTimerIntFlg[2][4];
  16. extern int testCh2CapValue[2];
  17. extern int testGpioBValue[2];
  18. int timer_interrupt_flag_get(int timer_periph, int interrupt);
  19. void timer_interrupt_flag_clear(int timer_periph, int interrupt);
  20. #ifdef __cplusplus
  21. }
  22. #endif // __cplusplus
  23. #endif