|
|
union { | |
|
struct __packed { | |
|
int8_t diagnostic_partition_index | |
| | Partition index used for diagnostics; uses BOOT_PARTITION constants.
|
|
uint8_t boot_type | |
| | The type of boot that occurred (e.g. BOOT_TYPE_NORMAL, BOOT_TYPE_BOOTSEL).
|
|
int8_t partition | |
| | The partition that was booted, or -1 if not applicable.
|
|
uint8_t tbyb_and_update_info | |
| | Try-before-you-buy and flash update status flags.
|
| } | |
|
uint32_t boot_word | |
| | The four boot fields packed into a single 32-bit word.
|
| }; | |
|
uint32_t | boot_diagnostic |
| | Diagnostic word describing the outcome of the most recent boot attempt.
|
|
uint32_t | reboot_params [2] |
| | Parameters passed to the reboot call that initiated this boot.
|
Boot information returned by the bootrom SYS_INFO_BOOT_INFO query.
Contains details about the most recent boot, including the boot type, the partition that was booted, and any diagnostic or reboot parameters.