diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-05-24 10:43:32 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@chickadee.tech> | 2017-07-28 12:12:38 -0700 |
| commit | 557ceded00de20d2070e1397d3dec322f753d1e6 (patch) | |
| tree | 01535b9ba963fedb782be8041078055c04c9c185 /atmel-samd/main.c | |
| parent | 48375ba954b387a1182d8a8bb1676fe2059bd183 (diff) | |
atmel-samd: Introduce audiobusio.PDMIn for recording audio from PDM
microphones.
Diffstat (limited to 'atmel-samd/main.c')
| -rw-r--r-- | atmel-samd/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c index 842dae451..d84c44f86 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -28,6 +28,7 @@ #include "common-hal/analogio/AnalogIn.h" #include "common-hal/audioio/AudioOut.h" +#include "common-hal/audiobusio/PDMIn.h" #include "common-hal/pulseio/PulseIn.h" #include "common-hal/pulseio/PulseOut.h" #include "common-hal/pulseio/PWMOut.h" @@ -161,13 +162,16 @@ void reset_samd21(void) { } #ifdef EXPRESS_BOARD + audioout_reset(); touchin_reset(); + pdmin_reset(); + pulsein_reset(); + pulseout_reset(); + pwmout_reset(); #endif analogin_reset(); - pulsein_reset(); - pulseout_reset(); // Wait for the DAC to sync then reset. while (DAC->STATUS.reg & DAC_STATUS_SYNCBUSY) {} @@ -175,8 +179,6 @@ void reset_samd21(void) { reset_all_pins(); - audioout_reset(); - pwmout_reset(); usb_hid_reset(); |
