CycloneBOOT 2.6.6
Secure Bootloader for ARM Cortex-M MCU
Loading...
Searching...
No Matches
boot_fallback.h
Go to the documentation of this file.
1
31#ifndef _BOOT_FALLBACK_H
32#define _BOOT_FALLBACK_H
33
34// Dependencies
35#include "core/cboot_error.h"
36#include "second_stage/boot.h"
37
38// C++ guard
39#ifdef __cplusplus
40extern "C"
41{
42#endif
43
44typedef enum
45{
46 TRIGGER_STATUS_IDLE,
47 TRIGGER_STATUS_RAISED
48} TriggerStatus;
49
50// CycloneBOOT Bootloader Fallback related functions
51cboot_error_t fallbackTask(BootContext *context, Memory *memories);
52
54
55#if ((defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined(__GNUC__) || \
56 defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) || defined(__TASKING__) || \
57 defined(__CWCC__) || defined(__TI_ARM__))
58cboot_error_t fallbackTriggerInit(void);
59cboot_error_t fallbackTriggerGetStatus(TriggerStatus *status);
60#elif ((defined(_MSC_VER) || defined(_WIN32) || defined(WIN32) || defined(WIN64) || \
61 defined(__unix__)))
62extern cboot_error_t fallbackTriggerInit(void);
63extern cboot_error_t fallbackTriggerGetStatus(TriggerStatus *status);
64#endif
65
66// C++ guard
67#ifdef __cplusplus
68}
69#endif
70#endif //_BOOT_FALLBACK_H
bool_t bootIsFallbackAvailable(BootContext *context)
Report whether a fall back to a previous firmware is possible.
Definition boot_fallback.c:55
cboot_error_t fallbackTask(BootContext *context, Memory *memories)
Fallback Task routine.
Definition boot_fallback.c:109
Error codes description.
cboot_error_t
Error codes.
Definition cboot_error.h:57
CycloneBOOT 2nd Stage Bootloader management.
First-stage bootloader context.
Definition boot.h:136
Memory Definition.
Definition memory.h:225