test_user.c 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 testTimerIntFlag2[2];
  8. int testCh2CapValue[2];
  9. int testCh3CapValue[2];
  10. int testGpioBValue[2];
  11. /* Variables and Functions mock */
  12. LPF_OUT scm_stMotoPwrInLpf;
  13. LPF_OUT scm_stIqLoadLpf;
  14. UWORD scm_uwSpdFbkLpfAbsPu;
  15. UWORD hw_uwADC0[8];
  16. MC_UpperPCInfo_Struct_t MC_UpcInfo;
  17. UWORD adc_uwRdsonUReg;
  18. UWORD adc_uwRdsonVReg;
  19. UWORD adc_uwRdsonWReg;
  20. UWORD adc_uwADDMAPhase1;
  21. SYS_FMS_FLAG switch_flg;
  22. int timer_interrupt_flag_get(int timer_periph, int interrupt)
  23. {
  24. return testTimerIntFlg[timer_periph][interrupt];
  25. }
  26. void timer_interrupt_flag_clear(int timer_periph, int interrupt)
  27. {
  28. testTimerIntFlg[timer_periph][interrupt] = 0;
  29. }
  30. void stl_voTbcProc()
  31. {}
  32. void stl_voSystickProc()
  33. {}
  34. void stl_voDoRunTimeChecks()
  35. {}
  36. void NVIC_SystemReset()
  37. {}