File tree Expand file tree Collapse file tree 7 files changed +37
-60
lines changed Expand file tree Collapse file tree 7 files changed +37
-60
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ family_add_subdirectory(board_test)
13
13
family_add_subdirectory (cdc_dual_ports )
14
14
family_add_subdirectory (cdc_msc )
15
15
family_add_subdirectory (cdc_msc_freertos )
16
+ family_add_subdirectory (cdc_uac2 )
16
17
family_add_subdirectory (dfu )
17
18
family_add_subdirectory (dfu_runtime )
18
19
family_add_subdirectory (dynamic_configuration )
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ 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/tusb_cdc .c
24
- ${CMAKE_CURRENT_SOURCE_DIR} /src/tusb_uac2 .c
25
- ${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
26
- )
22
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/cdc_app .c
23
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/main .c
24
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/uac2_app .c
25
+ ${CMAKE_CURRENT_SOURCE_DIR} /src/usb_descriptors.c
26
+ )
27
27
28
28
# Example include
29
29
target_include_directories (${PROJECT} PUBLIC
30
- ${CMAKE_CURRENT_SOURCE_DIR} /src
31
- )
30
+ ${CMAKE_CURRENT_SOURCE_DIR} /src
31
+ )
32
32
33
33
# Configure compilation flags and libraries for the example... see the corresponding function
34
34
# in hw/bsp/FAMILY/family.cmake for details.
35
- family_configure_device_example (${PROJECT} )
35
+ family_configure_device_example (${PROJECT} noos )
36
36
37
37
# Uncomment me to enable UART based debugging
38
38
# pico_enable_stdio_uart(${PROJECT} 1)
Original file line number Diff line number Diff line change
1
+ include ../../make.mk
2
+
3
+ INC += \
4
+ src \
5
+ $(TOP ) /hw \
6
+
7
+ # Example source
8
+ EXAMPLE_SOURCE += \
9
+ src/cdc_app.c \
10
+ src/main.c \
11
+ src/uac2_app.c \
12
+ src/usb_descriptors.c \
13
+
14
+ SRC_C += $(addprefix $(CURRENT_PATH ) /, $(EXAMPLE_SOURCE ) )
15
+
16
+ include ../../rules.mk
Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -92,18 +92,30 @@ uint8_t const * tud_descriptor_device_cb(void)
92
92
#define EPNUM_AUDIO_IN 0x08
93
93
#define EPNUM_AUDIO_OUT 0x08
94
94
95
+ #define EPNUM_CDC_NOTIF 0x81
96
+ #define EPNUM_CDC_OUT 0x02
97
+ #define EPNUM_CDC_IN 0x82
98
+
95
99
#elif CFG_TUSB_MCU == OPT_MCU_SAMG || CFG_TUSB_MCU == OPT_MCU_SAMX7X
96
100
// SAMG & SAME70 don't support a same endpoint number with different direction IN and OUT
97
101
// e.g EP1 OUT & EP1 IN cannot exist together
98
102
#define EPNUM_AUDIO_IN 0x01
99
103
#define EPNUM_AUDIO_OUT 0x02
100
104
105
+ #define EPNUM_CDC_NOTIF 0x83
106
+ #define EPNUM_CDC_OUT 0x04
107
+ #define EPNUM_CDC_IN 0x85
108
+
101
109
#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
102
110
// FT9XX doesn't support a same endpoint number with different direction IN and OUT
103
111
// e.g EP1 OUT & EP1 IN cannot exist together
104
112
#define EPNUM_AUDIO_IN 0x01
105
113
#define EPNUM_AUDIO_OUT 0x02
106
114
115
+ #define EPNUM_CDC_NOTIF 0x83
116
+ #define EPNUM_CDC_OUT 0x04
117
+ #define EPNUM_CDC_IN 0x85
118
+
107
119
#else
108
120
#define EPNUM_AUDIO_IN 0x01
109
121
#define EPNUM_AUDIO_OUT 0x01
You can’t perform that action at this time.
0 commit comments