Skip to content

Commit fb6b438

Browse files
committed
Make getpass and traceback full build only
This leaves much more space on SAMD21 builds that aren't "full builds". These are new APIs that we don't need to add to old boards. Also, tweak two Arduino boards to save space on them.
1 parent 0c1d6ce commit fb6b438

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,16 @@
1616
// USB is always used internally so skip the pin objects for it.
1717
#define IGNORE_PIN_PA24 1
1818
#define IGNORE_PIN_PA25 1
19+
// USD ID
20+
#define IGNORE_PIN_PA18 1
21+
22+
// Hooked to the external crystal
23+
#define IGNORE_PIN_PA00 1
24+
#define IGNORE_PIN_PA01 1
25+
26+
// SWD only
27+
#define IGNORE_PIN_PA30 1
28+
#define IGNORE_PIN_PA31 1
29+
30+
// Not connected
31+
#define IGNORE_PIN_PA28 1

ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@
1616
// USB is always used internally so skip the pin objects for it.
1717
#define IGNORE_PIN_PA24 1
1818
#define IGNORE_PIN_PA25 1
19+
20+
// Not connected
21+
#define IGNORE_PIN_PA00 1
22+
#define IGNORE_PIN_PA01 1
23+
24+
// SWD only
25+
#define IGNORE_PIN_PA30 1
26+
#define IGNORE_PIN_PA31 1

py/circuitpy_mpconfig.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ CFLAGS += -DCIRCUITPY_FREQUENCYIO=$(CIRCUITPY_FREQUENCYIO)
190190
CIRCUITPY_GAMEPADSHIFT ?= 0
191191
CFLAGS += -DCIRCUITPY_GAMEPADSHIFT=$(CIRCUITPY_GAMEPADSHIFT)
192192

193-
CIRCUITPY_GETPASS ?= 1
193+
CIRCUITPY_GETPASS ?= $(CIRCUITPY_FULL_BUILD)
194194
CFLAGS += -DCIRCUITPY_GETPASS=$(CIRCUITPY_GETPASS)
195195

196196
CIRCUITPY_GNSS ?= 0
@@ -336,7 +336,7 @@ CFLAGS += -DCIRCUITPY_TOUCHIO_USE_NATIVE=$(CIRCUITPY_TOUCHIO_USE_NATIVE)
336336
CIRCUITPY_TOUCHIO ?= 1
337337
CFLAGS += -DCIRCUITPY_TOUCHIO=$(CIRCUITPY_TOUCHIO)
338338

339-
CIRCUITPY_TRACEBACK ?= 1
339+
CIRCUITPY_TRACEBACK ?= $(CIRCUITPY_FULL_BUILD)
340340
CFLAGS += -DCIRCUITPY_TRACEBACK=$(CIRCUITPY_TRACEBACK)
341341

342342
# For debugging.

0 commit comments

Comments
 (0)