This commit is contained in:
2025-10-21 20:34:06 +08:00
commit c3f6375140
55 changed files with 34675 additions and 0 deletions

247
Config.H.bak Normal file
View File

@@ -0,0 +1,247 @@
#ifndef _Configfff_H_
#define _Configfff_H_
//-----<2D><EFBFBD><EAB6A8>-----------------------------------------------------------------
//<2F><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>--------------------------------------------------------------
//֧<><D6A7>ƽ̨<C6BD><CCA8>
// ___XC164CM___ SSC<53><43><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF>ʽ
// ___XC2765X___ SSC<53><43><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF>ʽ
#define ___XC886CLM___
#define NumChipSw 2//<2F><><EFBFBD><EFBFBD>MC33993оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DF_SwInNum 1//<2F><><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD>оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DF_SwOutNum 1//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define Tog 2
#define On 1
#define Off 0
//#define N 6 //NΪż<CEAA><C5BC>
#define uchar unsigned char
#define ulong unsigned long
#define uint unsigned int
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CAN<41><4E><EFBFBD>ݽ<EFBFBD><DDBD>գ<EFBFBD><D5A3><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>___CANRX___
//#define ___CANRX___
//<2F><><EFBFBD>Ź<EFBFBD>
//#define DF_WDT P1_OUT_P0
//<2F><><EFBFBD><EFBFBD>
#define SwIn01 P3_0
#define SwIn02 P3_7
#define SwIn03 P2_4
#define SwIn04 P2_5
#define SwIn05 P3_1
#define SwIn06 P3_6
#define SwIn07 P2_6
#define SwIn08 P2_7
#define SwOut01 P3_2
#define SwOut02 P3_4
#define SwOut03 P4_0
#define SwOut04 P0_7
#define SwOut05 P0_0
#define SwOut06 P0_1
#define SwOut07 P1_3
#define SwOut08 P1_5
#define SwOut09 P0_3
#define SwOut10 P4_1
#define SwOut11 P3_5
#define SwOut12 P3_3
#define SwOut13 P1_4
#define SwOut14 P1_2
#define SwOut15 P0_2
#define SwOut16 P1_7
//<2F><><EFBFBD>زɼ<D8B2><C9BC><EFBFBD><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD>Ӳ<EFBFBD><D3B2><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD>Ӳ<EFBFBD><D3B2><EFBFBD>޸<EFBFBD><DEB8><EFBFBD>Ҫ<EFBFBD><D2AA>Ӧ<EFBFBD>޸<EFBFBD>
typedef union _SwSample
{
struct
{
ubyte Arr[DF_SwInNum][4];
}ArrData;
struct
{
//-------<2D>ɼ<EFBFBD>оƬ1-------------------------------
unsigned int S6 : 1;//FlgSg0
unsigned int S5 : 1;//FlgSg1
unsigned int S4 : 1;//FlgSg2
unsigned int S3 : 1;//FlgSg3
unsigned int S1 : 1;//FlgSg4
unsigned int S2 : 1;//FlgSg5
unsigned int S41 : 1;//FlgSg6
unsigned int S15 : 1;//FlgSg7
unsigned int S16 : 1;//FlgSg8
unsigned int S17 : 1;//FlgSg9
unsigned int S18 : 1;//FlgSg10
unsigned int S20 : 1;//FlgSg11
unsigned int S19 : 1;//FlgSg12
unsigned int S42 : 1;//FlgSg13
unsigned int S10 : 1;//FlgSp0
unsigned int S9 : 1;//FlgSp1
unsigned int S8 : 1;//FlgSp2
unsigned int S7 : 1;//FlgSp3
unsigned int S14 : 1;//FlgSp4
unsigned int S13 : 1;//FlgSp5
unsigned int S12 : 1;//FlgSp6
unsigned int S11 : 1;//FlgSp7
unsigned int : 1;//FlgInt
unsigned int : 1;//FlgThem
unsigned int : 8;//
}BitData;
}UnSwSample,*pUnSwSample;
//LED<45><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽṹ
typedef union _SwOut
{
struct
{
ubyte Arr[DF_SwOutNum][4]; //оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD>޸<EFBFBD>
}ArrData;
struct
{
//-------<2D><><EFBFBD><EFBFBD>оƬ1-------------------------------
unsigned int S21 : 1;//FLGSP0
unsigned int S22 : 1;//FLGSP1
unsigned int S23 : 1;//FLGSP2
unsigned int S24 : 1;//FLGSP3
unsigned int S34 : 1;//FLGSP4
unsigned int S33 : 1;//FLGSP5
unsigned int S32 : 1;//FLGSP6
unsigned int S31 : 1;//FLGSP7
unsigned int S25 : 1;//FLGSG0
unsigned int S26 : 1;//FLGSG1
unsigned int S27 : 1;//FLGSG2
unsigned int S28 : 1;//FLGSG3
unsigned int S30 : 1;//FLGSG4
unsigned int S29 : 1;//FLGSG5
unsigned int S43 : 1;//FLGSG6
unsigned int S35 : 1;//FLGSG7
unsigned int S36 : 1;//FLGSG8
unsigned int S37 : 1;//FLGSG9
unsigned int S38 : 1;//FLGSG10
unsigned int S40 : 1;//FLGSG11
unsigned int S39 : 1;//FLGSG12
unsigned int S44 : 1;//FLGSG13
unsigned int : 1;
unsigned int : 1;
unsigned int : 8;
//-------------------------------------------------
}BitData;
}UnSwOut,*pUnSwOut;
//CAN<41><4E><EFBFBD><EFBFBD>--------------------------------------------------------------
#define NumTxCan 1
#define NumRxCan 1//15
#define NumTxCanMoS 16 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ
#define NumRxCanMoS 0 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ
#define ___CANRX___
//CAN<41><4E>Ϣ<EFBFBD>
typedef union _InfCan
{
struct
{
ubyte Arr[1][8];
ubyte ArrRX[2][8];
}ArrData;
struct
{
//----------<2D><><EFBFBD><EFBFBD>0-0x10000001 -------------------------------------------
unsigned int Sta09 : 1 ; //FlgSp1
unsigned int Sta10 : 1 ; //FlgSp0
unsigned int Sta11 : 1 ; //FlgSp7
unsigned int Sta12 : 1 ; //FlgSp6
unsigned int Sta13 : 1 ; //FlgSp5
unsigned int Sta14 : 1 ; //FlgSp4
unsigned int Sta15 : 1 ; //FlgSg7
unsigned int Sta16 : 1 ; //FlgSg8
unsigned int Sta01 : 1 ; //FlgSg4
unsigned int Sta02 : 1 ; //FlgSg5
unsigned int Sta03 : 1 ; //FlgSg3
unsigned int Sta04 : 1 ; //FlgSg2
unsigned int Sta05 : 1 ; //FlgSg1
unsigned int Sta06 : 1 ; //FlgSg0
unsigned int Sta07 : 1 ; //FlgSp3
unsigned int Sta08 : 1 ; //FlgSp2
unsigned int CanTx3 : 8 ; ////
unsigned int Dia01 : 1 ; //FlgSg4
unsigned int Dia02 : 1 ; //FlgSg5
unsigned int Dia03 : 1 ; //FlgSg3
unsigned int Dia04 : 1 ; //FlgSg2
unsigned int Dia05 : 1 ; //FlgSg1
unsigned int Dia06 : 1 ; //FlgSg0
unsigned int Dia07 : 1 ; //FlgSp3
unsigned int Dia08 : 1 ; //FlgSp2
unsigned int CanTx5 : 8 ; ////
unsigned int CanTx4 : 8 ; ////
unsigned int CanTx7 : 8 ; ////
unsigned int CanTx6 : 8 ; ////
//----------<2D><><EFBFBD><EFBFBD>0x10000002 --------------------------------------------
unsigned int D29 : 1 ; //FlgSp1
unsigned int D30 : 1 ; //FlgSp0
unsigned int D31 : 1 ; //FlgSp7
unsigned int D32 : 1 ; //FlgSp6
unsigned int D33 : 1 ; //FlgSp5
unsigned int D34 : 1 ; //FlgSp4
unsigned int D35 : 1 ; //FlgSg7
unsigned int D36 : 1 ; //FlgSg8
unsigned int D21 : 1 ; //FlgSg4
unsigned int D22 : 1 ; //FlgSg5
unsigned int D23 : 1 ; //FlgSg3
unsigned int D24 : 1 ; //FlgSg2
unsigned int D25 : 1 ; //FlgSg1
unsigned int D26 : 1 ; //FlgSg0
unsigned int D27 : 1 ; //FlgSp3
unsigned int D28 : 1 ; //FlgSp2
unsigned int CanRx3 : 8 ; ////
unsigned int CanRx2 : 8 ; ////
unsigned int CanRx5 : 8 ; ////
unsigned int CanRx4 : 8 ; ////
unsigned int CanRx7 : 8 ; ////
unsigned int CanRx6 : 8 ; ////
//----------<2D><><EFBFBD><EFBFBD>0x14000003 --------------------------------------------
unsigned int Pwm01 : 4 ; //FlgSp1
unsigned int Pwm02 : 4 ; //FlgSp0
unsigned int Pwm03 : 4 ; //FlgSp7
unsigned int Pwm04 : 4 ; //FlgSp6
unsigned int Pwm05 : 4 ; //FlgSp5
unsigned int Pwm06 : 4 ; //FlgSp4
unsigned int Pwm07 : 4 ; //FlgSg7
unsigned int Pwm08 : 4 ; //FlgSg8
unsigned int Pwm09 : 4 ; //FlgSg4
unsigned int Pwm10 : 4 ; //FlgSg5
unsigned int Pwm11 : 4 ; //FlgSg3
unsigned int Pwm12 : 4 ; //FlgSg2
unsigned int Pwm13 : 4 ; //FlgSg1
unsigned int Pwm14 : 4 ; //FlgSg0
unsigned int Pwm15 : 4 ; //FlgSp3
unsigned int Pwm16 : 4 ; //FlgSp2
}BitData;
}UnInfCan,*pInfCan;
//-----<2D>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>----------------------------------------------
#include "user.H"
#include "boot.H"
#endif