2023-10-22 16:48:14 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
|
|
|
|
include(pico_sdk_import.cmake)
|
|
|
|
|
|
|
|
project(Mon_Projet C CXX ASM)
|
|
|
|
set(CMAKE_C_STNDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
|
|
|
set(PICO_EXAMPLES_PATH ${PROJECT_SOURCE_DIR})
|
|
|
|
|
|
|
|
pico_sdk_init()
|
|
|
|
|
|
|
|
add_executable(Mon_Projet
|
|
|
|
main.c
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(Mon_Projet PRIVATE Mon_Projet_ULD_API/inc/)
|
|
|
|
|
|
|
|
target_link_libraries(Mon_Projet
|
|
|
|
hardware_i2c
|
|
|
|
hardware_uart
|
2023-12-15 17:33:44 +00:00
|
|
|
hardware_pwm
|
2024-01-12 17:53:51 +00:00
|
|
|
hardware_adc
|
2023-10-22 16:48:14 +00:00
|
|
|
pico_stdlib
|
|
|
|
pico_multicore
|
|
|
|
)
|
|
|
|
|
|
|
|
pico_enable_stdio_usb(Mon_Projet 1)
|
|
|
|
pico_enable_stdio_uart(Mon_Projet 1)
|
|
|
|
|
|
|
|
pico_add_extra_outputs(Mon_Projet)
|
|
|
|
|
|
|
|
add_custom_target(Flash
|
|
|
|
DEPENDS Mon_Projet
|
|
|
|
COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/Mon_Projet.uf2
|
|
|
|
)
|