timer_hardware_alarm_set_callback() function
Enable/Disable a callback for a hardware alarm for a given timer instance on this core 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 \sa hardware_alarm_set_callback \sa timer_hardware_alarm_set_target()
Arguments
alarm_num
the hardware alarm number
callback
the callback to install, or NULL to unset
Notes
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