Quellcode durchsuchen

看门狗定义修改

CHENJIE-PC\QiXiang_CHENJIE vor 3 Jahren
Ursprung
Commit
33fb077f80
3 geänderte Dateien mit 5 neuen und 9 gelöschten Zeilen
  1. 1 7
      ARMCC/Makefile
  2. 1 1
      inc/app.h
  3. 3 1
      inc/bsp_custom.h

+ 1 - 7
ARMCC/Makefile

@@ -10,7 +10,7 @@ THIRDPARTY_WAKAAMA_ENABLE   = n
 THIRDPARTY_ERCOAP_ENABLE    = y
 THIRDPARTY_TINYDTLS_ENABLE  = y
 THIRDPARTY_MBEDTLS_ENABLE   = y
-FLASH_MONITOR_ENABLE = y
+
 CFLAGS_INC        +=  -I ../inc
 
 
@@ -31,9 +31,3 @@ obj-y             += PLAT/project/$(TARGET)/apps/qx_app/src/app.o \
 
 include $(TOP)/PLAT/tools/scripts/Makefile.rules
 
-ifeq ($(FLASH_MONITOR_ENABLE), y)
-#enable wdt
-CFLAGS += -DWDT_FEATURE_ENABLE=1  -DFS_FILE_OPERATION_STATISTIC
-else
-CFLAGS += -DWDT_FEATURE_ENABLE=1
-endif

+ 1 - 1
inc/app.h

@@ -33,7 +33,7 @@ extern "C" {
         #define BATT_CELL_VOL_NUM  (20)
         #define BATT_TEMP_NUM  (3)
         #define BATT_OTHER_TEMP_NUM  (2)
-    #elif BMS_INFO==2
+    #elif BMS_INFO==2           
         #define BATT_CELL_VOL_NUM  (17)
         #define BATT_TEMP_NUM  (4)
         #define BATT_OTHER_TEMP_NUM  (2)

+ 3 - 1
inc/bsp_custom.h

@@ -7,8 +7,10 @@ extern "C" {
 
 #include "bsp.h"
 #include "hal_module_adapter.h"
-void BSP_CustomInit(void);
 
+//enable wdt
+#define WDT_FEATURE_ENABLE 1
+void BSP_CustomInit(void);
 #ifdef __cplusplus
 }
 #endif