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