Select one of the symbols to view example projects that use it.
 
Outline
#include <assert.h>
#include <sys/param.h>
#include "esp_bootloader_desc.h"
#include "sdkconfig.h"
esp_bootloader_desc
esp_bootloader_get_description()
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_bootloader_format/esp_bootloader_desc.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <assert.h> #include <sys/param.h> #include "esp_bootloader_desc.h" #include "sdkconfig.h" // Bootloader version info #if BOOTLOADER_BUILD __attribute__((section(".data_bootloader_desc"))) #endif __attribute__((weak)) const esp_bootloader_desc_t esp_bootloader_desc = { .magic_byte = ESP_BOOTLOADER_DESC_MAGIC_BYTE, .reserved = { 0 }, .version = CONFIG_BOOTLOADER_PROJECT_VER, .idf_ver = IDF_VER, #ifdef CONFIG_BOOTLOADER_COMPILE_TIME_DATE .date_time = __DATE__ " " __TIME__, #else .date_time = "", #endif .reserved2 = { 0 }, }{...}; _Static_assert(sizeof(IDF_VER) <= sizeof(esp_bootloader_desc.idf_ver), "IDF_VER is longer than idf_ver field in structure"); const esp_bootloader_desc_t *esp_bootloader_get_description(void) { return &esp_bootloader_desc; }{ ... }
Details