mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
FIX: Flash page size check is STM (or clone) specific (#14130)
This commit is contained in:
parent
02432af6fa
commit
b1298262e1
2 changed files with 4 additions and 4 deletions
|
@ -37,10 +37,6 @@ uint8_t eepromData[EEPROM_SIZE];
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(FLASH_PAGE_SIZE)
|
|
||||||
#error "Flash page size not defined for target."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void config_streamer_init(config_streamer_t *c)
|
void config_streamer_init(config_streamer_t *c)
|
||||||
{
|
{
|
||||||
memset(c, 0, sizeof(*c));
|
memset(c, 0, sizeof(*c));
|
||||||
|
|
|
@ -27,6 +27,10 @@
|
||||||
|
|
||||||
#if defined(CONFIG_IN_FLASH)
|
#if defined(CONFIG_IN_FLASH)
|
||||||
|
|
||||||
|
#if !defined(FLASH_PAGE_SIZE)
|
||||||
|
#error "Flash page size not defined for STM (or clone) target."
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(STM32F745xx) || defined(STM32F746xx) || defined(STM32F765xx)
|
#if defined(STM32F745xx) || defined(STM32F746xx) || defined(STM32F765xx)
|
||||||
/*
|
/*
|
||||||
Sector 0 0x08000000 - 0x08007FFF 32 Kbytes
|
Sector 0 0x08000000 - 0x08007FFF 32 Kbytes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue