2022-04-19T19:58:40
This commit is contained in:
22
04_watchdog/CMakeLists.txt
Normal file
22
04_watchdog/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
include(pico_sdk_import.cmake)
|
||||
|
||||
project(watchdog C CXX ASM)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
pico_sdk_init()
|
||||
|
||||
add_executable(watchdog
|
||||
src/watchdog.c
|
||||
)
|
||||
|
||||
pico_set_program_name(watchdog "Watch Dog")
|
||||
pico_set_program_version(watchdog "0.1.0")
|
||||
|
||||
pico_enable_stdio_usb(watchdog 1) # 표준 출력을 USB로
|
||||
pico_enable_stdio_uart(watchdog 0) # 표준 출력을 UART로, 안함.
|
||||
|
||||
pico_add_extra_outputs(watchdog)
|
||||
|
||||
target_link_libraries(watchdog pico_stdlib)
|
||||
Reference in New Issue
Block a user