|
@@ -12,6 +12,20 @@
|
|
|
extern "C" {
|
|
|
#endif
|
|
|
|
|
|
+#define BAT4830
|
|
|
+#ifdef BAT4830
|
|
|
+ #define Batt_Cell_Num (14)
|
|
|
+ #define Batt_Temp_Num (5)
|
|
|
+#else
|
|
|
+ #define Batt_Cell_Num (17)
|
|
|
+ #define Batt_Temp_Num (7)
|
|
|
+#endif
|
|
|
+#define Batt_Cell_Num_2 (Batt_Cell_Num*2)
|
|
|
+
|
|
|
+#define SwVersion 0xA21
|
|
|
+#define HwVersion 0xB22
|
|
|
+
|
|
|
+
|
|
|
#define QMSG_ID_BASE (0x160)
|
|
|
#define QMSG_ID_NW_IP_READY (QMSG_ID_BASE)
|
|
|
#define QMSG_ID_NW_IP_SUSPEND (QMSG_ID_BASE + 1)
|
|
@@ -70,14 +84,6 @@ extern UINT8 BattSN[BATT_SN_LEN];
|
|
|
extern CHAR TcpServerIpV4Address[16];
|
|
|
extern CHAR TcpServerPort[5];
|
|
|
|
|
|
-typedef enum
|
|
|
-{
|
|
|
- PROCESS_UART_STATE_IDLE = 0,
|
|
|
- PROCESS_UART_STATE_CHECK,
|
|
|
- PROCESS_UART_STATE_WORK,
|
|
|
- PROCESS_UART_STATE_SLEEP
|
|
|
-}process_Uart;
|
|
|
-
|
|
|
typedef enum
|
|
|
{
|
|
|
PROCESS_CAN_STATE_IDLE = 0,
|
|
@@ -210,7 +216,7 @@ typedef struct _GPS_INFO
|
|
|
uint32_t latitude;
|
|
|
uint32_t longitude;
|
|
|
}GPS_INFO;
|
|
|
-uint8_t* Uart_Receive_func(Uart_Receive_Type Uart_Receive_Msg,uint8_t* Uart_Rece_buffer,uint8_t Data_Len);
|
|
|
+//uint8_t* Uart_Receive_func(Uart_Receive_Type Uart_Receive_Msg,uint8_t* Uart_Rece_buffer,uint8_t Data_Len);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
}
|