Const.h 2.05 KB
Newer Older
崔立宝's avatar
崔立宝 committed
1 2 3
#ifndef _CONST_H_
#define _CONST_H_

4 5
#define FALSE               0
#define TRUE                1
崔立宝's avatar
崔立宝 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

//#define  CF_EPROM    //是否启动 烧写过程通过变量修改EPROM中的数值 ODO

//#define  CF_DEBUGOIL  //外发调试数值报文


#define VERBSC              0x00     //甲醇重卡基础班
#define VERACC              0x01     //甲醇重卡ACC版
#define VERELE              0x02     //甲醇重卡混动版
#define VEROIL              0x03     //甲醇重卡柴油版
#define VERELO              0x04     //柴油混动
#define VERDAN              0x05     //危化品 
 
#define EN_DB8379

21 22 23 24
#define HV0                 0x0
#define HV1                 0x0
#define HV2                 0x1
#define HV3                 0x3      //硬件版本 0.0.13
崔立宝's avatar
崔立宝 committed
25 26
       

27 28 29 30
#define V0                  0x0      //版本号第一位
#define V1                  0x0      //版本号第二位
#define V2                  0x2      //版本号第三位 0.0.26
#define V3                  0x7      //版本号第三位 0.0.26
崔立宝's avatar
崔立宝 committed
31

32
//#define DEBUG                        //屏蔽部分代码 用于调试
崔立宝's avatar
崔立宝 committed
33

34
//#define WDT                          //是否设置看门狗
崔立宝's avatar
崔立宝 committed
35 36 37

//不同版本设置刷新的最大图层

38
#define  JEELYVERSION       0x00     //0 基础版  1ACC版  2混动版   3 柴油版  4 柴油混动  5 危化品 
崔立宝's avatar
崔立宝 committed
39

40
#define  DEFAULT_TPMS       0        //00 无胎压  01有胎压
崔立宝's avatar
崔立宝 committed
41 42 43 44 45

#define SEND_DATA_PWM

#define  LED005_LIGHT

46
//#define  DEFAULT_SERVICE             //有无保养配置
崔立宝's avatar
崔立宝 committed
47 48
 
//甲醇默认使用0x01  3.7    柴油混动默认x03 2.846   柴油 
49
//默认速比  //速比  0x00 4.111     0x01  3.7      0x02 6.73      x03 2.846     0x04 3.364   0x09  
崔立宝's avatar
崔立宝 committed
50 51 52 53 54 55 56 57 58 59
#if JEELYVERSION == 0x04
  #define DEFAUTL_RATE     3
#elif JEELYVERSION == 0x03
  #define DEFAUTL_RATE     4  
#elif JEELYVERSION == 0x05
  #define DEFAUTL_RATE     0   
#else        
  #define DEFAUTL_RATE     0 
#endif

60
/*#define mapdata            2
崔立宝's avatar
崔立宝 committed
61 62

#if mapdata == 0
63
  #include "mapData0509.h" 
崔立宝's avatar
崔立宝 committed
64
#elif mapdata == 1 
65
  #include "mapData0514.h"
崔立宝's avatar
崔立宝 committed
66
#elif mapdata == 2 
67
  #include "mapData0515.h"
崔立宝's avatar
崔立宝 committed
68
#elif mapdata == 3 
69
  #include "mapData0119.h"
崔立宝's avatar
崔立宝 committed
70
#elif mapdata == 4 
71
  #include "mapData0122.h"      
崔立宝's avatar
崔立宝 committed
72
#elif mapdata == 5 
73
  #include "mapData.h"
崔立宝's avatar
崔立宝 committed
74
#elif mapdata == 6 
75
  #include "mapData0427.h"
崔立宝's avatar
崔立宝 committed
76 77 78
#endif  */  

#endif