diff options
author | Joel Challis <git@zvecr.com> | 2021-09-15 02:19:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 11:19:51 +1000 |
commit | a78f0e8a0ba869681d636457f30e668e34853cb7 (patch) | |
tree | 1b9b4a6a6eb97dc433e2bec397e579e96086b4bc /quantum/audio/driver_chibios_pwm_hardware.c | |
parent | b56282756b5faa410301de8c4ecdcae0e0148652 (diff) | |
download | qmk_firmware-a78f0e8a0ba869681d636457f30e668e34853cb7.tar.gz qmk_firmware-a78f0e8a0ba869681d636457f30e668e34853cb7.zip |
Refactor use of _STM32_ defines (#14439)
Diffstat (limited to 'quantum/audio/driver_chibios_pwm_hardware.c')
-rw-r--r-- | quantum/audio/driver_chibios_pwm_hardware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/audio/driver_chibios_pwm_hardware.c b/quantum/audio/driver_chibios_pwm_hardware.c index 3c7d89b29..cd40019ee 100644 --- a/quantum/audio/driver_chibios_pwm_hardware.c +++ b/quantum/audio/driver_chibios_pwm_hardware.c | |||
@@ -109,9 +109,9 @@ void audio_driver_initialize(void) { | |||
109 | 109 | ||
110 | // connect the AUDIO_PIN to the PWM hardware | 110 | // connect the AUDIO_PIN to the PWM hardware |
111 | #if defined(USE_GPIOV1) // STM32F103C8 | 111 | #if defined(USE_GPIOV1) // STM32F103C8 |
112 | palSetLineMode(AUDIO_PIN, PAL_MODE_STM32_ALTERNATE_PUSHPULL); | 112 | palSetLineMode(AUDIO_PIN, PAL_MODE_ALTERNATE_PUSHPULL); |
113 | #else // GPIOv2 (or GPIOv3 for f4xx, which is the same/compatible at this command) | 113 | #else // GPIOv2 (or GPIOv3 for f4xx, which is the same/compatible at this command) |
114 | palSetLineMode(AUDIO_PIN, PAL_STM32_MODE_ALTERNATE | PAL_STM32_ALTERNATE(AUDIO_PWM_PAL_MODE)); | 114 | palSetLineMode(AUDIO_PIN, PAL_MODE_ALTERNATE(AUDIO_PWM_PAL_MODE)); |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | gptStart(&AUDIO_STATE_TIMER, &gptCFG); | 117 | gptStart(&AUDIO_STATE_TIMER, &gptCFG); |