Skip to content

Commit

Permalink
Add CMSIS DAP files to the build (they do nothing yet)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Bell <[email protected]>
  • Loading branch information
P33M committed Aug 18, 2022
1 parent 97b9987 commit 908bfbd
Show file tree
Hide file tree
Showing 2 changed files with 569 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ add_executable(picoprobe
src/get_serial.c
)

target_sources(picoprobe PRIVATE
CMSIS_5/CMSIS/DAP/Firmware/Source/DAP.c
CMSIS_5/CMSIS/DAP/Firmware/Source/JTAG_DP.c
CMSIS_5/CMSIS/DAP/Firmware/Source/DAP_vendor.c
CMSIS_5/CMSIS/DAP/Firmware/Source/SWO.c
CMSIS_5/CMSIS/DAP/Firmware/Source/SW_DP.c
)

target_include_directories(picoprobe PRIVATE
CMSIS_5/CMSIS/DAP/Firmware/Include/
CMSIS_5/CMSIS/Core/Include/
include/
)

if (DEFINED ENV{PICOPROBE_LED})
message("PICOPROBE_LED is defined as " $ENV{PICOPROBE_LED})
target_compile_definitions(picoprobe PRIVATE PICOPROBE_LED=$ENV{PICOPROBE_LED})
Expand Down
Loading

0 comments on commit 908bfbd

Please sign in to comment.