2021-06-30 15:18:41 +02:00
|
|
|
#ifndef BSP_Q7S_CORE_OBSW_H_
|
|
|
|
#define BSP_Q7S_CORE_OBSW_H_
|
|
|
|
|
|
|
|
namespace obsw {
|
|
|
|
|
2023-03-06 00:55:12 +01:00
|
|
|
int obsw(int argc, char* argv[]);
|
2021-06-30 15:18:41 +02:00
|
|
|
|
2023-10-19 13:31:43 +02:00
|
|
|
/**
|
|
|
|
* This is a safety mechanism where the ProASIC scratch buffer can be used to trigger an
|
|
|
|
* auto-boot to another image. The auto-boot is currently implemented as a one-shot mechanism:
|
|
|
|
* The key-value pair which triggers the auto-boot will be removed from the scratch buffer.
|
|
|
|
*/
|
|
|
|
void autoSwitchHandling();
|
2023-02-23 23:56:11 +01:00
|
|
|
void bootDelayHandling();
|
|
|
|
void commandEiveSystemToSafe();
|
2023-03-14 15:08:56 +01:00
|
|
|
void commandComSubsystemRxOnly();
|
2023-02-23 23:56:11 +01:00
|
|
|
void announceAllModes();
|
|
|
|
|
|
|
|
}; // namespace obsw
|
2021-06-30 15:18:41 +02:00
|
|
|
|
|
|
|
#endif /* BSP_Q7S_CORE_OBSW_H_ */
|