Expand description
Components for hardware timer Alarms.
This provides two components, AlarmMuxComponent
, which provides a
multiplexed interface to a hardware alarm, and AlarmDriverComponent
,
which provides an alarm system call interface.
§Usage
let ast = &sam4l::ast::AST;
let mux_alarm = components::alarm::AlarmMuxComponent::new(ast)
.finalize(components::alarm_mux_component_static!(sam4l::ast::Ast));
ast.configure(mux_alarm);
let alarm = components::alarm::AlarmDriverComponent::new(board_kernel, mux_alarm)
.finalize(components::alarm_component_static!(sam4l::ast::Ast));