Added STM32G030xx

This commit is contained in:
leech001 2023-01-01 12:43:18 +03:00
parent b0929f9836
commit c8dd26476a
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,7 @@ This is the EEPROM emulation STM32 HAL Library
You can add your MCU config. You can add your MCU config.
* [x] F0 tested. * [x] F0 tested.
* [ ] G0 tested. (STM32G030xx)
* [ ] L0 tested. * [ ] L0 tested.
* [x] F1 tested. * [x] F1 tested.
* [ ] L1 tested. * [ ] L1 tested.

9
ee.c
View File

@ -144,6 +144,15 @@
#endif #endif
#endif #endif
#if defined(STM32G030xx_H)
#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_NUM
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 31)
#error "Please Enter correct address, maximum is (31)"
#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))