Select one of the symbols to view example projects that use it.
 
Outline
#define __BOOT_CONFIG_H__
#include <stdint.h>
#include "esp_flash_partitions.h"
#include "soc/soc.h"
#define SPI_SEC_SIZE
#define SPI_ERROR_LOG
#define MAX_OTA_SLOTS
bootloader_state_t
flash_encrypt(bootloader_state_t *);
#define FACTORY_INDEX
#define TEST_APP_INDEX
#define INVALID_INDEX
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bootloader_support/private_include/bootloader_config.h
 
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
36
37
38
39
40
41
42
43
44
45
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef __BOOT_CONFIG_H__ #define __BOOT_CONFIG_H__ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #include "esp_flash_partitions.h" #include "soc/soc.h" #define SPI_SEC_SIZE 0x1000 #define SPI_ERROR_LOG "spi flash error" #define MAX_OTA_SLOTS 16 typedef struct { esp_partition_pos_t ota_info; esp_partition_pos_t factory; esp_partition_pos_t test; esp_partition_pos_t ota[MAX_OTA_SLOTS]; uint32_t app_count; uint32_t selected_subtype; } bootloader_state_t; bool flash_encrypt(bootloader_state_t *bs); /* Indices used by index_to_partition are the OTA index number, or these special constants */ #define FACTORY_INDEX (-1) #define TEST_APP_INDEX (-2) #define INVALID_INDEX (-99) #ifdef __cplusplus } #endif #endif /* __BOOT_CONFIG_H__ */
Details