ADD F411
This commit is contained in:
parent
2d62426bd7
commit
549d864305
30
ee.c
30
ee.c
|
@ -107,7 +107,7 @@
|
|||
#define _EE_ADDR_INUSE (((uint32_t)0x08020000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 5)))
|
||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
#define _EE_PAGE_OR_SECTOR SECTOR
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 11)
|
||||
#error "Please Enter correct address, maximum is (11)"
|
||||
#endif
|
||||
|
@ -116,6 +116,34 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(STM32F411xC)
|
||||
#define _EE_SIZE (1024 * 128)
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08020000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 5)))
|
||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
|
||||
#define _EE_PAGE_OR_SECTOR SECTOR
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 5)
|
||||
#error "Please Enter correct address, maximum is (5)"
|
||||
#endif
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR < 5)
|
||||
#error "Please Enter correct address, minimum is (5)"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(STM32F411xE)
|
||||
#define _EE_SIZE (1024 * 128)
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08020000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 5)))
|
||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
|
||||
#define _EE_PAGE_OR_SECTOR SECTOR
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 7)
|
||||
#error "Please Enter correct address, maximum is (7)"
|
||||
#endif
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR < 5)
|
||||
#error "Please Enter correct address, minimum is (5)"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(STM32L433xx)
|
||||
#define _EE_SIZE 2048
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
|
|
Loading…
Reference in New Issue
Block a user