From b1bf9bf185ed366572f8822d8b5bebdb2b919e55 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Wed, 3 May 2023 14:46:32 -0400 Subject: [PATCH] Rev 1pwm (#242) * f1_dual_rev1: fix analog aux output PWM definitions (cherry picked from commit 50e346dfcb9f223c6e0ee6cdc700cb376b536834) * fix pwm definitions (cherry picked from commit ce9e69b997290bbd7abcfe5af2926b1d556070cf) --------- Co-authored-by: Andrey Gusakov --- firmware/boards/f1_dual_rev1/io/io_pins.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/firmware/boards/f1_dual_rev1/io/io_pins.h b/firmware/boards/f1_dual_rev1/io/io_pins.h index 91c6d88..88d98a5 100644 --- a/firmware/boards/f1_dual_rev1/io/io_pins.h +++ b/firmware/boards/f1_dual_rev1/io/io_pins.h @@ -55,10 +55,14 @@ // TIM1 - DAC for AUX outputs #define AUXOUT_DAC_PWM_DEVICE PWMD8 -// PB14 - TIM1_CH2N -#define AUXOUT_DAC_PWM_CHANNEL_0 1 -// PB15 - TIM1_CH3N -#define AUXOUT_DAC_PWM_CHANNEL_1 3 +// PC6 - TIM1_CH2N +#define AUXOUT_DAC_PWM_CHANNEL_0 0 +// Riple cancelation output (should be inverted) +#define AUXOUT_DAC_PWM_CHANNEL_0_NC 1 +// PC8 - TIM1_CH3N +#define AUXOUT_DAC_PWM_CHANNEL_1 2 +// Riple cancelation output (should be inverted) +#define AUXOUT_DAC_PWM_CHANNEL_1_NC 3 #define ID_SEL1_PORT GPIOC #define ID_SEL1_PIN 13