Explorar el Código

FLAHSH Erase 범위 설정 / 나눗셈을 곱셈으로 변경

PYJ hace 5 años
padre
commit
b26d85b624
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      Bluecell_Inc/flash.h
  2. 1 1
      Bluecell_Src/Bluecell_operate.c

+ 2 - 2
Bluecell_Inc/flash.h

@@ -25,10 +25,10 @@
25 25
 
26 26
 
27 27
 #define FLASH_USER_BANK1_START_ADDR ((uint32_t)0x08025000)
28
-#define FLASH_USER_BANK1_END_ADDR FLASH_USER_BANK1_START_ADDR + ((uint32_t)0x1FFFF)   /* End @ of user Flash area */
28
+#define FLASH_USER_BANK1_END_ADDR FLASH_USER_BANK1_START_ADDR + ((uint32_t)0x1FF80)   /* End @ of user Flash area */
29 29
 
30 30
 #define FLASH_USER_BANK2_START_ADDR ((uint32_t)0x08045000)
31
-#define FLASH_USER_BANK2_END_ADDR FLASH_USER_BANK2_START_ADDR + ((uint32_t)0x2FFFF)
31
+#define FLASH_USER_BANK2_END_ADDR FLASH_USER_BANK2_START_ADDR + ((uint32_t)0x1FF80)
32 32
 
33 33
 
34 34
 

+ 1 - 1
Bluecell_Src/Bluecell_operate.c

@@ -388,7 +388,7 @@ double TableAtteGuarantee(uint8_t* Table,double AttenValue){
388 388
     Bluecell_StructCpy(&GuaranteeData[0],&Table[0],sizeof(ATT_TABLE_st));
389 389
     
390 390
 //    printf("H  : %x   L : %x \r\n",GuaranteeData[cnt * 2],GuaranteeData[cnt * 2 + 1]);
391
-    ret =  GuaranteeData[cnt] / 2;
391
+    ret =  GuaranteeData[cnt] * 0.5;
392 392
 //= PE43711_Double(GuaranteeData[cnt * 2],GuaranteeData[cnt * 2 + 1]);
393 393
 //    printf("ret3 : %f \r\n",ret); //1
394 394
     ret += AttenValue;