/* This function configures desired CMT channel for the requested frequency and desired interrupt priority level, associates a user callback function with the timer’s interrupt, powers up and starts the timer.  */
bool R_CMT_CreatePeriodicAssignChannelPriority(uint32_t frequency_hz, void(*callback)(void *pdata), uint32_t channel, cmt_priority_t priority)
/* This function configures desired CMT channel for the requested frequency and desired interrupt priority level, associates a user callback function with the timer’s interrupt, powers up and starts the timer.  */
bool R_CMT_CreatePeriodicAssignChannelPriority(uint32_t frequency_hz, void(*callback)(void *pdata), uint32_t channel, cmt_priority_t priority)
{
    return cmt_create_priority(frequency_hz, callback, CMT_RX_MODE_PERIODIC, channel, priority);
}