123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #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 "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 "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(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];
- 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
|