Skip to content

Commit 1b86ab4

Browse files
committed
further reduce code and memory usage
1 parent 177074a commit 1b86ab4

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

ports/atmel-samd/boards/bradanlanestudio_coin_m0/mpconfigboard.mk

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,39 @@ CHIP_FAMILY = samd21
1818

1919
SPI_FLASH_FILESYSTEM = 1
2020
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
21-
LONGINT_IMPL = MPZ
21+
LONGINT_IMPL = NONE
2222

2323
# the M0 Coin has limited functionality and many modules can be eliminated
2424

2525
# there may be more modules which are of no used but will require further digging
2626

27+
# Disable modules that are unusable on this special-purpose board.
28+
29+
CIRCUITPY_FULL_BUILD = 0
30+
31+
CIRCUITPY_AESIO = 0
32+
CIRCUITPY_AUDIOBUSIO = 0
33+
CIRCUITPY_AUDIOIO = 1
34+
CIRCUITPY_BITBANGIO = 0
35+
CIRCUITPY_BITMAPFILTER = 0
36+
CIRCUITPY_BITMAPTOOLS = 0
37+
CIRCUITPY_BLEIO = 0
38+
CIRCUITPY_BLEIO_HCI = 0
2739
CIRCUITPY_DISPLAYIO = 0
28-
CIRCUITPY_PULSEIO = 0
29-
CIRCUITPY_RTC = 0
40+
CIRCUITPY_FRAMEBUFFERIO = 0
41+
CIRCUITPY_FREQUENCYIO = 0
42+
CIRCUITPY_I2CTARGET = 0
43+
CIRCUITPY_KEYPAD = 0
3044
CIRCUITPY_ONEWIREIO = 0
45+
CIRCUITPY_PS2IO = 0
46+
CIRCUITPY_PULSEIO = 0
47+
CIRCUITPY_RGBMATRIX = 0
3148
CIRCUITPY_ROTARYIO = 0
49+
CIRCUITPY_RTC = 0
50+
CIRCUITPY_TOUCHIO = 1
51+
CIRCUITPY_USB_HID = 1
52+
CIRCUITPY_USB_MIDI = 0
3253

33-
CIRCUITPY_BITBANGIO = 1
34-
CIRCUITPY_COUNTIO = 1
35-
CIRCUITPY_BUSDEVICE = 1
3654

3755
# Include these Python libraries in firmware.
3856
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID

0 commit comments

Comments
 (0)