Skip to content

Commit 432f43a

Browse files
committed
freeze rfm9x and BusDevice, remove many built-in modules
1 parent c394af4 commit 432f43a

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,6 @@
147147
[submodule "ports/esp32s2/esp-idf"]
148148
path = ports/esp32s2/esp-idf
149149
url = https://github.com/tannewt/esp-idf.git
150+
[submodule "frozen/Adafruit_CircuitPython_RFM9x"]
151+
path = frozen/Adafruit_CircuitPython_RFM9x
152+
url = https://github.com/adafruit/Adafruit_CircuitPython_RFM9x.git

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,22 @@ INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
1111
CIRCUITPY_FULL_BUILD = 0
1212

13+
14+
# A number of modules are removed for RFM9x to make room for frozen libraries.
15+
# Many I/O functions are not available.
16+
# math is very large and is also removed.
17+
CIRCUITPY_ANALOGIO = 0
18+
CIRCUITPY_PULSEIO = 0
19+
CIRCUITPY_NEOPIXEL_WRITE = 1
20+
CIRCUITPY_ROTARYIO = 0
21+
CIRCUITPY_RTC = 0
22+
CIRCUITPY_SAMD = 0
23+
CIRCUITPY_USB_MIDI = 0
24+
CIRCUITPY_TOUCHIO = 0
25+
CFLAGS_INLINE_LIMIT = 35
26+
# Make more room.
1327
SUPEROPT_GC = 0
28+
29+
# Include these Python libraries in firmware.
30+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
31+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_RFM9x

0 commit comments

Comments
 (0)