File tree Expand file tree Collapse file tree 14 files changed +163
-162
lines changed Expand file tree Collapse file tree 14 files changed +163
-162
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.5)
3
3
#set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
4
4
include (${CMAKE_CURRENT_SOURCE_DIR} /../hw/bsp/family_support.cmake )
5
5
6
- project (tinyusb_examples )
6
+ project (tinyusb_examples C CXX ASM )
7
7
8
8
add_subdirectory (device )
9
- add_subdirectory (dual )
10
- add_subdirectory (host )
9
+ # add_subdirectory(dual)
10
+ # add_subdirectory(host)
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)
2
2
3
3
include (${CMAKE_CURRENT_SOURCE_DIR} /../../hw/bsp/family_support.cmake )
4
4
5
- project (tinyusb_device_examples )
5
+ project (tinyusb_device_examples C CXX ASM )
6
6
family_initialize_project (tinyusb_device_examples ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
8
# family_add_subdirectory will filter what to actually add based on selected FAMILY
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ add_executable(${PROJECT})
21
21
target_sources (${PROJECT} PUBLIC
22
22
${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
23
${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
24
- )
24
+ )
25
25
26
26
# Example include
27
27
target_include_directories (${PROJECT} PUBLIC
28
28
${CMAKE_CURRENT_SOURCE_DIR} /src
29
- )
29
+ )
30
30
31
31
# Configure compilation flags and libraries for the example... see the corresponding function
32
32
# in hw/bsp/FAMILY/family.cmake for details.
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ add_executable(${PROJECT})
21
21
target_sources (${PROJECT} PUBLIC
22
22
${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
23
${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
24
- )
24
+ )
25
25
26
26
# Example include
27
27
target_include_directories (${PROJECT} PUBLIC
28
28
${CMAKE_CURRENT_SOURCE_DIR} /src
29
- )
29
+ )
30
30
31
31
# Configure compilation flags and libraries for the example... see the corresponding function
32
32
# in hw/bsp/FAMILY/family.cmake for details.
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ add_executable(${PROJECT})
19
19
20
20
# Example source
21
21
target_sources (${PROJECT} PUBLIC
22
- ${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
- )
22
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
+ )
24
24
25
25
# Example include
26
26
target_include_directories (${PROJECT} PUBLIC
27
- ${CMAKE_CURRENT_SOURCE_DIR} /src
28
- )
27
+ ${CMAKE_CURRENT_SOURCE_DIR} /src
28
+ )
29
29
30
30
# Configure compilation flags and libraries for the example... see the corresponding function
31
31
# in hw/bsp/FAMILY/family.cmake for details.
Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ add_executable(${PROJECT})
19
19
20
20
# Example source
21
21
target_sources (${PROJECT} PUBLIC
22
- ${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
- ${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
24
- )
22
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
24
+ )
25
25
26
26
# Example include
27
27
target_include_directories (${PROJECT} PUBLIC
28
- ${CMAKE_CURRENT_SOURCE_DIR} /src
29
- )
28
+ ${CMAKE_CURRENT_SOURCE_DIR} /src
29
+ )
30
30
31
31
# Configure compilation flags and libraries for the example... see the corresponding function
32
32
# in hw/bsp/FAMILY/family.cmake for details.
Original file line number Diff line number Diff line change @@ -19,20 +19,13 @@ add_executable(${PROJECT})
19
19
20
20
# Example source
21
21
target_sources (${PROJECT} PUBLIC
22
- ${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
- ${CMAKE_CURRENT_SOURCE_DIR} /src/msc_disk.c
24
- ${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
25
- )
22
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/main.c
23
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/msc_disk.c
24
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
25
+ )
26
26
27
27
# Example include
28
28
target_include_directories (${PROJECT} PUBLIC
29
- ${CMAKE_CURRENT_SOURCE_DIR} /src
30
- )
31
-
32
- # define tinyusb_config target
33
- add_library (tinyusb_config INTERFACE )
34
-
35
- target_include_directories (tinyusb_config INTERFACE
36
29
${CMAKE_CURRENT_SOURCE_DIR} /src
37
30
)
38
31
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ target_include_directories(${PROJECT} PUBLIC
35
35
family_configure_device_example (${PROJECT} )
36
36
37
37
if (NOT TARGET freertos_kernel )
38
- family_add_freertos_config (${PROJECT} )
38
+ family_configure_freertos_example (${PROJECT} )
39
39
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /../../../lib/FreeRTOS-Kernel lib/FreeRTOS-Kernel )
40
40
endif ()
41
41
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ target_include_directories(${PROJECT} PUBLIC
34
34
family_configure_device_example (${PROJECT} )
35
35
36
36
if (NOT TARGET freertos_kernel )
37
- family_add_freertos_config (${PROJECT} )
37
+ family_configure_freertos_example (${PROJECT} )
38
38
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /../../../lib/FreeRTOS-Kernel lib/FreeRTOS-Kernel )
39
39
endif ()
40
40
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)
5
5
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
6
family_get_project_name (PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
7
8
- project (${PROJECT} )
8
+ project (${PROJECT} C CXX ASM )
9
9
10
10
# Checks this example is valid for the family and initializes the project
11
11
family_initialize_project (${PROJECT} ${CMAKE_CURRENT_LIST_DIR} )
You can’t perform that action at this time.
0 commit comments