ADD L476
This commit is contained in:
parent
549d864305
commit
2b14f9ae9b
13
ee.c
13
ee.c
|
@ -154,6 +154,19 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(STM32L476xx)
|
||||
#define _EE_SIZE 2048
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR < 256)
|
||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||
#else
|
||||
#define _EE_FLASH_BANK FLASH_BANK_2
|
||||
#define _EE_PAGE_OR_SECTOR PAGE_NUM
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 511)
|
||||
#error "Please Enter correct address, maximum is (511)"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (_EE_USE_RAM_BYTE > 0)
|
||||
uint8_t ee_ram[_EE_USE_RAM_BYTE];
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user