Skip to content

Commit 22a7057

Browse files
committed
rp2: Allow pins.csv filename to be configured.
Signed-off-by: Peter Harper <[email protected]>
1 parent 5f1cef7 commit 22a7057

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ports/rp2/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,12 @@ 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")
635+
if (NOT PICO_PINS_CSV_NAME)
636+
set(PICO_PINS_CSV_NAME pins.csv)
637+
endif()
638+
639+
if(EXISTS "${MICROPY_BOARD_DIR}/${PICO_PINS_CSV_NAME}")
640+
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/${PICO_PINS_CSV_NAME}")
637641
set(GEN_PINS_CSV_ARG --board-csv "${GEN_PINS_BOARD_CSV}")
638642
endif()
639643

0 commit comments

Comments
 (0)