V3.1.2
Fixed H5 configuration
This commit is contained in:
parent
fcc6131173
commit
2287e533dc
|
@ -34,7 +34,7 @@ This library facilitates EEPROM emulation on microcontrollers by selecting the l
|
||||||
- - [x] STM32G0
|
- - [x] STM32G0
|
||||||
- - [x] STM32G4
|
- - [x] STM32G4
|
||||||
### STM32H
|
### STM32H
|
||||||
- - [ ] STM32H5
|
- - [x] STM32H5
|
||||||
- - [x] STM32H7
|
- - [x] STM32H7
|
||||||
### STM32U
|
### STM32U
|
||||||
- - [ ] STM32U0
|
- - [ ] STM32U0
|
||||||
|
|
11
ee.c
11
ee.c
|
@ -47,7 +47,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STM32H5
|
#ifdef STM32H5
|
||||||
#define EE_ERASE EE_ERASE_PAGE_ADDRESS
|
#define EE_ERASE EE_ERASE_SECTOR_NUMBER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STM32H7
|
#ifdef STM32H7
|
||||||
|
@ -156,7 +156,6 @@ EE_HandleTypeDef eeHandle;
|
||||||
************** Private Functions
|
************** Private Functions
|
||||||
************************************************************************************************************/
|
************************************************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************************************************
|
/************************************************************************************************************
|
||||||
************** Public Functions
|
************** Public Functions
|
||||||
************************************************************************************************************/
|
************************************************************************************************************/
|
||||||
|
@ -274,6 +273,10 @@ bool EE_Format(void)
|
||||||
void EE_Read(void)
|
void EE_Read(void)
|
||||||
{
|
{
|
||||||
uint8_t *data = eeHandle.DataPointer;
|
uint8_t *data = eeHandle.DataPointer;
|
||||||
|
#ifdef HAL_ICACHE_MODULE_ENABLED
|
||||||
|
/* disabling ICACHE if enabled*/
|
||||||
|
HAL_ICACHE_Disable();
|
||||||
|
#endif
|
||||||
if (data != NULL)
|
if (data != NULL)
|
||||||
{
|
{
|
||||||
/* reading flash */
|
/* reading flash */
|
||||||
|
@ -283,6 +286,10 @@ void EE_Read(void)
|
||||||
data++;
|
data++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef HAL_ICACHE_MODULE_ENABLED
|
||||||
|
/* disabling ICACHE if enabled*/
|
||||||
|
HAL_ICACHE_Enable();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************************************************/
|
/***********************************************************************************************************/
|
||||||
|
|
5
ee.h
5
ee.h
|
@ -9,9 +9,12 @@
|
||||||
Youtube: https://www.youtube.com/@nimaltd
|
Youtube: https://www.youtube.com/@nimaltd
|
||||||
Instagram: https://instagram.com/github.NimaLTD
|
Instagram: https://instagram.com/github.NimaLTD
|
||||||
|
|
||||||
Version: 3.1.1
|
Version: 3.1.2
|
||||||
|
|
||||||
History:
|
History:
|
||||||
|
3.1.2
|
||||||
|
- Fixed H5 configuration
|
||||||
|
|
||||||
3.1.1
|
3.1.1
|
||||||
- Fixed formatting F4
|
- Fixed formatting F4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user