RIOT "partition" header and tools.
More...
#include <stdint.h>
Go to the source code of this file.
◆ RIOTBOOT_MAGIC
#define RIOTBOOT_MAGIC 0x544f4952 /* "RIOT" */ |
Magic number for riotboot_hdr.
Definition at line 45 of file hdr.h.
◆ riotboot_hdr_checksum()
Calculate header checksum.
- Parameters
-
[in] | riotboot_hdr | ptr to image header |
- Returns
- the checksum of the given riotboot_hdr
◆ riotboot_hdr_print()
Print formatted riotboot_hdr_t to STDIO.
- Parameters
-
[in] | riotboot_hdr | ptr to image header |
◆ riotboot_hdr_validate()
Validate image header.
- Parameters
-
[in] | riotboot_hdr | ptr to image header |
- Returns
- 0 if OK
-
-1 if not OK