Skip to content

Commit 41801c2

Browse files
committed
add typec example to cmake
1 parent d2d486d commit 41801c2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ project(tinyusb_examples C CXX ASM)
88
add_subdirectory(device)
99
add_subdirectory(dual)
1010
add_subdirectory(host)
11+
add_subdirectory(typec)

examples/typec/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cmake_minimum_required(VERSION 3.17)
2+
3+
include(${CMAKE_CURRENT_SOURCE_DIR}/../../hw/bsp/family_support.cmake)
4+
5+
project(tinyusb_host_examples C CXX ASM)
6+
family_initialize_project(tinyusb_host_examples ${CMAKE_CURRENT_LIST_DIR})
7+
8+
# family_add_subdirectory will filter what to actually add based on selected FAMILY
9+
family_add_subdirectory(power_delivery)

0 commit comments

Comments
 (0)