summaryrefslogtreecommitdiffstats
path: root/tinyusb/hw/bsp/esp32s2/boards/adafruit_magtag_29gray/board.cmake
blob: d339626761e32efa1a90ab48d0262df048586f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Apply board specific content here
target_include_directories(${COMPONENT_LIB} PRIVATE .)

idf_build_get_property(idf_target IDF_TARGET)

message(STATUS "Apply ${BOARD}(${idf_target}) specific options for component: ${COMPONENT_TARGET}")

if(NOT ${idf_target} STREQUAL "esp32s2")
    message(FATAL_ERROR "Incorrect target for board ${BOARD}: $ENV{IDF_TARGET}(${idf_target}), try to clean the build first." )
endif()

set(IDF_TARGET "esp32s2" FORCE)

target_compile_options(${COMPONENT_TARGET} PUBLIC
  "-DCFG_TUSB_MCU=OPT_MCU_ESP32S2"
  "-DCFG_TUSB_OS=OPT_OS_FREERTOS"
)