diff --git a/MCUCore.uvopt b/MCUCore.uvopt index fb5243f..fb0bd23 100644 --- a/MCUCore.uvopt +++ b/MCUCore.uvopt @@ -1532,10 +1532,10 @@ 1 0 0 - 10 + 5 0 23 - 51 + 34 0 .\code_app\Main.c Main.c @@ -1546,10 +1546,10 @@ 1 0 0 - 38 + 8 0 538 - 569 + 568 0 .\code_app\Initial.c Initial.c @@ -1665,10 +1665,10 @@ 1 0 0 - 0 + 76 0 165 - 165 + 196 0 .\code_drv\AFE.c AFE.c @@ -2010,8 +2010,8 @@ 0 28 0 - 13 - 41 + 1 + 39 0 .\code_dataflash\DataFlash.c DataFlash.c @@ -3838,8 +3838,8 @@ .\code_dataflash\DataFlash.c 28 - 13 - 41 + 1 + 39 .\code_drv\Protect.c @@ -3879,9 +3879,9 @@ .\code_drv\AFE.c - 0 + 76 165 - 165 + 196 .\code_drv\TWI.c @@ -3891,9 +3891,9 @@ .\code_app\Initial.c - 38 + 8 538 - 569 + 568 .\code_gasguage\GasGaugeInter_V4_13.c @@ -3903,9 +3903,9 @@ .\code_app\Main.c - 10 + 5 23 - 51 + 34 .\code_app\Memory.c diff --git a/MCUCore_uvopt.bak b/MCUCore_uvopt.bak index 5b50b0c..82d3e69 100644 --- a/MCUCore_uvopt.bak +++ b/MCUCore_uvopt.bak @@ -1532,10 +1532,10 @@ 1 0 0 - 10 + 5 0 23 - 51 + 34 0 .\code_app\Main.c Main.c @@ -1546,10 +1546,10 @@ 1 0 0 - 38 + 8 0 538 - 569 + 568 0 .\code_app\Initial.c Initial.c @@ -1665,10 +1665,10 @@ 1 0 0 - 0 + 76 0 165 - 165 + 196 0 .\code_drv\AFE.c AFE.c @@ -2008,10 +2008,10 @@ 1 0 0 - 37 + 61 0 - 181 - 214 + 337 + 337 0 .\code_dataflash\DataFlash.c DataFlash.c @@ -3835,6 +3835,12 @@ 100 0 + + .\code_dataflash\DataFlash.c + 61 + 337 + 337 + .\code_drv\Protect.c 61 @@ -3873,9 +3879,9 @@ .\code_drv\AFE.c - 0 + 76 165 - 165 + 196 .\code_drv\TWI.c @@ -3885,9 +3891,9 @@ .\code_app\Initial.c - 38 + 8 538 - 569 + 568 .\code_gasguage\GasGaugeInter_V4_13.c @@ -3897,9 +3903,9 @@ .\code_app\Main.c - 10 + 5 23 - 51 + 34 .\code_app\Memory.c @@ -3919,12 +3925,6 @@ 14 14 - - .\code_dataflash\DataFlash.c - 37 - 181 - 214 - .\code_drv\McuFlash.c 64 diff --git a/code_dataflash/DataFlash.c b/code_dataflash/DataFlash.c index 617b1c9..5b67bde 100644 --- a/code_dataflash/DataFlash.c +++ b/code_dataflash/DataFlash.c @@ -38,7 +38,7 @@ V0.0 2014/09/10 Preliminary // 硬件过压保护 #define _EPCM_OV_EN 0 //BIT1; 0:不使能硬件过压功能; 1:使能硬件过压功能 // 硬件短路保护 -#define _EPCM_SC 0 //BIT0; 0:不使能硬件短路保护功能; 1:使能硬件短路保护功能 +#define _EPCM_SC 1 //BIT0; 0:不使能硬件短路保护功能; 1:使能硬件短路保护功能 #define _E2_PACKCONFIGMAP (_EPCM_EEPROM_EN<<15)|(_EPCM_OCPM<<14)|(_EPCM_CTO_EN<<13)|(_EPCM_PF_EN<<12)\ |(_EPCM_BAL_EN<<11)|(_EPCM_OCRC_EN<<10)|(_EPCM_OV_EN<<9)\