tao_z
2021-06-14 b150690b6ebe42a4ffd50278d761b8994121eb94
USR/SRC/pwm.c
@@ -129,12 +129,12 @@
void TimerInit(void)
{
    rcu_periph_clock_enable(RCU_TIMER2);
    // rcu_periph_clock_enable(RCU_TIMER2);
    rcu_periph_clock_enable(RCU_TIMER0);
    Timer0Init();
    Timer2Init();
    // Timer2Init();
    timer_enable(TIMER0);
    timer_enable(TIMER2);
    // timer_enable(TIMER2);
}
void SetPwmDuty(uint16_t ch, uint32_t duty)