diff options
| author | hathach <[email protected]> | 2018-07-13 14:26:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-13 14:44:44 +0700 |
| commit | 584b6f716dca8831b0483641d1a4e779b4bd5694 (patch) | |
| tree | c2149afe4e010b79f013782d273db2596e742b22 /examples | |
| parent | ffdd925854c3fda233f41c929b5cf115cfdb7a62 (diff) | |
more clean up
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/device_virtual_com/src/main.c | 4 | ||||
| -rw-r--r-- | examples/device/nrf52840/src/main.c | 4 | ||||
| -rw-r--r-- | examples/obsolete/device/src/main.c | 6 |
3 files changed, 8 insertions, 6 deletions
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); |
