Skip to content

Commit 0516a8f

Browse files
fix(cdc): Use esp_tinyusb v2 API in tests
1 parent 36c511f commit 0516a8f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

device/esp_tinyusb/test_apps/teardown_device/main/test_teardown.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "unity.h"
2323
#include "tinyusb.h"
2424
#include "tinyusb_default_config.h"
25-
#include "tusb_cdc_acm.h"
2625

2726
static const char *TAG = "teardown";
2827

host/class/cdc/usb_host_cdc_acm/test_app/main/usb_device.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "sdkconfig.h"
99
#include "tinyusb.h"
1010
#include "tinyusb_default_config.h"
11-
#include "tusb_cdc_acm.h"
11+
#include "tinyusb_cdc_acm.h"
1212

1313
static uint8_t buf[CONFIG_TINYUSB_CDC_RX_BUFSIZE + 1];
1414
static void tinyusb_cdc_rx_callback(int itf, cdcacm_event_t *event)
@@ -85,10 +85,10 @@ void run_usb_dual_cdc_device(void)
8585
.callback_line_coding_changed = NULL
8686
};
8787

88-
ESP_ERROR_CHECK(tusb_cdc_acm_init(&amc_cfg));
88+
ESP_ERROR_CHECK(tinyusb_cdcacm_init(&amc_cfg));
8989
#if (CONFIG_TINYUSB_CDC_COUNT > 1)
9090
amc_cfg.cdc_port = TINYUSB_CDC_ACM_1;
91-
ESP_ERROR_CHECK(tusb_cdc_acm_init(&amc_cfg));
91+
ESP_ERROR_CHECK(tinyusb_cdcacm_init(&amc_cfg));
9292
#endif
9393

9494
printf("USB initialization DONE\n");

0 commit comments

Comments
 (0)