summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-13 00:33:46 +0700
committerhathach <[email protected]>2018-07-13 00:34:32 +0700
commitffdd925854c3fda233f41c929b5cf115cfdb7a62 (patch)
tree5dd98060fc0e575094962474d62f4daa88641da2 /examples
parenta623f0c179b49f510a206666bbe2ca52144a6458 (diff)
clean up
Diffstat (limited to 'examples')
-rw-r--r--examples/device/device_virtual_com/src/main.c2
-rw-r--r--examples/device/nrf52840/src/main.c6
-rw-r--r--examples/obsolete/device/src/cdc_device_app.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/device/device_virtual_com/src/main.c b/examples/device/device_virtual_com/src/main.c
index 531733cdc..033d313eb 100644
--- a/examples/device/device_virtual_com/src/main.c
+++ b/examples/device/device_virtual_com/src/main.c
@@ -103,7 +103,7 @@ void tud_umount_cb(uint8_t port)
{
}
-void tud_cdc_rx_cb(uint8_t port)
+void tud_cdc_rx_cb(uint8_t itf)
{
}
diff --git a/examples/device/nrf52840/src/main.c b/examples/device/nrf52840/src/main.c
index 2877801cf..1ac56423d 100644
--- a/examples/device/nrf52840/src/main.c
+++ b/examples/device/nrf52840/src/main.c
@@ -95,16 +95,16 @@ void virtual_com_task(void)
//--------------------------------------------------------------------+
// tinyusb callbacks
//--------------------------------------------------------------------+
-void tud_mount_cb(uint8_t port)
+void tud_mount_cb(uint8_t rhport)
{
}
-void tud_umount_cb(uint8_t port)
+void tud_umount_cb(uint8_t rhport)
{
}
-void tud_cdc_rx_cb(uint8_t port)
+void tud_cdc_rx_cb(uint8_t itf)
{
}
diff --git a/examples/obsolete/device/src/cdc_device_app.c b/examples/obsolete/device/src/cdc_device_app.c
index 843ab5a7a..7989d86ab 100644
--- a/examples/obsolete/device/src/cdc_device_app.c
+++ b/examples/obsolete/device/src/cdc_device_app.c
@@ -67,7 +67,7 @@ void cdc_serial_app_umount(uint8_t rhport)
}
-void tud_cdc_rx_cb(uint8_t rhport)
+void tud_cdc_rx_cb(uint8_t itf)
{
}