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:
Chen Wu
2019-01-04 14:13:25 +08:00
parent c05b1a57f9
commit 68e0a80561
2 changed files with 4 additions and 0 deletions

View File

@ -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__ */