mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
Remove STM32_PWM_USE_ADVANCED
references (#24432)
This commit is contained in:
parent
c622e1439c
commit
a7486a8d87
@ -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`) |
|
|`WS2812_PWM_COMPLEMENTARY_OUTPUT`|*Not defined* |Whether the PWM output is complementary (`TIMx_CHyN`) |
|
||||||
|
|
||||||
::: tip
|
::: 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}
|
## API {#api}
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
#undef STM32_I2C_USE_I2C1
|
#undef STM32_I2C_USE_I2C1
|
||||||
#define STM32_I2C_USE_I2C1 TRUE
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM3
|
#undef STM32_PWM_USE_TIM3
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
#undef STM32_I2C_USE_I2C1
|
#undef STM32_I2C_USE_I2C1
|
||||||
#define STM32_I2C_USE_I2C1 TRUE
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM3
|
#undef STM32_PWM_USE_TIM3
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
#undef STM32_I2C_USE_I2C1
|
#undef STM32_I2C_USE_I2C1
|
||||||
#define STM32_I2C_USE_I2C1 TRUE
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM3
|
#undef STM32_PWM_USE_TIM3
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -20,6 +20,3 @@
|
|||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -21,8 +21,5 @@
|
|||||||
#undef STM32_ADC_USE_ADC1
|
#undef STM32_ADC_USE_ADC1
|
||||||
#define STM32_ADC_USE_ADC1 TRUE
|
#define STM32_ADC_USE_ADC1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -21,8 +21,5 @@
|
|||||||
#undef STM32_ADC_USE_ADC1
|
#undef STM32_ADC_USE_ADC1
|
||||||
#define STM32_ADC_USE_ADC1 TRUE
|
#define STM32_ADC_USE_ADC1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -19,5 +19,3 @@
|
|||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -18,8 +18,5 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
#undef STM32_I2C_USE_I2C1
|
#undef STM32_I2C_USE_I2C1
|
||||||
#define STM32_I2C_USE_I2C1 TRUE
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM3
|
#undef STM32_PWM_USE_TIM3
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM3
|
#undef STM32_PWM_USE_TIM3
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
#include_next <mcuconf.h>
|
#include_next <mcuconf.h>
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM3
|
#undef STM32_PWM_USE_TIM3
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
|
||||||
|
@ -20,6 +20,3 @@
|
|||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
@ -21,8 +21,5 @@
|
|||||||
#undef STM32_I2C_USE_I2C1
|
#undef STM32_I2C_USE_I2C1
|
||||||
#define STM32_I2C_USE_I2C1 TRUE
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
#undef STM32_PWM_USE_ADVANCED
|
|
||||||
#define STM32_PWM_USE_ADVANCED TRUE
|
|
||||||
|
|
||||||
#undef STM32_PWM_USE_TIM1
|
#undef STM32_PWM_USE_TIM1
|
||||||
#define STM32_PWM_USE_TIM1 TRUE
|
#define STM32_PWM_USE_TIM1 TRUE
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
# define BACKLIGHT_PWM_CHANNEL 3
|
# define BACKLIGHT_PWM_CHANNEL 3
|
||||||
#endif
|
#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
|
#ifdef BACKLIGHT_PWM_COMPLEMENTARY_OUTPUT
|
||||||
# if BACKLIGHT_ON_STATE == 1
|
# if BACKLIGHT_ON_STATE == 1
|
||||||
# define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW;
|
# define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user