Go to the documentation of this file.
25 #ifndef RIOTBOOT_SLOT_H
26 #define RIOTBOOT_SLOT_H
int riotboot_slot_other(void)
Get currently not running image slot.
const riotboot_hdr_t *const riotboot_slots[]
Storage for header pointers of the configured slots.
const unsigned riotboot_slot_numof
Number of configured firmware slots (incl.
const riotboot_hdr_t * riotboot_slot_get_hdr(unsigned slot)
Get header from a given flash slot.
int riotboot_slot_current(void)
Get currently running image slot.
int riotboot_hdr_validate(const riotboot_hdr_t *riotboot_hdr)
Validate image header.
RIOT "partition" header and tools.
void riotboot_hdr_print(const riotboot_hdr_t *riotboot_hdr)
Print formatted riotboot_hdr_t to STDIO.
void riotboot_slot_dump_addrs(void)
Dump the addresses of all configured slots.
static size_t riotboot_slot_size(unsigned slot)
Get the size of a slot.
uint32_t riotboot_slot_get_image_startaddr(unsigned slot)
Get jump-to address of image slot.
static void riotboot_slot_print_hdr(unsigned slot)
Print formatted slot header to STDIO.
void riotboot_slot_jump(unsigned slot)
Boot into image in slot slot.
Structure to store image header - All members are little endian.
size_t riotboot_slot_offset(unsigned slot)
Get the offset (in flash, in bytes) for a given slot.
static int riotboot_slot_validate(unsigned slot)
Validate slot.