From 12430ddc2a42630e276ba81ceb6ddc6952aa1083 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Tue, 2 Apr 2024 13:38:21 +0800 Subject: [PATCH] Mapped audio mute --- radio/src/targets/pl18/hal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/radio/src/targets/pl18/hal.h b/radio/src/targets/pl18/hal.h index 814fcdee9..2f169e96c 100644 --- a/radio/src/targets/pl18/hal.h +++ b/radio/src/targets/pl18/hal.h @@ -522,6 +522,13 @@ #define AUDIO_TIMER TIM6 #define AUDIO_DMA DMA1 +#if defined(RADIO_NB4P) + #define AUDIO_MUTE_GPIO GPIO_PIN(GPIOH, 9) // PH.09 audio amp control pin + #define AUDIO_UNMUTE_DELAY 120 // ms + #define AUDIO_MUTE_DELAY 500 // ms + #define INVERTED_MUTE_PIN +#endif + // I2C Bus #define I2C_B1 I2C1 #define I2C_B1_SCL_GPIO GPIO_PIN(GPIOB, 8) // PB.08