aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/hard_pwm.c
diff options
context:
space:
mode:
authorAlexey <stas2z@users.noreply.github.com>2023-04-07 19:20:14 +0300
committerGitHub <noreply@github.com>2023-04-07 12:20:14 -0400
commit23e82d37f14b79a164234361a01b893443b5a34d (patch)
treedae422decc5305668daa70ac891c97f913b3072f /src/stm32/hard_pwm.c
parent27dab0ee517a6ab8197faa19e12c2911f67b712c (diff)
downloadkutter-23e82d37f14b79a164234361a01b893443b5a34d.tar.gz
kutter-23e82d37f14b79a164234361a01b893443b5a34d.tar.xz
kutter-23e82d37f14b79a164234361a01b893443b5a34d.zip
stm32: Add support for Nation N32G45x mcus (#6116)
N32G452/G455 are mostly compatible with STM32F103 but have M4 core and different ADC. Signed-off-by: Alexey Golyshin <stas2z@gmail.com>
Diffstat (limited to 'src/stm32/hard_pwm.c')
-rw-r--r--src/stm32/hard_pwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/hard_pwm.c b/src/stm32/hard_pwm.c
index 0aafe7d4..6f7d8d08 100644
--- a/src/stm32/hard_pwm.c
+++ b/src/stm32/hard_pwm.c
@@ -20,7 +20,7 @@ struct gpio_pwm_info {
};
static const struct gpio_pwm_info pwm_regs[] = {
-#if CONFIG_MACH_STM32F103
+#if CONFIG_MACH_STM32F103 || CONFIG_MACH_N32G45x
{TIM2, GPIO('A', 0), 1, GPIO_FUNCTION(2)},
{TIM2, GPIO('A', 1), 2, GPIO_FUNCTION(2)},
{TIM2, GPIO('A', 2), 3, GPIO_FUNCTION(2)},