[][src]Function rpi_pico_sdk::hardware_alarm_set_callback

pub unsafe extern "C" fn hardware_alarm_set_callback(
    alarm_num: uint,
    callback: hardware_alarm_callback_t
)

\brief Enable/Disable a callback for a hardware timer on this core \ingroup hardware_timer

This method enables/disables the alarm IRQ for the specified hardware alarm on the calling core, and set the specified callback to be associated with that alarm.

This callback will be used for the timeout set via hardware_alarm_set_target

\note This will install the handler on the current core if the IRQ handler isn't already set. Therefore the user has the opportunity to call this up from the core of their choice

\param alarm_num the hardware alarm number \param callback the callback to install, or NULL to unset

\sa hardware_alarm_set_target