aboutsummaryrefslogtreecommitdiff
path: root/docs/features/backlight.md
diff options
context:
space:
mode:
authorQMK Bot <[email protected]>2024-11-14 18:00:36 +0000
committerQMK Bot <[email protected]>2024-11-14 18:00:36 +0000
commit79a661fe61f28e2df76b94f36f0cc3366f088f70 (patch)
tree640dfe2af0b851fa4c303e48be8ee9771ae4847a /docs/features/backlight.md
parent0bda0f47754d01aa904f9831ff58ef760807ab16 (diff)
parent46236ce3de8385f27e3f13a9921abee7e1e0fa57 (diff)
downloadqmk_firmware-79a661fe61f28e2df76b94f36f0cc3366f088f70.tar.gz
qmk_firmware-79a661fe61f28e2df76b94f36f0cc3366f088f70.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'docs/features/backlight.md')
-rw-r--r--docs/features/backlight.md44
1 files changed, 30 insertions, 14 deletions
diff --git a/docs/features/backlight.md b/docs/features/backlight.md
index 94726756fd..20f84ac6b5 100644
--- a/docs/features/backlight.md
+++ b/docs/features/backlight.md
@@ -161,15 +161,23 @@ Note that the choice of timer may conflict with the [Audio](audio) feature.
Depending on the ChibiOS board configuration, you may need to enable PWM at the keyboard level. For STM32, this would look like:
-`halconf.h`:
-```c
-#define HAL_USE_PWM TRUE
+::: code-group
+```c [halconf.h]
+#pragma once
+
+#define HAL_USE_PWM TRUE // [!code focus]
+
+#include_next <halconf.h>
```
-`mcuconf.h`:
-```c
-#undef STM32_PWM_USE_TIM4
-#define STM32_PWM_USE_TIM4 TRUE
+```c [mcuconf.h]
+#pragma once
+
+#include_next <mcuconf.h>
+
+#undef STM32_PWM_USE_TIM4 // [!code focus]
+#define STM32_PWM_USE_TIM4 TRUE // [!code focus]
```
+:::
The following `#define`s apply only to the `pwm` driver:
@@ -187,15 +195,23 @@ Refer to the ST datasheet for your particular MCU to determine these values. For
Depending on the ChibiOS board configuration, you may need to enable general-purpose timers at the keyboard level. For STM32, this would look like:
-`halconf.h`:
-```c
-#define HAL_USE_GPT TRUE
+::: code-group
+```c [halconf.h]
+#pragma once
+
+#define HAL_USE_GPT TRUE // [!code focus]
+
+#include_next <halconf.h>
```
-`mcuconf.h`:
-```c
-#undef STM32_GPT_USE_TIM15
-#define STM32_GPT_USE_TIM15 TRUE
+```c [mcuconf.h]
+#pragma once
+
+#include_next <mcuconf.h>
+
+#undef STM32_GPT_USE_TIM15 // [!code focus]
+#define STM32_GPT_USE_TIM15 TRUE // [!code focus]
```
+:::
The following `#define`s apply only to the `timer` driver: