Adds class implementation for use STM32F4xx OTG_HS in FS mode

Dependents:   IGLOO_board

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

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
diff -r 83b79e0aa05a -r b881d8ac258a USBHID/USBMouse.cpp
--- 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
diff -r 83b79e0aa05a -r b881d8ac258a USBHID/USBMouse.h
--- 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;