partition.h File Reference
#include <stdbool.h>
Include dependency graph for partition.h:

Go to the source code of this file.

Classes

struct  esp_partition_info_t
 Internal structure describing the binary layout of a partition table entry. More...
 

Macros

#define ESP_PARTITION_MAGIC   0x50AA
 
#define PARTITION_TYPE_APP   0x00
 
#define PARTITION_APP_SUBTYPE_FACTORY   0x00
 
#define PARTITION_APP_SUBTYPE_OTA0   0x10
 
#define PARTITION_TYPE_DATA   0x01
 
#define PARTITION_DATA_SUBTYPE_SYSPARAM   0x40
 
#define ESP_PARTITION_TABLE_MAX_LEN   0x0C00
 

Functions

static bool scan_partitions (rboot_config *romconf)
 

Macro Definition Documentation

◆ ESP_PARTITION_MAGIC

#define ESP_PARTITION_MAGIC   0x50AA

◆ ESP_PARTITION_TABLE_MAX_LEN

#define ESP_PARTITION_TABLE_MAX_LEN   0x0C00

◆ PARTITION_APP_SUBTYPE_FACTORY

#define PARTITION_APP_SUBTYPE_FACTORY   0x00

◆ PARTITION_APP_SUBTYPE_OTA0

#define PARTITION_APP_SUBTYPE_OTA0   0x10

◆ PARTITION_DATA_SUBTYPE_SYSPARAM

#define PARTITION_DATA_SUBTYPE_SYSPARAM   0x40

◆ PARTITION_TYPE_APP

#define PARTITION_TYPE_APP   0x00

◆ PARTITION_TYPE_DATA

#define PARTITION_TYPE_DATA   0x01

Function Documentation

◆ scan_partitions()

static bool scan_partitions ( rboot_config romconf)
static