Files
tinyUSB/hw/bsp/kinetis_k/boards/teensy_35/board.cmake
hathach aa0fabd51d add kinetis_k family and teensy_35
- teensy_35 is not able to blink led with board_test though, probably due to clock config.
2023-08-28 17:44:29 +07:00

18 lines
462 B
CMake

set(MCU_VARIANT MK64F12)
set(JLINK_DEVICE MK64FX512xxx12)
set(TEENSY_MCU TEENSY35)
set(PYOCD_TARGET k64f)
set(LD_FILE_GNU ${SDK_DIR}/devices/${MCU_VARIANT}/gcc/MK64FX512xxx12_flash.ld)
function(update_board TARGET)
target_sources(${TARGET} PUBLIC
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/board/pin_mux.c
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/board/clock_config.c
)
target_compile_definitions(${TARGET} PUBLIC
CPU_MK64FX512VMD12
)
endfunction()