mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Weak assignment in flash_hal (#8884)
The assignment done in FLASH_MAP_SETUP_CONFIG_ATTR did not apply the attribute to __flashdesc, and made it impossible to override it with FLASH_MAP_SETUP_CONFIG.
This commit is contained in:
parent
32323e55b5
commit
503502f13b
@ -43,7 +43,7 @@ extern const flash_map_s __flashdesc[];
|
|||||||
|
|
||||||
#define FLASH_MAP_SETUP_CONFIG(conf) FLASH_MAP_SETUP_CONFIG_ATTR(,conf)
|
#define FLASH_MAP_SETUP_CONFIG(conf) FLASH_MAP_SETUP_CONFIG_ATTR(,conf)
|
||||||
#define FLASH_MAP_SETUP_CONFIG_ATTR(attr, conf...) \
|
#define FLASH_MAP_SETUP_CONFIG_ATTR(attr, conf...) \
|
||||||
const flash_map_s __flashdesc[] PROGMEM = conf; \
|
extern const flash_map_s __flashdesc[] PROGMEM attr = conf; \
|
||||||
const char *flashinit (void) attr; \
|
const char *flashinit (void) attr; \
|
||||||
const char *flashinit (void) \
|
const char *flashinit (void) \
|
||||||
{ \
|
{ \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user