/* Stop PWM generation immediately by clear channel enable bit.  */
void PWM_ForceStop(PWM_T *pwm, uint32_t u32ChannelMask)
/* Stop PWM generation immediately by clear channel enable bit.  */
void PWM_ForceStop(PWM_T *pwm, uint32_t u32ChannelMask)
{
    uint32_t i;
    for (i = 0UL; i < PWM_CHANNEL_NUM; i ++)
    {
        if (u32ChannelMask & (1UL << i))
        {
            (pwm)->CNTEN &= ~(1UL << ((i >> 1UL) << 1UL));
        }
    }
}