Loading...
Searching...
No Matches
flash_safety_helper_t Struct Reference

Helper interface for coordinating safe flash access across cores. More...

#include <flash.h>

Data Fields

bool(* core_init_deinit )(bool init)
 Initialize (init=true) or de-initialise (init=false) this core's participation in flash safety.
int(* enter_safe_zone_timeout_ms )(uint32_t timeout_ms)
 Enter the safe zone, blocking until safe or until timeout_ms milliseconds elapse.
int(* exit_safe_zone_timeout_ms )(uint32_t timeout_ms)
 Exit the safe zone, unblocking the other core, waiting up to timeout_ms milliseconds.

Detailed Description

Helper interface for coordinating safe flash access across cores.

Provides the callbacks used by flash_safe_execute to initialize per-core state and to enter/exit the safe zone in which flash may be written or erased.


The documentation for this struct was generated from the following file: