summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-12-25 23:27:45 -0800
committerKeith Packard <keithp@keithp.com>2015-12-25 23:30:16 -0800
commit0fd370af8bc8842000415c4d182d84b4bf6f90fa (patch)
treeae92850f3efb92c6372c632843574b948541578b
parent742f7c834bb5d651d2bebf2069d4e8facc33390d (diff)
altos: Set AO_PWM_TIMER_SCALE for telemega-v2.0
This is needed to configure the PWM timer correctly Signed-off-by: Keith Packard <keithp@keithp.com>
m---------pdclib0
-rw-r--r--src/telemega-v2.0/ao_pins.h1
2 files changed, 1 insertions, 0 deletions
diff --git a/pdclib b/pdclib
-Subproject 8b1c9061fa3a8f1b30ee13b373afe5cc1ad9d38
+Subproject bd33f6640cf5882f8630766a9acdd1bc420a9dd
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