61#define SOTA_DEVICE_ID_LEN 18
Which image runs and which boots next.
#define SOTA_NORETURN
Marks a function that does not return, in C and C++.
Definition sota_boot.h:23
void sota_sys_wdt_disarm(void)
Stop the watchdog if sota_sys_wdt_arm() started it.
void sota_sys_wdt_quiesce(void)
At boot, before a trial may arm it again: stop a watchdog a reset left running.
void sota_sys_timer_stop(void **timer)
Stop and free the timer, if *timer holds one.
void sota_sys_default_device_id(char out[18])
The device ID used when the application gives none: the Wi-Fi station MAC as "aa:bb:cc:dd:ee:ff",...
void sota_sys_restart(void)
Restart the chip.
uint32_t sota_sys_now_ms(void)
Milliseconds since boot; wraps.
bool sota_sys_wdt_arm(uint32_t confirm_s, uint32_t floor_s)
Arm the chip watchdog for confirm_s plus a margin of at least floor_s (sota_wdt_calc....
bool sota_sys_timer_start(void **timer, uint32_t seconds, struct sota_engine *e)
Start a one-shot timer that calls sota_engine_timeout_fired(e) after seconds.
void sota_sys_unlock(void)
One lock for every engine.
#define SOTA_DEVICE_ID_LEN
Length of sota_sys_default_device_id()'s string, with its NUL.
Definition sota_sys.h:61
void sota_sys_sleep_ms(uint32_t ms)
Block the calling task for ms milliseconds.
void sota_sys_lock(void)
One lock for every engine.