micropython/ports/rp2/boards/WEACTSTUDIO/mpconfigboard.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
810 B
CMake
Raw Normal View History

# CMake file for WeAct Studio RP2040 boards
# The WeAct Studio boards don't have official pico-sdk support so we define it
# See also: https://github.com/raspberrypi/pico-sdk/tree/master/src/boards/include/boards
list(APPEND PICO_BOARD_HEADER_DIRS ${MICROPY_BOARD_DIR})
# Freeze board.py
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
# Provide different variants for the downloads page
set(BOARD_VARIANTS "flash_2mb flash_4mb flash_8mb flash_16mb")
# Select the 16MB variant as the default
set(PICO_BOARD "weactstudio_16mb")
if("${BOARD_VARIANT}" STREQUAL "flash_2mb")
set(PICO_BOARD "weactstudio_2mb")
endif()
if("${BOARD_VARIANT}" STREQUAL "flash_4mb")
set(PICO_BOARD "weactstudio_4mb")
endif()
if("${BOARD_VARIANT}" STREQUAL "flash_8mb")
set(PICO_BOARD "weactstudio_8mb")
endif()