Const.h 1.96 KB
#ifndef _CONST_H_
#define _CONST_H_

#define FALSE              0
#define TRUE               1

//#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

#define HV0      0x0
#define HV1      0x0
#define HV2      0x1
#define HV3      0x3         //硬件版本 0.0.13
       

#define V0                  0x0   // 版本号第一位
#define V1                  0x0   // 版本号第二位
#define V2                  0x2   // 版本号第三位 0.0.26
#define V3                  0x7   // 版本号第三位 0.0.26

//#define DEBUG        //屏蔽部分代码 用于调试

//#define WDT      // 是否设置看门狗

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

#define  JEELYVERSION       0x00// 0 基础版  1ACC版  2混动版   3 柴油版  4 柴油混动  5 危化品 

#define  DEFAULT_TPMS        0  //00 无胎压  01有胎压

#define SEND_DATA_PWM

#define  LED005_LIGHT

//#define  DEFAULT_SERVICE    // 有无保养配置
 
//甲醇默认使用0x01  3.7    柴油混动默认x03 2.846   柴油 
 //默认速比  //速比  0x00 4.111     0x01  3.7      0x02 6.73      x03 2.846     0x04 3.364   0x09  
#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



/*#define mapdata     2

#if mapdata == 0
    #include "mapData0509.h" 
#elif mapdata == 1 
    #include "mapData0514.h"
#elif mapdata == 2 
    #include "mapData0515.h"
#elif mapdata == 3 
    #include "mapData0119.h"
#elif mapdata == 4 
    #include "mapData0122.h"      
#elif mapdata == 5 
    #include "mapData.h"
#elif mapdata == 6 
    #include "mapData0427.h"
#endif  */  



#endif