Browse Source

版本号为:2.2.0.0, 卫蓝电池生成软件,更改了CAN驱动和CAN任务,取消了打印以及修改了部分bug

CHENJIE-PC\QiXiang_CHENJIE 3 years ago
parent
commit
d20a9fecb2
3 changed files with 5 additions and 5 deletions
  1. 1 1
      inc/Fota.h
  2. 1 1
      src/CANTask.c
  3. 3 3
      src/bsp_custom.c

+ 1 - 1
inc/Fota.h

@@ -8,7 +8,7 @@
  ****************************************************************************/
  ****************************************************************************/
 #include "bsp_custom.h"
 #include "bsp_custom.h"
 #define FLASH_BMS_FOTA_START_ADDR         0x2E6000
 #define FLASH_BMS_FOTA_START_ADDR         0x2E6000
-#define FLASH_BMS_FOTA_LEN               0x204800  //200k
+#define FLASH_BMS_FOTA_LEN               0x32000  //200k
 #define FLASH_BMS_FOTA_END_ADDR         0x318000
 #define FLASH_BMS_FOTA_END_ADDR         0x318000
 typedef struct _Fota_Type
 typedef struct _Fota_Type
 {
 {

+ 1 - 1
src/CANTask.c

@@ -145,7 +145,7 @@ static void Can_Receive()
 	            break;
 	            break;
 	       }
 	       }
 	   }
 	   }
-	   osDelay(50);
+	   //osDelay(50);
 	}      
 	}      
 }
 }
 
 

+ 3 - 3
src/bsp_custom.c

@@ -204,7 +204,7 @@ void Pad0_WakeupIntHandler(void)
 {
 {
     if(slpManExtIntPreProcess(PadWakeup0_IRQn)==false)
     if(slpManExtIntPreProcess(PadWakeup0_IRQn)==false)
         return;
         return;
-#ifdef USING_PRINTF
+#ifdef USING_PRINTF1
 	printf("[%d]PadWakeup0_IRQn\r\n",__LINE__);
 	printf("[%d]PadWakeup0_IRQn\r\n",__LINE__);
 #else	
 #else	
     ECOMM_TRACE(UNILOG_PLA_APP, pad0_Wk, P_SIG, 0, "PadWakeup0_IRQn");
     ECOMM_TRACE(UNILOG_PLA_APP, pad0_Wk, P_SIG, 0, "PadWakeup0_IRQn");
@@ -232,7 +232,7 @@ void Pad3_WakeupIntHandler(void)
         return;
         return;
 
 
     // add custom code below //
     // add custom code below //
-#ifdef USING_PRINTF
+#ifdef USING_PRINTF1
 	printf("[%d]PadWakeup3_IRQn\r\n",__LINE__);
 	printf("[%d]PadWakeup3_IRQn\r\n",__LINE__);
 #else	
 #else	
     ECOMM_TRACE(UNILOG_PLA_APP, pad3_Wk, P_SIG, 0, "PadWakeup3_IRQn");
     ECOMM_TRACE(UNILOG_PLA_APP, pad3_Wk, P_SIG, 0, "PadWakeup3_IRQn");
@@ -249,7 +249,7 @@ void Pad4_WakeupIntHandler(void)
     if(slpManExtIntPreProcess(PadWakeup4_IRQn)==false)
     if(slpManExtIntPreProcess(PadWakeup4_IRQn)==false)
         return;
         return;
     // add custom code below //
     // add custom code below //
-#ifdef USING_PRINTF
+#ifdef USING_PRINTF1
 	printf("[%d]PadWakeup3_IRQn\r\n",__LINE__);
 	printf("[%d]PadWakeup3_IRQn\r\n",__LINE__);
 #else	
 #else