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