差异
This commit is contained in:
@@ -5,23 +5,23 @@
|
||||
#define ZERO_OFFSET 32768
|
||||
//==============================================================================
|
||||
// System-state definition (for alarmState)
|
||||
#define PULSE_ALARM BITF //0x8000
|
||||
#define TEMP_ALARM BITE //0x4000
|
||||
#define FACTORY_FR_ALARM BITD //0x2000
|
||||
#define BATTERY_OFF BITC //0x1000
|
||||
#define CRYSTAL_ALARM BITB //0x0800
|
||||
#define ADC_ALARM BITA //0x0400
|
||||
#define RTC_ALARM BIT9 //0x0200
|
||||
#define EEPROM_ALARM BIT8 //0x0100
|
||||
//#define PULSE_ALARM BITF //0x8000
|
||||
//#define TEMP_ALARM BITE //0x4000
|
||||
//#define FACTORY_FR_ALARM BITD //0x2000
|
||||
//#define BATTERY_OFF BITC //0x1000
|
||||
//#define CRYSTAL_ALARM BITB //0x0800
|
||||
//#define ADC_ALARM BITA //0x0400
|
||||
//#define RTC_ALARM BIT9 //0x0200
|
||||
//#define EEPROM_ALARM BIT8 //0x0100
|
||||
|
||||
#define IS_GAS_CH4 BIT7 //0x0080
|
||||
#define AP_CRC_ERROR BIT6 //0x0040
|
||||
#define BL_CRC_ERROR BIT5 //0x0020
|
||||
#define SENSOR_ERROR BIT4 //0x0010
|
||||
#define POLLUTION_ALARM BIT3 //0x0008
|
||||
#define HARD_ALARM BIT2 //0x0004
|
||||
#define FR_ALARM BIT1 //0x0002
|
||||
#define BATTERY_ALARM BIT0 //0x0001
|
||||
//#define IS_GAS_CH4 BIT7 //0x0080
|
||||
//#define AP_CRC_ERROR BIT6 //0x0040
|
||||
//#define BL_CRC_ERROR BIT5 //0x0020
|
||||
//#define SENSOR_ERROR BIT4 //0x0010
|
||||
//#define POLLUTION_ALARM BIT3 //0x0008
|
||||
//#define HARD_ALARM BIT2 //0x0004
|
||||
//#define FR_ALARM BIT1 //0x0002
|
||||
//#define BATTERY_ALARM BIT0 //0x0001
|
||||
//
|
||||
#define ALARM_SHIELD (BATTERY_OFF + SENSOR_ERROR + POLLUTION_ALARM + HARD_ALARM + \
|
||||
FR_ALARM + BATTERY_ALARM )
|
||||
|
||||
Reference in New Issue
Block a user