mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
feat: add user data to bin header
user could put some data into bin header by USER_DATA_ATTR attribute, defined in esp_attr.h
This commit is contained in:
@ -46,4 +46,7 @@
|
||||
// Forces read-only data into RTC memory.
|
||||
#define RTC_RODATA_ATTR __attribute__((section(".rtc.rodata")))
|
||||
|
||||
// Forces to put some user defined data in the binary file header, the offset is 0x10.
|
||||
#define USER_DATA_ATTR __attribute__((section(".user.data")))
|
||||
|
||||
#endif /* __ESP_ATTR_H__ */
|
||||
|
Reference in New Issue
Block a user