Skip to content

Commit 5c6e80a

Browse files
committed
Shrink builds by defining advanced micropython API
Also, ignore more pins on SAMD boards and disable EXFAT on others.
1 parent e0ce5ff commit 5c6e80a

File tree

17 files changed

+165
-14
lines changed

17 files changed

+165
-14
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// SWD-only
28+
#define IGNORE_PIN_PA30 1
29+
#define IGNORE_PIN_PA31 1

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,24 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-Distance.pdf
29+
#define IGNORE_PIN_PA03 1
30+
#define IGNORE_PIN_PA02 1
31+
#define IGNORE_PIN_PB08 1
32+
#define IGNORE_PIN_PB09 1
33+
#define IGNORE_PIN_PA04 1
34+
#define IGNORE_PIN_PA05 1
35+
#define IGNORE_PIN_PB02 1
36+
#define IGNORE_PIN_PA14 1
37+
#define IGNORE_PIN_PA15 1
38+
#define IGNORE_PIN_PB03 1
39+
#define IGNORE_PIN_PA28 1
40+
#define IGNORE_PIN_PB22 1
41+
#define IGNORE_PIN_PB23 1
42+
#define IGNORE_PIN_PA13 1

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,22 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-IMU.pdf
29+
#define IGNORE_PIN_PB08 1
30+
#define IGNORE_PIN_PB09 1
31+
#define IGNORE_PIN_PA04 1
32+
#define IGNORE_PIN_PA05 1
33+
#define IGNORE_PIN_PB02 1
34+
#define IGNORE_PIN_PA14 1
35+
#define IGNORE_PIN_PA15 1
36+
#define IGNORE_PIN_PB03 1
37+
#define IGNORE_PIN_PA28 1
38+
#define IGNORE_PIN_PB22 1
39+
#define IGNORE_PIN_PB23 1
40+
#define IGNORE_PIN_PA13 1

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,24 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-Light.pdf
29+
#define IGNORE_PIN_PA03 1
30+
#define IGNORE_PIN_PA02 1
31+
#define IGNORE_PIN_PB08 1
32+
#define IGNORE_PIN_PB09 1
33+
#define IGNORE_PIN_PA04 1
34+
#define IGNORE_PIN_PA05 1
35+
#define IGNORE_PIN_PB02 1
36+
#define IGNORE_PIN_PA14 1
37+
#define IGNORE_PIN_PA15 1
38+
#define IGNORE_PIN_PB03 1
39+
#define IGNORE_PIN_PA28 1
40+
#define IGNORE_PIN_PB22 1
41+
#define IGNORE_PIN_PB23 1
42+
#define IGNORE_PIN_PA13 1

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,24 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-Weather.pdf
29+
#define IGNORE_PIN_PA03 1
30+
#define IGNORE_PIN_PA02 1
31+
#define IGNORE_PIN_PB08 1
32+
#define IGNORE_PIN_PB09 1
33+
#define IGNORE_PIN_PA04 1
34+
#define IGNORE_PIN_PA05 1
35+
#define IGNORE_PIN_PB02 1
36+
#define IGNORE_PIN_PA14 1
37+
#define IGNORE_PIN_PA15 1
38+
#define IGNORE_PIN_PB03 1
39+
#define IGNORE_PIN_PA28 1
40+
#define IGNORE_PIN_PB22 1
41+
#define IGNORE_PIN_PB23 1
42+
#define IGNORE_PIN_PA13 1

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,21 @@
1717
// USB is always used internally so skip the pin objects for it.
1818
#define IGNORE_PIN_PA24 1
1919
#define IGNORE_PIN_PA25 1
20+
21+
// Connected to a crystal
22+
#define IGNORE_PIN_PA00 1
23+
#define IGNORE_PIN_PA01 1
24+
25+
// Unconnected
26+
#define IGNORE_PIN_PB03 1
27+
#define IGNORE_PIN_PB22 1
28+
#define IGNORE_PIN_PB23 1
29+
#define IGNORE_PIN_PA09 1
30+
#define IGNORE_PIN_PA13 1
31+
#define IGNORE_PIN_PA14 1
32+
#define IGNORE_PIN_PA27 1
33+
#define IGNORE_PIN_PA28 1
34+
35+
// SWD-only
36+
#define IGNORE_PIN_PA30 1
37+
#define IGNORE_PIN_PA31 1

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,24 @@
1717
// USB is always used internally so skip the pin objects for it.
1818
#define IGNORE_PIN_PA24 1
1919
#define IGNORE_PIN_PA25 1
20+
21+
// Connected to a crystal
22+
#define IGNORE_PIN_PA00 1
23+
#define IGNORE_PIN_PA01 1
24+
25+
// Unconnected
26+
#define IGNORE_PIN_PB03 1
27+
#define IGNORE_PIN_PB22 1
28+
#define IGNORE_PIN_PB23 1
29+
#define IGNORE_PIN_PA06 1
30+
#define IGNORE_PIN_PA08 1
31+
#define IGNORE_PIN_PA09 1
32+
#define IGNORE_PIN_PA13 1
33+
#define IGNORE_PIN_PA14 1
34+
#define IGNORE_PIN_PA21 1
35+
#define IGNORE_PIN_PA27 1
36+
#define IGNORE_PIN_PA28 1
37+
38+
// SWD-only
39+
#define IGNORE_PIN_PA30 1
40+
#define IGNORE_PIN_PA31 1

ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919

2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
#define MICROPY_FATFS_EXFAT 0

ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ CIRCUITPY_AUDIOMP3 = 0
1515
CIRCUITPY_BLEIO_HCI = 0
1616
CIRCUITPY_DISPLAYIO = 0
1717
CIRCUITPY_FRAMEBUFFERIO = 0
18+
CIRCUITPY_GETPASS = 0
1819
CIRCUITPY_KEYPAD = 0
1920
CIRCUITPY_MSGPACK = 0
2021
CIRCUITPY_PS2IO = 0

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
// USB is always used internally so skip the pin objects for it.
1919
#define IGNORE_PIN_PA24 1
2020
#define IGNORE_PIN_PA25 1
21+
22+
// Connected to a crystal
23+
#define IGNORE_PIN_PA00 1
24+
#define IGNORE_PIN_PA01 1

0 commit comments

Comments
 (0)