2024-05-09 20:29:14 +01:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
|
|
|
|
# Pull in SDK (must be before project)
|
|
|
|
include(pico_sdk_import.cmake)
|
|
|
|
|
|
|
|
project(test_project C CXX ASM)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
pico_sdk_init()
|
|
|
|
|
|
|
|
add_executable(qclk
|
|
|
|
main.c
|
|
|
|
)
|
2024-05-11 00:57:43 +01:00
|
|
|
|
2024-05-09 20:29:14 +01:00
|
|
|
pico_enable_stdio_usb(qclk 1)
|
2024-05-11 00:57:43 +01:00
|
|
|
pico_enable_stdio_uart(qclk 0)
|
|
|
|
|
2024-05-09 20:29:14 +01:00
|
|
|
pico_add_extra_outputs(qclk)
|
2024-05-11 03:27:05 +01:00
|
|
|
target_link_libraries(qclk pico_stdlib hardware_i2c pico_i2c_slave)
|