diff options
author | Drashna Jael're <drashna@live.com> | 2020-05-26 10:30:23 -0700 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-06-12 17:00:27 +0900 |
commit | e6c9b83eac395d739731d2bda9ae1fc66e077868 (patch) | |
tree | 99151fd4cdcf73d6835a1b7536beaf29b646290d /quantum | |
parent | 0e20dcd6f1b2f66e2b694eecb7558323df83304b (diff) |
Pull A5 High when channel is stopped
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/audio/audio_chibios.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/quantum/audio/audio_chibios.c b/quantum/audio/audio_chibios.c index fba7c59873..c21c117f7d 100644 --- a/quantum/audio/audio_chibios.c +++ b/quantum/audio/audio_chibios.c @@ -89,9 +89,15 @@ static void gpt_cb8(GPTDriver *gptp); gptStartContinuous(&GPTD6, 2U) #define START_CHANNEL_2() \ gptStart(&GPTD7, &gpt7cfg1); \ - gptStartContinuous(&GPTD7, 2U) + gptStartContinuous(&GPTD7, 2U); \ + palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG) + #define STOP_CHANNEL_1() gptStopTimer(&GPTD6) -#define STOP_CHANNEL_2() gptStopTimer(&GPTD7) +#define STOP_CHANNEL_2() \ + gptStopTimer(&GPTD7); \ + palSetPadMode(GPIOA, 5, PAL_MODE_OUTPUT_PUSHPULL); \ + palSetPad(GPIOA, 5) + #define RESTART_CHANNEL_1() \ STOP_CHANNEL_1(); \ START_CHANNEL_1() |