13 lines
329 B
CMake
Raw Normal View History

set(JLINK_DEVICE ATSAMD21G18)
2023-09-07 17:20:07 +07:00
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/samd21g18a_flash.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
__SAMD21G18A__
CFG_EXAMPLE_VIDEO_READONLY
)
target_link_options(${TARGET} PUBLIC
2023-09-07 17:09:25 +07:00
"LINKER:--defsym=BOOTLOADER_SIZE=0x800"
)
endfunction()