diff options
author | Sergey Vlasov <sigprof@gmail.com> | 2021-04-19 10:32:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 00:32:14 -0700 |
commit | fe9bd0afb9a45dbad9ca06bd496e2cf72a080dac (patch) | |
tree | 57d7e4cc6c9152c7b4af787f871c3875acb2bb3c /quantum/audio | |
parent | 17c880b076ba3bea394f3443a842c98958982a52 (diff) | |
download | qmk_firmware-fe9bd0afb9a45dbad9ca06bd496e2cf72a080dac.tar.gz qmk_firmware-fe9bd0afb9a45dbad9ca06bd496e2cf72a080dac.zip |
Fix F303 audio output on A4 with the dac_basic driver (#12480)
The dac_basic driver did not work properly with `#define AUDIO_PIN A4`
(instead of configuring the A4 pin, the driver actually was switching
the A5 pin to analog mode, breaking any other usage of that pin in
addition to emitting a distorted signal on the improperly configured
A4 pin). Fix the code to configure the A4 pin as intended.
Diffstat (limited to 'quantum/audio')
-rw-r--r-- | quantum/audio/driver_chibios_dac_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/audio/driver_chibios_dac_basic.c b/quantum/audio/driver_chibios_dac_basic.c index b8cec5ff1b..fac6513506 100644 --- a/quantum/audio/driver_chibios_dac_basic.c +++ b/quantum/audio/driver_chibios_dac_basic.c @@ -101,7 +101,7 @@ static const DACConversionGroup dac_conv_grp_ch2 = {.num_channels = 1U, .trigger void channel_1_start(void) { gptStart(&GPTD6, &gpt6cfg1); gptStartContinuous(&GPTD6, 2U); - palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG); + palSetPadMode(GPIOA, 4, PAL_MODE_INPUT_ANALOG); } void channel_1_stop(void) { |