From 5f6df7f54a06720ff0633639b0c489696f252102 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 16 Oct 2017 15:11:41 -0400 Subject: More io capability on non-Express boards, so call *_reset() routines appropriately to match board capabilities. --- atmel-samd/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atmel-samd') diff --git a/atmel-samd/main.c b/atmel-samd/main.c index fe56410c0..79b5604e8 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -59,6 +59,7 @@ #include "common-hal/pulseio/PulseIn.h" #include "common-hal/pulseio/PulseOut.h" #include "common-hal/pulseio/PWMOut.h" +#include "common-hal/touchio/TouchIn.h" #include "common-hal/usb_hid/__init__.h" #include "autoreload.h" @@ -69,7 +70,6 @@ #include "tick.h" #ifdef EXPRESS_BOARD -#include "common-hal/touchio/TouchIn.h" #define INTERNAL_CIRCUITPY_CONFIG_START_ADDR (0x00040000 - 0x100 - CIRCUITPY_INTERNAL_NVM_SIZE) #else #define INTERNAL_CIRCUITPY_CONFIG_START_ADDR (0x00040000 - 0x010000 - 0x100 - CIRCUITPY_INTERNAL_NVM_SIZE) @@ -193,13 +193,13 @@ void reset_samd21(void) { #ifdef EXPRESS_BOARD audioout_reset(); +#endif + touchin_reset(); pdmin_reset(); pulsein_reset(); pulseout_reset(); pwmout_reset(); -#endif - analogin_reset(); -- cgit v1.2.3