1
0
Fork 0
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:
Jay Blackman 2025-01-07 11:27:38 +11:00 committed by GitHub
parent 02432af6fa
commit b1298262e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -37,10 +37,6 @@ uint8_t eepromData[EEPROM_SIZE];
#endif
#endif
#if !defined(FLASH_PAGE_SIZE)
#error "Flash page size not defined for target."
#endif
void config_streamer_init(config_streamer_t *c)
{
memset(c, 0, sizeof(*c));

View file

@ -27,6 +27,10 @@
#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)
/*
Sector 0 0x08000000 - 0x08007FFF 32 Kbytes