Skip to content

Commit cce8b2b

Browse files
committed
raspberypi: Allow mpconfigboard to override additional items
This allows more options to be overridden to 0 in an mpconfigboard.mk. Improved: * FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG Still problematic (pull requests welcome): * RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined * BITBANGIO, possibly only if BUSIO is enabled * RTC Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get ``` 323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB). 12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB). ``` Closes #4515
1 parent 7471e97 commit cce8b2b

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

ports/raspberrypi/mpconfigport.mk

+10-14
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,24 @@ endif
1717
# All raspberrypi ports have longints.
1818
LONGINT_IMPL = MPZ
1919

20-
ifndef CIRCUITPY_RP2PIO
21-
CIRCUITPY_RP2PIO = 1
22-
else
23-
CIRCUITPY_NEOPIXEL_WRITE = 0
24-
endif
25-
26-
CIRCUITPY_FRAMEBUFFERIO = 1
27-
CIRCUITPY_FULL_BUILD = 1
20+
CIRCUITPY_RP2PIO ?= 1
21+
CIRCUITPY_NEOPIXEL_WRITE ?= $(CIRCUITPY_RP2PIO)
22+
CIRCUITPY_FRAMEBUFFERIO ?= 1
23+
CIRCUITPY_FULL_BUILD ?= 1
2824
CIRCUITPY_AUDIOMP3 ?= 1
29-
CIRCUITPY_BITOPS = 1
30-
CIRCUITPY_PWMIO = 1
31-
CIRCUITPY_RGBMATRIX = 1
32-
CIRCUITPY_ROTARYIO = 1
25+
CIRCUITPY_BITOPS ?= 1
26+
CIRCUITPY_PWMIO ?= 1
27+
CIRCUITPY_RGBMATRIX ?= 1
28+
CIRCUITPY_ROTARYIO ?= 1
3329

3430
# Things that need to be implemented.
3531
# Use PWM interally
3632
CIRCUITPY_FREQUENCYIO = 0
3733
CIRCUITPY_I2CPERIPHERAL = 0
3834
CIRCUITPY_NVM = 1
3935
# Use PIO interally
40-
CIRCUITPY_PULSEIO = 1
41-
CIRCUITPY_WATCHDOG = 1
36+
CIRCUITPY_PULSEIO ?= 1
37+
CIRCUITPY_WATCHDOG ?= 1
4238

4339
# Audio via PWM
4440
CIRCUITPY_AUDIOIO = 0

0 commit comments

Comments
 (0)