Skip to content

Commit 1a060e8

Browse files
Gadgetoiddpgeorge
authored andcommitted
rp2/CMakeLists.txt: Make board's pins.csv configurable.
Allow `mpconfigboard.cmake` to specify a custom `MICROPY_BOARD_PINS` to override `${MICROPY_BOARD_DIR}/pins.csv`. Signed-off-by: Phil Howard <github@gadgetoid.com>
1 parent dc8daad commit 1a060e8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ports/rp2/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,13 @@ if(NOT PICO_NUM_EXT_GPIOS)
654654
set(PICO_NUM_EXT_GPIOS 10)
655655
endif()
656656

657-
if(EXISTS "${MICROPY_BOARD_DIR}/pins.csv")
658-
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/pins.csv")
659-
set(GEN_PINS_CSV_ARG --board-csv "${GEN_PINS_BOARD_CSV}")
657+
if(NOT MICROPY_BOARD_PINS)
658+
set(MICROPY_BOARD_PINS "${MICROPY_BOARD_DIR}/pins.csv")
659+
endif()
660+
661+
if(EXISTS "${MICROPY_BOARD_PINS}")
662+
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_PINS}")
663+
set(GEN_PINS_CSV_ARG --board-csv "${MICROPY_BOARD_PINS}")
660664
endif()
661665

662666
target_sources(${MICROPY_TARGET} PRIVATE

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy