1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #include "Cadence.h"
- #include "bikespeed.h"
- #include "torquesensor.h"
- #include "adc.h"
- #include "pwm.h"
- #include "torqobs.h"
- #include "pwrlim.h"
- #include "asr.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"
- #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 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(timex) testCh2CapValue[timex]
- #define TIMER_CH3CV(timex) testCh3CapValue[timex]
- #define GPIO_ISTAT(gpiox) testGpioBValue[gpiox]
- #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 testCh2CapValue[2];
- extern int testCh3CapValue[2];
- extern int testGpioBValue[2];
- 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
|