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_ADDR_INUSE (((uint32_t)0x08020000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 5)))
|
||||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||||
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
|
#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)
|
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 11)
|
||||||
#error "Please Enter correct address, maximum is (11)"
|
#error "Please Enter correct address, maximum is (11)"
|
||||||
#endif
|
#endif
|
||||||
|
@ -116,6 +116,34 @@
|
||||||
#endif
|
#endif
|
||||||
#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)
|
#if defined(STM32L433xx)
|
||||||
#define _EE_SIZE 2048
|
#define _EE_SIZE 2048
|
||||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||||
|
|
7
ee.h
7
ee.h
|
@ -7,10 +7,13 @@
|
||||||
Instagram: http://instagram.com/github.NimaLTD
|
Instagram: http://instagram.com/github.NimaLTD
|
||||||
Youtube: https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckw
|
Youtube: https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckw
|
||||||
|
|
||||||
Version: 2.0.2
|
Version: 2.0.3
|
||||||
|
|
||||||
|
(2.0.3)
|
||||||
|
Add F411.
|
||||||
|
|
||||||
(2.0.2)
|
(2.0.2)
|
||||||
Add L4().
|
Add L4.
|
||||||
|
|
||||||
(2.0.1)
|
(2.0.1)
|
||||||
Change function name to ee_commit().
|
Change function name to ee_commit().
|
||||||
|
|
Loading…
Reference in New Issue
Block a user