Skip to content

Commit

Permalink
Refactor RP2350 unique module build settings
Browse files Browse the repository at this point in the history
This enables picodvi by default on RP2350 boards and fixes micropython#9615
  • Loading branch information
tannewt committed Sep 12, 2024
1 parent 10a1f48 commit b3e458c
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ CHIP_PACKAGE = A
CHIP_FAMILY = rp2

EXTERNAL_FLASH_DEVICES = "GD25Q64C,W25Q64JVxQ"

CIRCUITPY_ALARM = 0

CIRCUITPY_FLOPPYIO = 0
CIRCUITPY_PICODVI = 1
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CHIP_PACKAGE = A
CHIP_FAMILY = rp2

EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0

# Include these Python libraries in firmware.
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SimpleIO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0

# Include these Python libraries in firmware.
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
Expand Down
1 change: 0 additions & 1 deletion ports/raspberrypi/boards/pimoroni_pga2350/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CHIP_PACKAGE = A
CHIP_FAMILY = rp2

EXTERNAL_FLASH_DEVICES = "P25Q16H"

CIRCUITPY_ALARM = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_PICODVI = 1

FROZEN_MPY_DIRS += $(TOP)/ports/raspberrypi/boards/solderparty_rp2040_stamp
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_PICODVI = 1

FROZEN_MPY_DIRS += $(TOP)/ports/raspberrypi/boards/solderparty_rp2040_stamp
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,3 @@ CHIP_PACKAGE = A
CHIP_FAMILY = rp2

EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0
CIRCUITPY_USB_HOST = 0

CIRCUITPY_FLOPPYIO = 0
CIRCUITPY_PICODVI = 1
15 changes: 14 additions & 1 deletion ports/raspberrypi/mpconfigport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CIRCUITPY_OPTIMIZE_PROPERTY_FLASH_SIZE ?= 1
# CYW43 support does not provide settable MAC addresses for station or AP.
CIRCUITPY_WIFI_RADIO_SETTABLE_MAC_ADDRESS = 0

CIRCUITPY_ALARM ?= 1
CIRCUITPY_RP2PIO ?= 1
CIRCUITPY_NEOPIXEL_WRITE ?= $(CIRCUITPY_RP2PIO)
CIRCUITPY_FLOPPYIO ?= 1
Expand Down Expand Up @@ -47,6 +46,20 @@ CIRCUITPY_AUDIOPWMIO ?= 1

CIRCUITPY_AUDIOMIXER ?= 1

ifeq ($(CHIP_VARIANT),RP2040)
CIRCUITPY_ALARM ?= 1

# Default PICODVI off because it uses RAM to store code run on the second CPU for RP2040.
CIRCUITPY_PICODVI ?= 0
endif

ifeq ($(CHIP_VARIANT),RP2350)
# This needs to be implemented.
CIRCUITPY_ALARM ?= 0
# Default PICODVI on because it doesn't require much code in RAM to talk to HSTX.
CIRCUITPY_PICODVI ?= 1
endif

INTERNAL_LIBM = 1

CIRCUITPY_BUILD_EXTENSIONS ?= uf2
Expand Down

0 comments on commit b3e458c

Please sign in to comment.