aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/hard_pwm.c
diff options
context:
space:
mode:
authorFrederic Morin <frederic.morin.8@gmail.com>2023-03-05 19:15:43 -0500
committerKevinOConnor <kevin@koconnor.net>2023-05-07 11:15:05 -0400
commit33b18fd62ba73c90054a7b94b68c341bb3f40d9a (patch)
tree8a2b11edeaa52ffffa2891412a5f7d6978b8f959 /src/stm32/hard_pwm.c
parenta3eebab4f2b90822f76de91487ff3d4158b80494 (diff)
downloadkutter-33b18fd62ba73c90054a7b94b68c341bb3f40d9a.tar.gz
kutter-33b18fd62ba73c90054a7b94b68c341bb3f40d9a.tar.xz
kutter-33b18fd62ba73c90054a7b94b68c341bb3f40d9a.zip
stm32f7: add support for stm32f7 and remram board
Signed-off-by: Frederic Morin <frederic.morin.8@gmail.com>
Diffstat (limited to 'src/stm32/hard_pwm.c')
-rw-r--r--src/stm32/hard_pwm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stm32/hard_pwm.c b/src/stm32/hard_pwm.c
index a15b1c37..ad30051f 100644
--- a/src/stm32/hard_pwm.c
+++ b/src/stm32/hard_pwm.c
@@ -102,6 +102,19 @@ static const struct gpio_pwm_info pwm_regs[] = {
{TIM9, GPIO('E', 6), 2, GPIO_FUNCTION(3)},
{TIM10, GPIO('B', 8), 1, GPIO_FUNCTION(3)},
{TIM11, GPIO('B', 9), 1, GPIO_FUNCTION(3)}
+#elif CONFIG_MACH_STM32F7
+ {TIM2, GPIO('A', 15), 1, GPIO_FUNCTION(1)},
+ {TIM2, GPIO('B', 3), 2, GPIO_FUNCTION(1)},
+ {TIM2, GPIO('B', 10), 3, GPIO_FUNCTION(1)},
+ {TIM2, GPIO('B', 11), 4, GPIO_FUNCTION(1)},
+ {TIM3, GPIO('B', 4), 1, GPIO_FUNCTION(1)},
+ {TIM3, GPIO('B', 5), 1, GPIO_FUNCTION(1)},
+ {TIM3, GPIO('C', 8), 2, GPIO_FUNCTION(1)},
+ {TIM3, GPIO('C', 9), 2, GPIO_FUNCTION(1)},
+ {TIM5, GPIO('A', 10), 3, GPIO_FUNCTION(1)},
+ {TIM5, GPIO('E', 13), 3, GPIO_FUNCTION(1)},
+ {TIM5, GPIO('A', 11), 4, GPIO_FUNCTION(1)},
+ {TIM5, GPIO('E', 14), 4, GPIO_FUNCTION(1)},
#elif CONFIG_MACH_STM32G0
{TIM15, GPIO('A', 2), 1, GPIO_FUNCTION(5)},
{TIM15, GPIO('A', 3), 2, GPIO_FUNCTION(5)},