/* This function finds an unused CMT channel, configures it for the requested period, associates a user callback function with the timer’s interrupt, and powers up and starts the timer.  */
bool R_CMT_CreateOneShot(uint32_t period_us, void(*callback)(void *pdata), uint32_t *channel)
/* This function finds an unused CMT channel, configures it for the requested period, associates a user callback function with the timer’s interrupt, and powers up and starts the timer.  */
bool R_CMT_CreateOneShot(uint32_t period_us, void(*callback)(void *pdata), uint32_t *channel)
{    
    return cmt_create((1000000/period_us), callback, CMT_RX_MODE_ONE_SHOT, channel);
}