atmel-samd: Reset PulseIn correctly on soft reset.

This commit is contained in:
Scott Shawcroft 2017-04-11 16:56:06 -07:00
parent 1e8fc15a41
commit 45dfaa835f
1 changed files with 2 additions and 0 deletions

View File

@ -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.