删除 user.H
This commit is contained in:
120
user.H
120
user.H
@@ -1,120 +0,0 @@
|
||||
#ifndef _user_H_
|
||||
#define _user_H_
|
||||
|
||||
#define DF_SwTx 6
|
||||
#define DF_SwRx 7
|
||||
#define DF_RXTIME 11
|
||||
#define DF_SwTxKGF1 8
|
||||
#define DF_SwTxKGF2 10
|
||||
#define DF_SwTxTemp 12
|
||||
#define DF_SwRxKGF2 13
|
||||
|
||||
|
||||
|
||||
#define dfPwmH 10 //PWM<57>ĸߵ<C4B8>ƽʱ<C6BD>䣬10<31><30>10ms<6D><73><EFBFBD>ң<EFBFBD><D2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>20181227
|
||||
|
||||
|
||||
#define WAKE_UP_PIN P1_4 //<2F><>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define KGF_PIN P0_0 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define CAN_PIN P1_6 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define STOP_PIN P1_2 //<2F><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
#define BATTERY_PIN P3_6 //<2F><><EFBFBD>ؿ<EFBFBD><D8BF>ƽ<EFBFBD>
|
||||
|
||||
|
||||
#define ON 0 //<2F><><EFBFBD><EFBFBD>
|
||||
#define OFF 1 //<2F>ɿ<EFBFBD>
|
||||
|
||||
#define FAULT 0
|
||||
#define NORMAL 1
|
||||
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ״̬ö<CCAC><C3B6>
|
||||
typedef enum {
|
||||
POWER_STANDBY,
|
||||
POWER_WORKING,
|
||||
POWER_EMERGENCY,
|
||||
POWER_PRE_CHARGE,
|
||||
POWER_NEUTRAL,
|
||||
POWER_SLEEP
|
||||
} PowerState;
|
||||
|
||||
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ط<EFBFBD>ģ<EFBFBD><C4A3>
|
||||
typedef struct _StrInfCanKGFOutput
|
||||
{
|
||||
//----------<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0x11000002 --------------------------------------------
|
||||
unsigned int KGF01 : 1; // ͨ<><CDA8>1
|
||||
unsigned int KGF02 : 1; // ͨ<><CDA8>2
|
||||
unsigned int KGF03 : 1; // ͨ<><CDA8>3
|
||||
unsigned int KGF04 : 1; // ͨ<><CDA8>4
|
||||
unsigned int KGF05 : 1; // ͨ<><CDA8>5
|
||||
unsigned int KGF06 : 1; // ͨ<><CDA8>6
|
||||
unsigned int KGF07 : 1; // ͨ<><CDA8>7
|
||||
unsigned int KGF08 : 1; // ͨ<><CDA8>8
|
||||
unsigned int KGF09 : 1; // ͨ<><CDA8>9
|
||||
unsigned int KGF10 : 1; // ͨ<><CDA8>10
|
||||
unsigned int KGF11 : 1; // ͨ<><CDA8>11
|
||||
unsigned int KGF12 : 1; // ͨ<><CDA8>12
|
||||
unsigned int KGF13 : 1; // ͨ<><CDA8>13
|
||||
unsigned int KGF14 : 1; // ͨ<><CDA8>14
|
||||
unsigned int KGF15 : 1; // ͨ<><CDA8>15
|
||||
unsigned int KGF16 : 1; // ͨ<><CDA8>16
|
||||
|
||||
unsigned int can_rx2 : 8; // <20><><EFBFBD><EFBFBD>
|
||||
unsigned int can_rx3 : 8; // <20><><EFBFBD><EFBFBD>
|
||||
unsigned int can_rx4 : 8; // <20><><EFBFBD><EFBFBD>
|
||||
unsigned int can_rx5 : 8; // <20><><EFBFBD><EFBFBD>
|
||||
unsigned int can_period_h : 8; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>λ
|
||||
unsigned int can_period_l : 8; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>λ
|
||||
|
||||
//----------<2D><><EFBFBD><EFBFBD>0x11000003 ---------------------------------------------------
|
||||
unsigned int pwm_01 : 4; // PWMͨ<4D><CDA8>1
|
||||
unsigned int pwm_02 : 4; // PWMͨ<4D><CDA8>2
|
||||
unsigned int pwm_03 : 4; // PWMͨ<4D><CDA8>3
|
||||
unsigned int pwm_04 : 4; // PWMͨ<4D><CDA8>4
|
||||
unsigned int pwm_05 : 4; // PWMͨ<4D><CDA8>5
|
||||
unsigned int pwm_06 : 4; // PWMͨ<4D><CDA8>6
|
||||
unsigned int pwm_07 : 4; // PWMͨ<4D><CDA8>7
|
||||
unsigned int pwm_08 : 4; // PWMͨ<4D><CDA8>8
|
||||
unsigned int pwm_09 : 4; // PWMͨ<4D><CDA8>9
|
||||
unsigned int pwm_10 : 4; // PWMͨ<4D><CDA8>10
|
||||
unsigned int pwm_11 : 4; // PWMͨ<4D><CDA8>11
|
||||
unsigned int pwm_12 : 4; // PWMͨ<4D><CDA8>12
|
||||
unsigned int pwm_13 : 4; // PWMͨ<4D><CDA8>13
|
||||
unsigned int pwm_14 : 4; // PWMͨ<4D><CDA8>14
|
||||
unsigned int pwm_15 : 4; // PWMͨ<4D><CDA8>15
|
||||
unsigned int pwm_16 : 4; // PWMͨ<4D><CDA8>16
|
||||
} StrInfCanKGFOutput;
|
||||
|
||||
typedef union _UnInfCanKGFOutput
|
||||
{
|
||||
StrInfCanKGFOutput bit_data; // ʹ<>ö<EFBFBD><C3B6><EFBFBD><EFBFBD>Ľṹ<C4BD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ubyte arr[sizeof(StrInfCanKGFOutput)]; // ͨ<><CDA8><EFBFBD>ṹ<EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>С
|
||||
} UnInfCanKGFOutput;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//---<2D>ⲿҪʹ<D2AA>ñ<EFBFBD><C3B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>---------------------------------------------------------------------
|
||||
extern UnSwOut UnSwOut_1;
|
||||
extern UnInfCan UnInfCan_1;
|
||||
extern uword CntCan_1;
|
||||
extern bit FlgCan_1;
|
||||
extern ubyte can_error_cnt;
|
||||
extern ubyte can_error_flg;
|
||||
|
||||
|
||||
extern UnInfCanKGFOutput un_inf_can_kgf_output1;//kgf<67><66><EFBFBD><EFBFBD>
|
||||
|
||||
void CanRXTX(void);
|
||||
void SwSample(void);
|
||||
void LedDr(void);
|
||||
void RTCProcess(void);
|
||||
void CanErrorProcess(void);
|
||||
void CanTransmit(void);
|
||||
void canSendTo(ubyte index, ubyte *buff);
|
||||
#endif
|
||||
Reference in New Issue
Block a user