mirror of
https://github.com/lukstep/raspberry-pi-pico-docker-sdk.git
synced 2026-01-08 02:02:35 +03:00
Debugging POC
This commit is contained in:
@@ -9,13 +9,21 @@ set(CMAKE_CXX_COMPILER /usr/bin/arm-none-eabi-g++ CACHE PATH "" FORCE)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
add_compile_options(-Wall -g -O1)
|
||||
|
||||
pico_sdk_init()
|
||||
|
||||
add_executable(sample main.c)
|
||||
|
||||
pico_enable_stdio_usb(sample 1)
|
||||
pico_enable_stdio_usb(sample 0)
|
||||
pico_enable_stdio_uart(sample 1)
|
||||
pico_add_extra_outputs(sample)
|
||||
|
||||
target_link_libraries(sample pico_stdlib)
|
||||
target_link_libraries(sample
|
||||
pico_stdlib
|
||||
hardware_pio
|
||||
hardware_timer
|
||||
hardware_clocks
|
||||
hardware_pwm
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user