Add files via upload

This commit is contained in:
Nima Askari ----- نیما عسکری 2020-05-12 08:42:35 +04:30 committed by GitHub
parent 3171592c6b
commit a286584acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
ee.c
View File

@ -7,7 +7,7 @@
#define SECTOR 1 #define SECTOR 1
#if defined(STM32F103xB) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_FLASH_BANK FLASH_BANK_1 #define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
@ -17,7 +17,7 @@
#endif #endif
#if defined(STM32F103x8) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_MAX_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_FLASH_BANK FLASH_BANK_1 #define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
@ -27,7 +27,7 @@
#endif #endif
#if defined(STM32F103xC) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_FLASH_BANK FLASH_BANK_1 #define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
@ -37,7 +37,7 @@
#endif #endif
#if defined(STM32F103xD) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_FLASH_BANK FLASH_BANK_1 #define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
@ -47,7 +47,7 @@
#endif #endif
#if defined(STM32F103xE) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_FLASH_BANK FLASH_BANK_1 #define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
@ -57,7 +57,7 @@
#endif #endif
#if defined(STM32F030x4) || defined(STM32F042x4) || defined(STM32F070x4) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 15) #if (_EE_USE_FLASH_PAGE_OR_SECTOR > 15)
@ -66,7 +66,7 @@
#endif #endif
#if defined(STM32F030x6) || defined(STM32F042x6) || defined(STM32F070x6) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 31) #if (_EE_USE_FLASH_PAGE_OR_SECTOR > 31)
@ -75,7 +75,7 @@
#endif #endif
#if defined(STM32F030x8) || defined(STM32F042x8) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 63) #if (_EE_USE_FLASH_PAGE_OR_SECTOR > 63)
@ -84,7 +84,7 @@
#endif #endif
#if defined(STM32F070xB) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 63) #if (_EE_USE_FLASH_PAGE_OR_SECTOR > 63)
@ -93,7 +93,7 @@
#endif #endif
#if defined(STM32F070xC) #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_ADDR_INUSE (((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#define _EE_PAGE_OR_SECTOR PAGE #define _EE_PAGE_OR_SECTOR PAGE
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 127) #if (_EE_USE_FLASH_PAGE_OR_SECTOR > 127)
@ -103,7 +103,7 @@
#if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F417xx) #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_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