Skip to content

Commit

Permalink
Remove STM32_PWM_USE_ADVANCED references (qmk#24432)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Sep 24, 2024
1 parent c622e14 commit a7486a8
Show file tree
Hide file tree
Showing 23 changed files with 2 additions and 64 deletions.
2 changes: 1 addition & 1 deletion docs/drivers/ws2812.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ The following `#define`s apply only to the `pwm` driver:
|`WS2812_PWM_COMPLEMENTARY_OUTPUT`|*Not defined* |Whether the PWM output is complementary (`TIMx_CHyN`) |

::: tip
Using a complementary timer output (`TIMx_CHyN`) is possible only for advanced-control timers (1, 8 and 20 on STM32), and the `STM32_PWM_USE_ADVANCED` option in `mcuconf.h` must be set to `TRUE`. Complementary outputs of general-purpose timers are not supported due to ChibiOS limitations.
Using a complementary timer output (`TIMx_CHyN`) is possible only for advanced-control timers (1, 8 and 20 on STM32). Complementary outputs of general-purpose timers are not supported due to ChibiOS limitations.
:::

## API {#api}
Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/87h/delta/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/87htsc/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/acheron/apollo/88htsc/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/acheron/athena/alpha/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/athena/beta/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/shark/beta/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/acheron/themis/87h/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/acheron/themis/87htsc/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/acheron/themis/88htsc/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/aurora65/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE
3 changes: 0 additions & 3 deletions keyboards/black_hellebore/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/cipulot/ec_980c/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/cipulot/ec_typek/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
2 changes: 0 additions & 2 deletions keyboards/meetlab/kalice/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE
3 changes: 0 additions & 3 deletions keyboards/mode/m256wh/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/mode/m256ws/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
3 changes: 0 additions & 3 deletions keyboards/smithrune/iron165r2/f411/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/smithrune/magnus/m75h/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/smithrune/magnus/m75s/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include_next <mcuconf.h>

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

Expand Down
3 changes: 0 additions & 3 deletions keyboards/tg67/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE
3 changes: 0 additions & 3 deletions keyboards/viendi8l/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED TRUE

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE
2 changes: 1 addition & 1 deletion platforms/chibios/drivers/backlight_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# define BACKLIGHT_PWM_CHANNEL 3
#endif

// Support for pins which are on TIM1_CH1N - requires STM32_PWM_USE_ADVANCED
// Support for pins which are on TIM1_CH1N
#ifdef BACKLIGHT_PWM_COMPLEMENTARY_OUTPUT
# if BACKLIGHT_ON_STATE == 1
# define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW;
Expand Down

0 comments on commit a7486a8

Please sign in to comment.