Skip to content

Commit b3713b0

Browse files
committed
ports/rp2: Make 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 5eee5a6 commit b3713b0

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
@@ -632,9 +632,13 @@ if(NOT PICO_NUM_EXT_GPIOS)
632632
set(PICO_NUM_EXT_GPIOS 10)
633633
endif()
634634

635-
if(EXISTS "${MICROPY_BOARD_DIR}/pins.csv")
636-
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/pins.csv")
637-
set(GEN_PINS_CSV_ARG --board-csv "${GEN_PINS_BOARD_CSV}")
635+
if(NOT MICROPY_BOARD_PINS)
636+
set(MICROPY_BOARD_PINS "${MICROPY_BOARD_DIR}/pins.csv")
637+
endif()
638+
639+
if(EXISTS ${MICROPY_BOARD_PINS})
640+
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_PINS}")
641+
set(GEN_PINS_CSV_ARG --board-csv "${MICROPY_BOARD_PINS}")
638642
endif()
639643

640644
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