/* Synchronizes the counters in one or multiple PWM generator blocks. */
void PWMSyncTimeBase(unsigned long ulBase, unsigned long ulGenBits)
/* Synchronizes the counters in one or multiple PWM generator blocks. */
void PWMSyncTimeBase(unsigned long ulBase, unsigned long ulGenBits)
{
    ASSERT((ulBase == PWM0_BASE) || (ulBase == PWM1_BASE));
    ASSERT(!(ulGenBits & ~(PWM_GEN_0_BIT | PWM_GEN_1_BIT | PWM_GEN_2_BIT |
                           PWM_GEN_3_BIT)));
    HWREG(ulBase + PWM_O_SYNC) = ulGenBits;
}