[CMSIS] stm32h743xx.h: FLASH_SIZE def collide with Betaflight

This commit is contained in:
jflyper 2018-10-10 13:22:45 +09:00
parent 1db881f595
commit 22dd78f247
1 changed files with 6 additions and 2 deletions

View File

@ -25523,8 +25523,12 @@ typedef struct
*/
/****************************** Product define *********************************/
#define FLASH_SIZE 0x200000 /* 2MB */
#define FLASH_BANK_SIZE (FLASH_SIZE >> 1) /* 1MB */
// For Betaflight, FLASH_SIZE is defined by make/<CPUTYPE>.mk in units of KB.
// FLASH_SIZE definition is not used elsewhere in the library.
// FLASH_BANK_SIZE is used, so define it as 1M directly.
//#define FLASH_SIZE 0x200000 /* 2MB */
//#define FLASH_BANK_SIZE (FLASH_SIZE >> 1) /* 1MB */
#define FLASH_BANK_SIZE 0x100000 /* 1MB */
#define FLASH_SECTOR_SIZE 0x00020000 /* 128 KB */