Take care of "FLASH_SIZE" constant for stm32h750xx.h in lib

This commit is contained in:
jflyper 2019-04-20 00:40:23 +09:00
parent 0bb34cdd09
commit 99ea236bc2
1 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,7 @@
* This file contains: * This file contains:
* - Data structures and the address mapping for all peripherals * - Data structures and the address mapping for all peripherals
* - Peripheral's registers declarations and bits definition * - Peripheral's registers declarations and bits definition
* - Macros to access peripherals registers hardware * - Macros to access peripheral's registers hardware
* *
****************************************************************************** ******************************************************************************
* @attention * @attention
@ -25787,10 +25787,15 @@ typedef struct
*/ */
/****************************** Product define *********************************/ /****************************** Product define *********************************/
#define FLASH_SECTOR_SIZE 0x00020000 /* 128 KB */ // 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 FLASH_SECTOR_SIZE /* 128 KB */ #define FLASH_SECTOR_SIZE 0x00020000 /* 128 KB */
#define FLASH_BANK_SIZE FLASH_SIZE /* 128 KB */ //#define FLASH_SIZE FLASH_SECTOR_SIZE /* 128 KB */
//#define FLASH_BANK_SIZE FLASH_SIZE /* 128 KB */
#define FLASH_BANK_SIZE FLASH_SECTOR_SIZE /* 128KB */
/** /**