Expand description
Component to cause a button press to trigger a kernel panic.
This can be useful especially when developing or debugging console capsules.
Note: the process console has support for triggering a panic, which may be more convenient depending on the board.
§Usage
components::panic_button::PanicButtonComponent::new(
&sam4l::gpio::PC[24],
kernel::hil::gpio::ActivationMode::ActiveLow,
kernel::hil::gpio::FloatingState::PullUp
)
.finalize(components::panic_button_component_static!(sam4l::gpio::GPIOPin));