Dual-board IDF v5.4 layout with board components, motor EN safe state on WROOM, TWDT left enabled. Local idf.py verify blocked: no IDF_PATH or espressif/idf:v5.4 image in this environment.
12 lines
403 B
CMake
12 lines
403 B
CMake
if(NOT DEFINED AUTOFILM_BOARD)
|
|
set(AUTOFILM_BOARD wroom CACHE STRING "wroom|jc4827w543")
|
|
endif()
|
|
if(AUTOFILM_BOARD STREQUAL "wroom")
|
|
set(BOARD_COMP board_wroom)
|
|
elseif(AUTOFILM_BOARD STREQUAL "jc4827w543")
|
|
set(BOARD_COMP board_jc4827w543)
|
|
else()
|
|
message(FATAL_ERROR "AUTOFILM_BOARD=${AUTOFILM_BOARD}")
|
|
endif()
|
|
idf_component_register(SRCS "main.c" INCLUDE_DIRS "." REQUIRES ${BOARD_COMP} driver)
|