Skip to content

Commit

Permalink
Minor updates for nrf52
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Apr 3, 2024
1 parent e5e1caa commit a2a9a3d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/NRF52840/AutoAnalogAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

/****************************************************************************/
Expand Down

0 comments on commit a2a9a3d

Please sign in to comment.