Add files via upload
This commit is contained in:
parent
3171592c6b
commit
a286584acd
22
ee.c
22
ee.c
|
@ -7,7 +7,7 @@
|
|||
#define SECTOR 1
|
||||
|
||||
#if defined(STM32F103xB)
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
|
@ -17,7 +17,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F103x8)
|
||||
#define _EE_MAX_SIZE 1024
|
||||
#define _EE_MAX_SIZE 1024
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_MAX_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
#define _EE_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
|
@ -27,7 +27,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F103xC)
|
||||
#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_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
|
@ -37,7 +37,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F103xD)
|
||||
#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_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
|
@ -47,7 +47,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F103xE)
|
||||
#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_FLASH_BANK FLASH_BANK_1
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
|
@ -57,7 +57,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F030x4) || defined(STM32F042x4) || defined(STM32F070x4)
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 15)
|
||||
|
@ -66,7 +66,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F030x6) || defined(STM32F042x6) || defined(STM32F070x6)
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 31)
|
||||
|
@ -75,7 +75,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F030x8) || defined(STM32F042x8)
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_SIZE 1024
|
||||
#define _EE_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
|
||||
#define _EE_PAGE_OR_SECTOR PAGE
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 63)
|
||||
|
@ -84,7 +84,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F070xB)
|
||||
#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_PAGE_OR_SECTOR PAGE
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 63)
|
||||
|
@ -93,7 +93,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(STM32F070xC)
|
||||
#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_PAGE_OR_SECTOR PAGE
|
||||
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 127)
|
||||
|
@ -103,7 +103,7 @@
|
|||
|
||||
|
||||
#if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F417xx)
|
||||
#define _EE_SIZE (1024 * 128)
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue
Block a user