aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/stm32
diff options
context:
space:
mode:
authorGravatar Drashna Jaelre <drashna@live.com>2019-08-13 10:28:12 -0700
committerGravatar GitHub <noreply@github.com>2019-08-13 10:28:12 -0700
commit547fbe769c684745195a53baf9f62730ceea804d (patch)
tree5fa8550d2d5947b27e2f0c04e1730431eaaf6720 /quantum/stm32
parent50045624411df31968f7e2d2996ad342d689fe4f (diff)
downloadqmk_firmware-547fbe769c684745195a53baf9f62730ceea804d.tar.gz
Enable PWM Support for Planck EZ Indicator Lights (#6473)
* remove led layer code * enable PWM on STM32F303 * Unusable PWM code * Updated PWM Stuff? * PWM Semi-working * Both LEDs working at the same time * Update names * Add led level functions * Add LED levels and persistent settings * Revert change due to issues with timing related code * Review feedback and minor cleanup
Diffstat (limited to 'quantum/stm32')
-rw-r--r--quantum/stm32/halconf.h2
-rw-r--r--quantum/stm32/mcuconf.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/quantum/stm32/halconf.h b/quantum/stm32/halconf.h
index c3e0cbb72..a14ace02b 100644
--- a/quantum/stm32/halconf.h
+++ b/quantum/stm32/halconf.h
@@ -111,7 +111,7 @@
* @brief Enables the PWM subsystem.
*/
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
-#define HAL_USE_PWM FALSE
+#define HAL_USE_PWM TRUE
#endif
/**
diff --git a/quantum/stm32/mcuconf.h b/quantum/stm32/mcuconf.h
index 36f8ca225..32a73fb38 100644
--- a/quantum/stm32/mcuconf.h
+++ b/quantum/stm32/mcuconf.h
@@ -183,9 +183,9 @@
*/
#define STM32_PWM_USE_ADVANCED FALSE
#define STM32_PWM_USE_TIM1 FALSE
-#define STM32_PWM_USE_TIM2 TRUE
+#define STM32_PWM_USE_TIM2 FALSE
#define STM32_PWM_USE_TIM3 TRUE
-#define STM32_PWM_USE_TIM4 FALSE
+#define STM32_PWM_USE_TIM4 TRUE
#define STM32_PWM_USE_TIM8 FALSE
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
#define STM32_PWM_TIM2_IRQ_PRIORITY 7