18#if defined(__cplusplus) && __cplusplus >= 201103L
19#define SOTA_NORETURN [[noreturn]]
20#elif defined(__GNUC__)
21#define SOTA_NORETURN __attribute__((noreturn))
27#define SOTA_IMAGE_ID_LEN 16u
bool sota_boot_set(uint32_t part)
Boot the slot at part from the next reset on.
#define SOTA_IMAGE_ID_LEN
Hex characters of an image fingerprint.
Definition sota_boot.h:27
bool sota_boot_slot_invalid(uint32_t part)
True when the bootloader has marked the slot at part invalid.
void sota_boot_rollback(uint32_t prev_part)
Leave the running image for the one at prev_part and restart: through the bootloader when it holds th...
void sota_boot_info(sota_boot_info_t *info)
Fill info with this boot's facts.
bool sota_boot_mark_valid(void)
Tell the bootloader the running image is good.
#define SOTA_NORETURN
Marks a function that does not return, in C and C++.
Definition sota_boot.h:23
This boot, as the bootloader left it.
Definition sota_boot.h:30
bool pending
The bootloader holds the running image on probation.
Definition sota_boot.h:38
uint32_t boot_part
The slot the next boot selects.
Definition sota_boot.h:36
uint32_t running_part
The running slot's flash address.
Definition sota_boot.h:35
int reset_reason
esp_reset_reason_t, see SOTA_RST_* in sota_trial.h.
Definition sota_boot.h:37