Expand description
Debug capsule to cause a button press to make all apps fault.
This is useful for debugging that capsules and apps work when they are restarted by the kernel.
§Usage
ⓘ
struct ProcessMgmtCap;
unsafe impl capabilities::ProcessManagementCapability for ProcessMgmtCap {}
let debug_process_restart = static_init!(
capsules::debug_process_restart::DebugProcessRestart<
'static,
ProcessMgmtCap,
>,
capsules::debug_process_restart::DebugProcessRestart::new(
board_kernel,
ProcessMgmtCap
&sam4l::gpio::PA[16],
kernel::hil::gpio::ActivationMode::ActiveLow,
kernel::hil::gpio::FloatingState::PullUp
)
);
sam4l::gpio::PA[16].set_client(debug_process_restart);