Skip to content

Commit b1a8fb8

Browse files
authored
Merge pull request #3251 from jerryneedell/jerryn_rfm9x
RFM9x -- freeze library into build
2 parents 6e5c2b3 + 5f60bec commit b1a8fb8

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+
CIRCUITPY_ANALOGIO = 0
17+
CIRCUITPY_PULSEIO = 0
18+
CIRCUITPY_NEOPIXEL_WRITE = 1
19+
CIRCUITPY_ROTARYIO = 0
20+
CIRCUITPY_RTC = 0
21+
CIRCUITPY_SAMD = 0
22+
CIRCUITPY_USB_MIDI = 0
23+
CIRCUITPY_USB_HID = 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)