2021-01-20 04:34:21 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
|
|
|
|
include(pico_sdk_import.cmake)
|
|
|
|
|
|
|
|
project(picoprobe)
|
|
|
|
|
|
|
|
pico_sdk_init()
|
|
|
|
|
|
|
|
add_executable(picoprobe
|
2021-02-03 09:14:55 +00:00
|
|
|
src/led.c
|
2021-01-20 04:34:21 +00:00
|
|
|
src/main.c
|
|
|
|
src/usb_descriptors.c
|
|
|
|
src/probe.c
|
|
|
|
src/cdc_uart.c
|
2021-04-26 07:03:14 +00:00
|
|
|
src/cdc_sump.c
|
2021-02-03 09:19:04 +00:00
|
|
|
src/get_serial.c
|
2021-01-20 04:34:21 +00:00
|
|
|
)
|
|
|
|
|
2021-02-03 09:14:55 +00:00
|
|
|
if (DEFINED ENV{PICOPROBE_LED})
|
|
|
|
message("PICOPROBE_LED is defined as " $ENV{PICOPROBE_LED})
|
|
|
|
target_compile_definitions(picoprobe PRIVATE PICOPROBE_LED=$ENV{PICOPROBE_LED})
|
|
|
|
endif()
|
|
|
|
|
2021-05-06 18:29:02 +00:00
|
|
|
if (DEFINED ENV{TURBO_200MHZ})
|
|
|
|
message("TURBO_200MHZ is defined as " $ENV{TURBO_200MHZ})
|
|
|
|
target_compile_definitions(picoprobe PRIVATE TURBO_200MHZ=$ENV{TURBO_200MHZ})
|
|
|
|
endif()
|
|
|
|
|
2021-01-20 04:34:21 +00:00
|
|
|
set(DBG_PIN_COUNT=4)
|
|
|
|
|
|
|
|
pico_generate_pio_header(picoprobe ${CMAKE_CURRENT_LIST_DIR}/src/probe.pio)
|
|
|
|
|
|
|
|
target_include_directories(picoprobe PRIVATE src)
|
|
|
|
|
2021-04-28 15:35:57 +00:00
|
|
|
target_link_libraries(picoprobe PRIVATE pico_stdlib pico_unique_id
|
|
|
|
tinyusb_device tinyusb_board
|
|
|
|
hardware_pio hardware_dma hardware_pwm)
|
2021-01-20 04:34:21 +00:00
|
|
|
|
|
|
|
pico_add_extra_outputs(picoprobe)
|