Skip to content

Commit 5f6df7f

Browse files
dhalberttannewt
authored andcommitted
More io capability on non-Express boards, so call *_reset() routines
appropriately to match board capabilities.
1 parent 1709fbb commit 5f6df7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

atmel-samd/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#include "common-hal/pulseio/PulseIn.h"
6060
#include "common-hal/pulseio/PulseOut.h"
6161
#include "common-hal/pulseio/PWMOut.h"
62+
#include "common-hal/touchio/TouchIn.h"
6263
#include "common-hal/usb_hid/__init__.h"
6364

6465
#include "autoreload.h"
@@ -69,7 +70,6 @@
6970
#include "tick.h"
7071

7172
#ifdef EXPRESS_BOARD
72-
#include "common-hal/touchio/TouchIn.h"
7373
#define INTERNAL_CIRCUITPY_CONFIG_START_ADDR (0x00040000 - 0x100 - CIRCUITPY_INTERNAL_NVM_SIZE)
7474
#else
7575
#define INTERNAL_CIRCUITPY_CONFIG_START_ADDR (0x00040000 - 0x010000 - 0x100 - CIRCUITPY_INTERNAL_NVM_SIZE)
@@ -193,13 +193,13 @@ void reset_samd21(void) {
193193

194194
#ifdef EXPRESS_BOARD
195195
audioout_reset();
196+
#endif
197+
196198
touchin_reset();
197199
pdmin_reset();
198200
pulsein_reset();
199201
pulseout_reset();
200202
pwmout_reset();
201-
#endif
202-
203203
analogin_reset();
204204

205205

0 commit comments

Comments
 (0)