From a2a9a3df29af24d7770fead19cece51312e6f49c Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Tue, 2 Apr 2024 23:04:51 -0600 Subject: [PATCH] Minor updates for nrf52 --- src/NRF52840/AutoAnalogAudio.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/NRF52840/AutoAnalogAudio.cpp b/src/NRF52840/AutoAnalogAudio.cpp index 5ae8cf5..e8ce90f 100644 --- a/src/NRF52840/AutoAnalogAudio.cpp +++ b/src/NRF52840/AutoAnalogAudio.cpp @@ -37,13 +37,13 @@ void (*AutoAnalog::_onReceive)(uint16_t *buf, uint32_t buf_len); #endif -#if !defined ARDUINO_NRF52840_FEATHER + #define PDM_IRQ_PRIORITY 7 #ifndef NRF_PDM_FREQ_1280K #define NRF_PDM_FREQ_1280K (nrf_pdm_freq_t)(0x0A000000UL) ///< PDM_CLK= 1.280 MHz (32 MHz / 25) => Fs= 20000 Hz #endif #define DEFAULT_PDM_GAIN 40 -#endif + #define PIN_MCK 15//(13) #define PIN_SCK 13//(14) #define PIN_LRCK 14//(15) @@ -54,8 +54,6 @@ #define PIN_PDM_DIN 1 #define PIN_PDM_CLK 2 #define PIN_PDM_PWR 3 - #define DEFAULT_PDM_GAIN 20 - #define PDM_IRQ_PRIORITY 1 #endif /****************************************************************************/