Skip to content

Commit 148790a

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

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
@@ -640,8 +640,12 @@ if(NOT PICO_NUM_EXT_GPIOS)
640640
set(PICO_NUM_EXT_GPIOS 10)
641641
endif()
642642

643-
if(EXISTS "${MICROPY_BOARD_DIR}/pins.csv")
644-
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/pins.csv")
643+
if (NOT PICO_PINS_CSV_NAME)
644+
set(PICO_PINS_CSV_NAME pins.csv)
645+
endif()
646+
647+
if(EXISTS "${MICROPY_BOARD_DIR}/${PICO_PINS_CSV_NAME}")
648+
set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/${PICO_PINS_CSV_NAME}")
645649
set(GEN_PINS_CSV_ARG --board-csv "${GEN_PINS_BOARD_CSV}")
646650
endif()
647651

0 commit comments

Comments
 (0)