timer_get_clock_cycles_in_tick

Retrieve the amount of clock cycles in a tick.

int32_t timer_get_clock_cycles_in_tick(
    const struct timer_descriptor *const descr,
    uint32_t *const cycles
)

This function retrieves how many clock cycles there are in a single timer tick. It checks if the given hardware is initialized.

Parameters

descr

Type: const struct timer_descriptor Struct *const

The timer descriptor of a timer to convert ticks to clock cycles

cycles

Type: uint32_t *const

The amount of clock cycles

Returns

Type: int32_t

The status of clock cycles retrieving.