From 584b6f716dca8831b0483641d1a4e779b4bd5694 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 13 Jul 2018 14:26:40 +0700 Subject: more clean up --- examples/device/device_virtual_com/src/main.c | 4 ++-- examples/device/nrf52840/src/main.c | 4 ++-- examples/obsolete/device/src/main.c | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/device/device_virtual_com/src/main.c b/examples/device/device_virtual_com/src/main.c index 033d313eb..60f93a000 100644 --- a/examples/device/device_virtual_com/src/main.c +++ b/examples/device/device_virtual_com/src/main.c @@ -94,12 +94,12 @@ void virtual_com_task(void) //--------------------------------------------------------------------+ // tinyusb callbacks //--------------------------------------------------------------------+ -void tud_mount_cb(uint8_t port) +void tud_mount_cb(void) { } -void tud_umount_cb(uint8_t port) +void tud_umount_cb(void) { } diff --git a/examples/device/nrf52840/src/main.c b/examples/device/nrf52840/src/main.c index 1ac56423d..e6a6388bf 100644 --- a/examples/device/nrf52840/src/main.c +++ b/examples/device/nrf52840/src/main.c @@ -95,12 +95,12 @@ void virtual_com_task(void) //--------------------------------------------------------------------+ // tinyusb callbacks //--------------------------------------------------------------------+ -void tud_mount_cb(uint8_t rhport) +void tud_mount_cb(void) { } -void tud_umount_cb(uint8_t rhport) +void tud_umount_cb(void) { } diff --git a/examples/obsolete/device/src/main.c b/examples/obsolete/device/src/main.c index 5e053aa57..00633335a 100644 --- a/examples/obsolete/device/src/main.c +++ b/examples/obsolete/device/src/main.c @@ -111,15 +111,17 @@ int main(void) //--------------------------------------------------------------------+ // tinyusb callbacks //--------------------------------------------------------------------+ -void tud_mount_cb(uint8_t rhport) +void tud_mount_cb(void) { + uint8_t rhport = 0; // TODO remove cdc_serial_app_mount(rhport); keyboard_app_mount(rhport); msc_app_mount(rhport); } -void tud_umount_cb(uint8_t rhport) +void tud_umount_cb(void) { + uint8_t rhport = 0; // TODO remove cdc_serial_app_umount(rhport); keyboard_app_umount(rhport); msc_app_umount(rhport); -- cgit v1.3.1