Software Detailed Design
Introduction
This module interfaces with the keyboard and debounces the POWER_BUTTON_KEY to provide a stable key press event.
Design Considerations
The power button detection is implemented as a state machine with three states: |
The key press and release events are debounced to prevent spurious signals. The debounce periods are configurable via |
Interfaces
The Power Button component shall be called periodically by its runnable |
The component shall be initialized by calling |
The component uses the RTE interface |
The component uses the RTE interface |
Internal Behavior
The internal state machine manages the debouncing logic. It transitions between states based on counters that track the duration of a consistent key state. |