This changes the constants so the clock runs at 1MHz, making the step
1µsec each. Then make the period 20000 steps, or 20ms for a 50Hz
frequency as before.
Signed-off-by: Keith Packard <keithp@keithp.com>
#define AO_PWM_TIMER stm_tim4
#define AO_PWM_TIMER_ENABLE STM_RCC_APB1ENR_TIM4EN
#define AO_PWM_TIMER stm_tim4
#define AO_PWM_TIMER_ENABLE STM_RCC_APB1ENR_TIM4EN
-#define AO_PWM_TIMER_SCALE 10
+#define AO_PWM_TIMER_SCALE 32
#define AO_PWM_0_GPIO (&stm_gpiod)
#define AO_PWM_0_PIN 12
#define AO_PWM_0_GPIO (&stm_gpiod)
#define AO_PWM_0_PIN 12