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
40
extern
"C"
41
{
42
#endif
43
44
typedef
enum
45
{
46
TRIGGER_STATUS_IDLE,
47
TRIGGER_STATUS_RAISED
48
} TriggerStatus;
49
50
// CycloneBOOT Bootloader Fallback related functions
51
cboot_error_t
fallbackTask
(
BootContext
*context,
Memory
*memories);
52
53
bool_t
bootIsFallbackAvailable
(
BootContext
*context);
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__))
58
cboot_error_t
fallbackTriggerInit(
void
);
59
cboot_error_t
fallbackTriggerGetStatus(TriggerStatus *status);
60
#elif ((defined(_MSC_VER) || defined(_WIN32) || defined(WIN32) || defined(WIN64) || \
61
defined(__unix__)))
62
extern
cboot_error_t
fallbackTriggerInit(
void
);
63
extern
cboot_error_t
fallbackTriggerGetStatus(TriggerStatus *status);
64
#endif
65
66
// C++ guard
67
#ifdef __cplusplus
68
}
69
#endif
70
#endif
//_BOOT_FALLBACK_H
bootIsFallbackAvailable
bool_t bootIsFallbackAvailable(BootContext *context)
Report whether a fall back to a previous firmware is possible.
Definition
boot_fallback.c:55
fallbackTask
cboot_error_t fallbackTask(BootContext *context, Memory *memories)
Fallback Task routine.
Definition
boot_fallback.c:109
cboot_error.h
Error codes description.
cboot_error_t
cboot_error_t
Error codes.
Definition
cboot_error.h:57
boot.h
CycloneBOOT 2nd Stage Bootloader management.
BootContext
First-stage bootloader context.
Definition
boot.h:136
Memory
Memory Definition.
Definition
memory.h:225
cyclone_boot
bootloader
second_stage
boot_fallback.h
Generated by
1.9.8