diff --git a/firmware/boards/f1_rev2/board.h b/firmware/boards/f1_rev2/board.h index 0608f9c..fcedb1b 100644 --- a/firmware/boards/f1_rev2/board.h +++ b/firmware/boards/f1_rev2/board.h @@ -112,7 +112,7 @@ * PB15 - PWMout1 (output pushpull, alternate, 2 Mhz). */ #define VAL_GPIOBCRL 0x8A888200 /* PB7...PB0 */ -#define VAL_GPIOBCRH 0xBB243488 /* PB15...PB8 */ +#define VAL_GPIOBCRH 0xAA243488 /* PB15...PB8 */ #define VAL_GPIOBODR 0x0000FFFF /* diff --git a/firmware/boards/f1_rev2/io/io_pins.h b/firmware/boards/f1_rev2/io/io_pins.h index 8006440..4d8d35f 100644 --- a/firmware/boards/f1_rev2/io/io_pins.h +++ b/firmware/boards/f1_rev2/io/io_pins.h @@ -44,6 +44,13 @@ // PB15 - TIM1_CH3N #define AUXOUT_DAC_PWM_CHANNEL_1 2 +// TIM1 - DAC for AUX outputs +#define AUXOUT_DAC_PWM_DEVICE PWMD1 +// PB14 - TIM1_CH2N +#define AUXOUT_DAC_PWM_CHANNEL_0 1 +// PB15 - TIM1_CH3N +#define AUXOUT_DAC_PWM_CHANNEL_1 2 + #define ID_SEL1_PORT GPIOC #define ID_SEL1_PIN 13