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.
Fork of USBDevice by
Revision 78:b881d8ac258a, committed 2018-08-03
- Comitter:
- ua1arn
- Date:
- Fri Aug 03 05:40:26 2018 +0000
- Parent:
- 77:83b79e0aa05a
- Commit message:
- function prototypes changed (for multi-config USB)
Changed in this revision
USBHID/USBMouse.cpp | Show annotated file Show diff for this revision Revisions of this file |
USBHID/USBMouse.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBHID/USBMouse.cpp Mon Jul 30 13:56:22 2018 +0000 +++ b/USBHID/USBMouse.cpp Fri Aug 03 05:40:26 2018 +0000 @@ -192,7 +192,7 @@ + (1 * HID_DESCRIPTOR_LENGTH) \ + (2 * ENDPOINT_DESCRIPTOR_LENGTH)) -uint8_t * USBMouse::configurationDesc() { +uint8_t * USBMouse::configurationDesc(uint_fast8_t cfgidx) { static uint8_t configurationDescriptor[] = { CONFIGURATION_DESCRIPTOR_LENGTH, // bLength CONFIGURATION_DESCRIPTOR, // bDescriptorType
--- a/USBHID/USBMouse.h Mon Jul 30 13:56:22 2018 +0000 +++ b/USBHID/USBMouse.h Fri Aug 03 05:40:26 2018 +0000 @@ -198,7 +198,7 @@ * * @returns pointer to the configuration descriptor */ - virtual uint8_t * configurationDesc(); + virtual uint8_t * configurationDesc(uint_fast8_t cfgidx); private: MOUSE_TYPE mouse_type;