31#ifndef _STANDALONE_BOOT_TRIGGER_H
32#define _STANDALONE_BOOT_TRIGGER_H
35#include "boot_config.h"
41#define BOOT_MAX_TRIGGERS 5
UpdateEntryMode
Update entry mode.
Definition boot_trigger.h:54
@ UPDATE_ENTRY_NONE
Boot the resident image.
Definition boot_trigger.h:55
@ UPDATE_ENTRY_WINDOW
Listen for a window, then boot.
Definition boot_trigger.h:56
@ UPDATE_ENTRY_REQUIRED
Receive an update now.
Definition boot_trigger.h:57
bool_t bootTriggerGpioActiveHook(void)
GPIO trigger status callback. It is declared weak and must be implemented in the user code space.
Definition boot_trigger.c:159
cboot_error_t bootTriggerGetRequest(UpdateEntryRequest *request)
Collects every enabled trigger and arbitrates between them.
Definition boot_trigger.c:55
cboot_error_t bootTriggerArbitrateHook(const UpdateEntryRequest *requests, size_t count, UpdateEntryRequest *result)
Arbitrates between the collected trigger requests. The default keeps the strongest request,...
Definition boot_trigger.c:124
bool_t bootTriggerNoAppHook(void)
No-application trigger status callback. It is declared weak and must be implemented in the user code ...
Definition boot_trigger.c:171
cboot_error_t bootTriggerInit(void)
Initializes the enabled update entry triggers.
Definition boot_trigger.c:43
cboot_error_t
Error codes.
Definition cboot_error.h:57
Update entry request.
Definition boot_trigger.h:65
uint32_t windowMs
UPDATE_ENTRY_WINDOW only.
Definition boot_trigger.h:67