summaryrefslogtreecommitdiff
path: root/src/system_fsm/include/system_events.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-21 15:43:23 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-21 15:43:23 +1000
commit764b01e913d0123747757e5efd3545d46e921848 (patch)
tree76f0a1d2afb4b60818cc46fd5649938713f2f261 /src/system_fsm/include/system_events.hpp
parent27f329a9dbf18a046ade534c9330b03e586cdb98 (diff)
downloadtangara-fw-764b01e913d0123747757e5efd3545d46e921848.tar.gz
Add idle->standby support when locked and no music
Diffstat (limited to 'src/system_fsm/include/system_events.hpp')
-rw-r--r--src/system_fsm/include/system_events.hpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/system_fsm/include/system_events.hpp b/src/system_fsm/include/system_events.hpp
index 87461f0b..f62da801 100644
--- a/src/system_fsm/include/system_events.hpp
+++ b/src/system_fsm/include/system_events.hpp
@@ -28,15 +28,7 @@ struct BootComplete : tinyfsm::Event {};
*/
struct FatalError : tinyfsm::Event {};
-/*
- * Sent before unmounting the system storage. Storage will not be unmounted
- * until each reaction to this even has returned. FSMs should immediately cease
- * their usage of storage.
- *
- * May be emitted either by UiState in response to user action, or by SysState
- * as a part of either entering low-power standby or powering off.
- */
-struct StorageUnmountRequested : tinyfsm::Event {};
+struct OnIdle : tinyfsm::Event {};
/*
* Sent by SysState when the system storage has been successfully mounted.
@@ -64,15 +56,11 @@ struct ChargingStatusChanged : tinyfsm::Event {};
namespace internal {
-/*
- * Sent when the actual unmount operation should be performed. Always dispatched
- * by SysState in response to StoragePrepareToUnmount.
- */
-struct ReadyToUnmount : tinyfsm::Event {};
-
struct GpioInterrupt : tinyfsm::Event {};
struct SamdInterrupt : tinyfsm::Event {};
+struct IdleTimeout : tinyfsm::Event {};
+
} // namespace internal
} // namespace system_fsm