[][src]Function rpi_pico_sdk::alarm_pool_create

pub unsafe extern "C" fn alarm_pool_create(
    hardware_alarm_num: uint,
    max_timers: uint
) -> *mut alarm_pool_t

\brief Create an alarm pool

The alarm pool will call callbacks from an alarm IRQ Handler on the core of this function is called from.

In many situations there is never any need for anything other than the default alarm pool, however you might want to create another if you want alarm callbacks on core 1 or require alarm pools of different priority (IRQ priority based preemption of callbacks)

\note This method will hard assert if the hardware alarm is already claimed.

\ingroup alarm \param hardware_alarm_num the hardware alarm to use to back this pool \param max_timers the maximum number of timers \note For implementation reasons this is limited to PICO_PHEAP_MAX_ENTRIES which defaults to 255 \sa alarm_pool_get_default() \sa hardware_claiming