diff options
author | Drashna Jaelre <[email protected]> | 2023-12-21 19:38:59 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-21 19:38:59 -0800 |
commit | 29f8fa35cf7a2cb1630f2afb76dcadd2a5e24e4b (patch) | |
tree | 46c5b108c99651274ef50d72bc05cf160ed25fa3 /docs/audio_driver.md | |
parent | 9069c4540f11dc1d17d0f13920cb1cd2dc8aa9f7 (diff) | |
download | qmk_firmware-29f8fa35cf7a2cb1630f2afb76dcadd2a5e24e4b.tar.gz qmk_firmware-29f8fa35cf7a2cb1630f2afb76dcadd2a5e24e4b.zip |
[Audio] Enable Complementary output for PWM Hardware driver (#22726)
Co-authored-by: Joel Challis <[email protected]>
Diffstat (limited to 'docs/audio_driver.md')
-rw-r--r-- | docs/audio_driver.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/audio_driver.md b/docs/audio_driver.md index 7bce6c2d9b..03c0a824df 100644 --- a/docs/audio_driver.md +++ b/docs/audio_driver.md @@ -199,6 +199,11 @@ with all this information, the configuration would contain these lines: ChibiOS uses GPIOv1 for the F103, which only knows of one alternate function. On 'larger' STM32s, GPIOv2 or GPIOv3 are used; with them it is also necessary to configure `AUDIO_PWM_PAL_MODE` to the correct alternate function for the selected pin, timer and timer-channel. +You can also use the Complementary output (`TIMx_CHyN`) for PWM on supported controllers. To enable this functionality, you will need to make the following changes: +```c +// config.h: +#define AUDIO_PWM_COMPLEMENTARY_OUTPUT +``` ### PWM software :id=pwm-software |