timer_set_clock_cycles_per_tick

Set amount of clock cycles per timer tick.

int32_t timer_set_clock_cycles_per_tick(
    struct timer_descriptor *const descr,
    const uint32_t clock_cycles
)

This function sets the amount of clock cycles per timer tick for the given timer. It checks if the given hardware is initialized.

Parameters

descr

Type: struct timer_descriptor Struct *const

The timer descriptor of a timer to stop

clock_cycles

Type: const uint32_t

The amount of clock cycles per tick to set

Returns

Type: int32_t

Setting clock cycles amount status.