• R/O
  • SSH
  • HTTPS

chibios: 提交


Commit MetaInfo

修订版15840 (tree)
时间2022-11-19 18:22:16
作者gdisirio

Log Message

Fixes from tzarc.

更改概述

差异

--- trunk/os/hal/ports/STM32/STM32F0xx/stm32_registry.h (revision 15839)
+++ trunk/os/hal/ports/STM32/STM32F0xx/stm32_registry.h (revision 15840)
@@ -128,10 +128,10 @@
128128
129129 /* Flash attributes.*/
130130 #define STM32_FLASH_NUMBER_OF_BANKS 1
131-#define STM32_FLASH_SECTOR_SIZE 4096U
132-#define STM32_FLASH_LINE_SIZE 4U
131+#define STM32_FLASH_SECTOR_SIZE 1024U
132+#define STM32_FLASH_LINE_SIZE 2U
133133 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
134-#define STM32_FLASH_SECTORS_PER_BANK 16 /* Maximum, can be redefined.*/
134+#define STM32_FLASH_SECTORS_PER_BANK 32 /* Maximum, can be redefined.*/
135135 #endif
136136
137137 /* GPIO attributes.*/
@@ -453,10 +453,10 @@
453453
454454 /* Flash attributes.*/
455455 #define STM32_FLASH_NUMBER_OF_BANKS 1
456-#define STM32_FLASH_SECTOR_SIZE 4096U
457-#define STM32_FLASH_LINE_SIZE 4U
456+#define STM32_FLASH_SECTOR_SIZE 1024U
457+#define STM32_FLASH_LINE_SIZE 2U
458458 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
459-#define STM32_FLASH_SECTORS_PER_BANK 16 /* Maximum, can be redefined.*/
459+#define STM32_FLASH_SECTORS_PER_BANK 32 /* Maximum, can be redefined.*/
460460 #endif
461461
462462 /* GPIO attributes.*/
@@ -678,10 +678,10 @@
678678
679679 /* Flash attributes.*/
680680 #define STM32_FLASH_NUMBER_OF_BANKS 1
681-#define STM32_FLASH_SECTOR_SIZE 4096U
682-#define STM32_FLASH_LINE_SIZE 4U
681+#define STM32_FLASH_SECTOR_SIZE 1024U
682+#define STM32_FLASH_LINE_SIZE 2U
683683 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
684-#define STM32_FLASH_SECTORS_PER_BANK 16 /* Maximum, can be redefined.*/
684+#define STM32_FLASH_SECTORS_PER_BANK 32 /* Maximum, can be redefined.*/
685685 #endif
686686
687687 /* GPIO attributes.*/
@@ -911,10 +911,10 @@
911911
912912 /* Flash attributes.*/
913913 #define STM32_FLASH_NUMBER_OF_BANKS 1
914-#define STM32_FLASH_SECTOR_SIZE 4096U
915-#define STM32_FLASH_LINE_SIZE 4U
914+#define STM32_FLASH_SECTOR_SIZE 1024U
915+#define STM32_FLASH_LINE_SIZE 2U
916916 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
917-#define STM32_FLASH_SECTORS_PER_BANK 16 /* Maximum, can be redefined.*/
917+#define STM32_FLASH_SECTORS_PER_BANK 32 /* Maximum, can be redefined.*/
918918 #endif
919919
920920 /* GPIO attributes.*/
@@ -1153,10 +1153,10 @@
11531153
11541154 /* Flash attributes.*/
11551155 #define STM32_FLASH_NUMBER_OF_BANKS 1
1156-#define STM32_FLASH_SECTOR_SIZE 4096U
1157-#define STM32_FLASH_LINE_SIZE 4U
1156+#define STM32_FLASH_SECTOR_SIZE 1024U
1157+#define STM32_FLASH_LINE_SIZE 2U
11581158 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
1159-#define STM32_FLASH_SECTORS_PER_BANK 16 /* Maximum, can be redefined.*/
1159+#define STM32_FLASH_SECTORS_PER_BANK 64 /* Maximum, can be redefined.*/
11601160 #endif
11611161
11621162 /* GPIO attributes.*/
@@ -1403,10 +1403,10 @@
14031403
14041404 /* Flash attributes.*/
14051405 #define STM32_FLASH_NUMBER_OF_BANKS 1
1406-#define STM32_FLASH_SECTOR_SIZE 4096U
1406+#define STM32_FLASH_SECTOR_SIZE 2048U
14071407 #define STM32_FLASH_LINE_SIZE 2U
14081408 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
1409-#define STM32_FLASH_SECTORS_PER_BANK 64 /* Maximum, can be redefined.*/
1409+#define STM32_FLASH_SECTORS_PER_BANK 128 /* Maximum, can be redefined.*/
14101410 #endif
14111411
14121412 /* GPIO attributes.*/
@@ -1683,10 +1683,10 @@
16831683
16841684 /* Flash attributes.*/
16851685 #define STM32_FLASH_NUMBER_OF_BANKS 1
1686-#define STM32_FLASH_SECTOR_SIZE 4096U
1686+#define STM32_FLASH_SECTOR_SIZE 2048U
16871687 #define STM32_FLASH_LINE_SIZE 2U
16881688 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
1689-#define STM32_FLASH_SECTORS_PER_BANK 64 /* Maximum, can be redefined.*/
1689+#define STM32_FLASH_SECTORS_PER_BANK 128 /* Maximum, can be redefined.*/
16901690 #endif
16911691
16921692 /* GPIO attributes.*/
@@ -1979,10 +1979,10 @@
19791979
19801980 /* Flash attributes.*/
19811981 #define STM32_FLASH_NUMBER_OF_BANKS 1
1982-#define STM32_FLASH_SECTOR_SIZE 4096U
1982+#define STM32_FLASH_SECTOR_SIZE 2048U
19831983 #define STM32_FLASH_LINE_SIZE 2U
19841984 #if !defined(STM32_FLASH_SECTORS_PER_BANK) || defined(__DOXYGEN__)
1985-#define STM32_FLASH_SECTORS_PER_BANK 64 /* Maximum, can be redefined.*/
1985+#define STM32_FLASH_SECTORS_PER_BANK 128 /* Maximum, can be redefined.*/
19861986 #endif
19871987
19881988 /* GPIO attributes.*/
Show on old repository browser