diff options
| author | hathach <[email protected]> | 2022-03-04 17:26:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-04 17:26:21 +0700 |
| commit | 3a7d1cfead0d3147425c305d778723a505900d48 (patch) | |
| tree | cf6648725133ebfb3d2107f497088f938f140d7c /examples | |
| parent | 039b235ca4e8c7b2d201a32a7b1d156ac81382b3 (diff) | |
minor cleanup
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/libusb_api/src/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/host/libusb_api/src/main.c b/examples/host/libusb_api/src/main.c index 810f8e762..07dae1dc6 100644 --- a/examples/host/libusb_api/src/main.c +++ b/examples/host/libusb_api/src/main.c @@ -40,9 +40,6 @@ //--------------------------------------------------------------------+ void led_blinking_task(void); -extern void cdc_task(void); -extern void hid_app_task(void); - /*------------- MAIN -------------*/ int main(void) { @@ -67,10 +64,17 @@ int main(void) // TinyUSB Callbacks //--------------------------------------------------------------------+ +void print_device_descriptor(uint8_t dev_addr) +{ + printf("Device Descriptor:\r\n"); + +} + // Invoked when device is mounted (configured) void tuh_mount_cb (uint8_t dev_addr) { printf("Device attached, address = %d\r\n", dev_addr); + print_device_descriptor(dev_addr); } /// Invoked when device is unmounted (bus reset/unplugged) |
