test_user.c 653 B

12345678910111213141516171819202122232425262728
  1. #include "test_user.h"
  2. int testAdcInjectData0[2];
  3. int testAdcInjectData1[2];
  4. int testAdcInjectData2[2];
  5. int testAdcIntFlg[2][2];
  6. int testTimerIntFlg[2][4];
  7. int testCh2CapValue[2];
  8. int testCh3CapValue[2];
  9. int testGpioBValue[2];
  10. /* Variables and Functions mock */
  11. LPF_OUT scm_stMotoPwrInLpf;
  12. LPF_OUT scm_stIqLoadLpf;
  13. UWORD scm_uwSpdFbkLpfAbsPu;
  14. UWORD hw_uwADC0[ADC0_DMA_NUM];
  15. MC_UpperPCInfo_Struct_t MC_UpcInfo;
  16. int timer_interrupt_flag_get(int timer_periph, int interrupt)
  17. {
  18. return testTimerIntFlg[timer_periph][interrupt];
  19. }
  20. void timer_interrupt_flag_clear(int timer_periph, int interrupt)
  21. {
  22. testTimerIntFlg[timer_periph][interrupt] = 0;
  23. }