feat(esp8266): add system version

Bootloader can get the version of application for specific section,
and then check if some features are supported.

Developers can use the macro "ESP_IDF_VERSION" to limite some function like following:

include "esp_idf_version.h"

if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 4, 0) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 0, 0) // 3.4 <= ver < 4.0
    do_xxx_process();
endif
This commit is contained in:
dongheng
2019-09-20 14:35:28 +08:00
parent 653d20dddc
commit d0f58daec1
6 changed files with 77 additions and 8 deletions

View File

@ -48,7 +48,7 @@ SECTIONS
_iram_start = ABSOLUTE(.);
/* Vectors go to IRAM */
_init_start = ABSOLUTE(.);
LONG(_iram_start)
KEEP(*(.SystemInfoVector.text));
. = 0x10;
KEEP(*(.DebugExceptionVector.text));
. = 0x20;