/* param base Quad Timer peripheral base address param channel Quad Timer channel number param ticks Timer period in units of ticks  */
void QTMR_SetTimerPeriod(TMR_Type *base, qtmr_channel_selection_t channel, uint16_t ticks)
/* param base Quad Timer peripheral base address param channel Quad Timer channel number param ticks Timer period in units of ticks  */
void QTMR_SetTimerPeriod(TMR_Type *base, qtmr_channel_selection_t channel, uint16_t ticks)
{
    base->CHANNEL[channel].CTRL |= TMR_CTRL_LENGTH_MASK;
    if ((base->CHANNEL[channel].CTRL & TMR_CTRL_DIR_MASK) != 0U)
    {
        base->CHANNEL[channel].COMP2 = ticks;
    }
    else
    {
        base->CHANNEL[channel].COMP1 = ticks;
    }
}