mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-10-19 01:59:55 -05:00
stm32: add PB4/PB5 hardware pwm pins on the stm32f1
TIM3 channels 1 and 2 are available on PB4 and PB5 through the timer's partial remap. gpio_peripheral() already programs TIM3_REMAP_PARTIALREMAP for those two pins, but they were missing from the stm32f1 hardware pwm table, so a config naming them was rejected as "Not a valid PWM pin". The stm32f0 and stm32h7 tables already list them. Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
1 parent
d0a1e275d8
commit
6ea0b349e6
1 file changed
+2
@@ -99,6 +99,8 @@ static const struct gpio_pwm_info pwm_regs[] = {
|
||||
{TIM3, GPIO('A', 7), 2, GPIO_FUNCTION(1)},
|
||||
{TIM3, GPIO('B', 0), 3, GPIO_FUNCTION(1)},
|
||||
{TIM3, GPIO('B', 1), 4, GPIO_FUNCTION(1)},
|
||||
{TIM3, GPIO('B', 4), 1, GPIO_FUNCTION(2)},
|
||||
{TIM3, GPIO('B', 5), 2, GPIO_FUNCTION(2)},
|
||||
{TIM3, GPIO('C', 6), 1, GPIO_FUNCTION(2)},
|
||||
{TIM3, GPIO('C', 7), 2, GPIO_FUNCTION(2)},
|
||||
{TIM3, GPIO('C', 8), 3, GPIO_FUNCTION(2)},
|
||||
|
||||
Reference in new issue
Block a user