1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #include "test_user.h"
- int testAdcInjectData0[2];
- int testAdcInjectData1[2];
- int testAdcInjectData2[2];
- int testAdcIntFlg[2][2];
- int testTimerIntFlg[2][4];
- int testCh2CapValue[2];
- int testCh3CapValue[2];
- int testGpioBValue[2];
- /* Variables and Functions mock */
- LPF_OUT scm_stMotoPwrInLpf;
- LPF_OUT scm_stIqLoadLpf;
- UWORD scm_uwSpdFbkLpfAbsPu;
- UWORD hw_uwADC0[8];
- MC_UpperPCInfo_Struct_t MC_UpcInfo;
- UWORD adc_uwRdsonUReg;
- UWORD adc_uwRdsonVReg;
- UWORD adc_uwRdsonWReg;
- UWORD adc_uwADDMAPhase1;
- int timer_interrupt_flag_get(int timer_periph, int interrupt)
- {
- return testTimerIntFlg[timer_periph][interrupt];
- }
- void timer_interrupt_flag_clear(int timer_periph, int interrupt)
- {
- testTimerIntFlg[timer_periph][interrupt] = 0;
- }
- void stl_voTbcProc()
- {}
- void stl_voSystickProc()
- {}
- void stl_voDoRunTimeChecks()
- {}
- void NVIC_SystemReset()
- {}
- /*==== temp ====*/
- BOOL hw_blChrgOvrFlg = 1;
- BOOL hw_blPWMOnFlg;
- void hw_voPWMOn()
- {
- hw_blPWMOnFlg = 1;
- }
- void hw_voPWMOff()
- {
- hw_blPWMOnFlg = 1;
- }
- void hw_voPWMInit()
- {
- hw_voPWMOff();
- hw_blChrgOvrFlg = 0;
- }
- void hw_voThrPhsShrt()
- {
- hw_voPWMOn();
- }
- void hw_voCharge()
- {
- hw_blChrgOvrFlg = 1;
- }
|