12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #include "Cadence.h"
- #include "InputCapture.h"
- #include "bikespeed.h"
- #include "torquesensor.h"
- #include "adc.h"
- #include "pwm.h"
- #include "torqobs.h"
- #include "pwrlim.h"
- #include "asr.h"
- #include "brake.h"
- #include "glbcof.h"
- #include "typedefine.h"
- #include "CodePara.h"
- #include "mathtool.h"
- #include "macroequ.h"
- #include "canAppl.h"
- #include "hwsetup.h"
- #include "Temp.h"
- #include "spdctrmode.h"
- #include "user.h"
- #include "FSM_1st.h"
- #include "api_rt.h"
- #include "api.h"
- #ifndef _TEST_USER_H_
- #define _TEST_USER_H_
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
- #define ADC0 0
- #define ADC1 1
- #define ADC_INT_FLAG_EOIC 0
- #define TIMER0 0
- #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 GPIOA 0
- #define GPIOB 1
- #define GPIOC 2
- #define ADC_IDATA0(adcx) testAdcInjectData0[adcx]
- #define ADC_IDATA1(adcx) testAdcInjectData1[adcx]
- #define ADC_IDATA2(adcx) testAdcInjectData2[adcx]
- #define TIMER_CH2CV(timerx) testCh2CapValue[timerx]
- #define TIMER_CH3CV(timerx) testCh3CapValue[timerx]
- #define GPIO_ISTAT(gpiox) testGpioBValue[gpiox]
- #define TIMER_INTF(timerx) testTimerIntFlag2[timerx]
- //#define ABS(x) ((x) >= 0 ? (x) : (-(x)))
- extern int testAdcInjectData0[2];
- extern int testAdcInjectData1[2];
- extern int testAdcInjectData2[2];
- extern int testAdcIntFlg[2][2];
- extern int testTimerIntFlg[2][4];
- extern int testTimerIntFlag2[2];
- extern int testCh2CapValue[2];
- extern int testCh3CapValue[2];
- extern int testGpioBValue[2];
- extern UWORD hw_uwADC0[8];
- extern UWORD adc_uwRdsonUReg;
- extern UWORD adc_uwRdsonVReg;
- extern UWORD adc_uwRdsonWReg;
- extern UWORD adc_uwADDMAPhase1;
- 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
|