From: Keith Packard Date: Sat, 26 Dec 2015 07:27:45 +0000 (-0800) Subject: altos: Set AO_PWM_TIMER_SCALE for telemega-v2.0 X-Git-Tag: 1.6.2^2~18 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=0fd370af8bc8842000415c4d182d84b4bf6f90fa altos: Set AO_PWM_TIMER_SCALE for telemega-v2.0 This is needed to configure the PWM timer correctly Signed-off-by: Keith Packard --- diff --git a/pdclib b/pdclib index 8b1c9061..bd33f664 160000 --- a/pdclib +++ b/pdclib @@ -1 +1 @@ -Subproject commit 8b1c9061fa3a8f1b30ee13b373afe5cc1ad9d382 +Subproject commit bd33f6640cf5882f8630766a9acdd1bc420a9dda diff --git a/src/telemega-v2.0/ao_pins.h b/src/telemega-v2.0/ao_pins.h index ed5935b4..8409a106 100644 --- a/src/telemega-v2.0/ao_pins.h +++ b/src/telemega-v2.0/ao_pins.h @@ -390,6 +390,7 @@ struct ao_adc { #define PWM_MAX 1023 #define AO_PWM_TIMER stm_tim4 #define AO_PWM_TIMER_ENABLE STM_RCC_APB1ENR_TIM4EN +#define AO_PWM_TIMER_SCALE 1 #define AO_PWM_0_GPIO (&stm_gpiod) #define AO_PWM_0_PIN 12