diff options
Diffstat (limited to 'quantum/audio')
| -rw-r--r-- | quantum/audio/driver_chibios_pwm_hardware.c | 4 | ||||
| -rw-r--r-- | quantum/audio/song_list.h | 8 |
2 files changed, 5 insertions, 7 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); |
diff --git a/quantum/audio/song_list.h b/quantum/audio/song_list.h index b54b397e1..8e80a016a 100644 --- a/quantum/audio/song_list.h +++ b/quantum/audio/song_list.h | |||
| @@ -20,11 +20,9 @@ | |||
| 20 | 20 | ||
| 21 | #include "musical_notes.h" | 21 | #include "musical_notes.h" |
| 22 | 22 | ||
| 23 | #if __GNUC__ > 5 // don't use for older gcc compilers since check isn't supported. | 23 | #if __has_include("user_song_list.h") |
| 24 | # if __has_include("user_song_list.h") | 24 | # include "user_song_list.h" |
| 25 | # include "user_song_list.h" | 25 | #endif // if file exists |
| 26 | # endif // if file exists | ||
| 27 | #endif // __GNUC__ | ||
| 28 | 26 | ||
| 29 | #define NO_SOUND | 27 | #define NO_SOUND |
| 30 | 28 | ||
