Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UsbHostMAX3421E_Hello
Diff: usbhub.h
- Revision:
- 1:2263e77400e9
- Parent:
- 0:84353c479782
diff -r 84353c479782 -r 2263e77400e9 usbhub.h --- a/usbhub.h Sun Jul 12 20:39:26 2020 +0000 +++ b/usbhub.h Mon Jul 13 07:03:06 2020 +0000 @@ -164,7 +164,7 @@ class USBHub : USBDeviceConfig { static bool bResetInitiated; // True when reset is triggered - USB *pUsb; // USB class instance pointer + Usb *pUsb; // USB class instance pointer EpInfo epInfo[2]; // interrupt endpoint info structure @@ -178,7 +178,7 @@ uint8_t PortStatusChange(uint8_t port, HubEvent &evt); public: - USBHub(USB *p); + USBHub(Usb *p); uint8_t ClearHubFeature(uint8_t fid); uint8_t ClearPortFeature(uint8_t fid, uint8_t port, uint8_t sel = 0); @@ -247,6 +247,6 @@ return ( pUsb->ctrlReq(bAddress, 0, bmREQ_SET_PORT_FEATURE, USB_REQUEST_SET_FEATURE, fid, 0, (((0x0000 | sel) << 8) | port), 0, 0, NULL, NULL)); } -void PrintHubPortStatus(USB *usbptr, uint8_t addr, uint8_t port, bool print_changes = false); +void PrintHubPortStatus(Usb *usbptr, uint8_t addr, uint8_t port, bool print_changes = false); #endif // __USBHUB_H__