Merge branch 'feature/add_sdk_ver' into 'master'

esp8266: add system version

See merge request sdk/ESP8266_RTOS_SDK!1108
This commit is contained in:
Dong Heng
2019-09-24 17:12:31 +08:00
6 changed files with 77 additions and 8 deletions

View File

@ -33,6 +33,11 @@ static const char* TAG = "system_api";
static uint8_t base_mac_addr[6] = { 0 };
// Bootloader can get this information
const __attribute__((section(".SystemInfoVector.text"))) esp_sys_info_t g_esp_sys_info = {
.version = ESP_IDF_VERSION
};
esp_err_t esp_base_mac_addr_set(uint8_t *mac)
{
if (mac == NULL) {