diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-04-11 16:56:06 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-04-11 16:56:06 -0700 |
| commit | 45dfaa835f721ec299a6527586ab1f755356b906 (patch) | |
| tree | bac9a109d263fa6a135480275bd1047b2a647b5a | |
| parent | 1e8fc15a41c4145fe7aca47caf4ddad95f4ada74 (diff) | |
atmel-samd: Reset PulseIn correctly on soft reset.
| -rw-r--r-- | atmel-samd/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c index 613abb5a3..4eb810b21 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -25,6 +25,7 @@ #include <board.h> #include "common-hal/analogio/AnalogIn.h" +#include "common-hal/pulseio/PulseIn.h" #include "common-hal/pulseio/PulseOut.h" #include "common-hal/pulseio/PWMOut.h" #include "common-hal/usb_hid/__init__.h" @@ -171,6 +172,7 @@ void reset_samd21(void) { analogin_reset(); + pulsein_reset(); pulseout_reset(); // Wait for the DAC to sync. |
