diff options
Diffstat (limited to 'os/hal/platforms/STM32/OTGv1')
-rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.h b/os/hal/platforms/STM32/OTGv1/usb_lld.h index 087d1cb01..570309750 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.h +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.h @@ -364,11 +364,6 @@ struct USBDriver { */
const USBConfig *config;
/**
- * @brief Field available to user, it can be used to associate an
- * application-defined handler to the USB driver.
- */
- void *param;
- /**
* @brief Bit map of the transmitting IN endpoints.
*/
uint16_t transmitting;
@@ -381,6 +376,20 @@ struct USBDriver { */
const USBEndpointConfig *epc[USB_MAX_ENDPOINTS + 1];
/**
+ * @brief Fields available to user, it can be used to associate an
+ * application-defined handler to an IN endpoint.
+ * @note The base index is one, the endpoint zero does not have a
+ * reserved element in this array.
+ */
+ void *in_params[USB_MAX_ENDPOINTS];
+ /**
+ * @brief Fields available to user, it can be used to associate an
+ * application-defined handler to an OUT endpoint.
+ * @note The base index is one, the endpoint zero does not have a
+ * reserved element in this array.
+ */
+ void *out_params[USB_MAX_ENDPOINTS];
+ /**
* @brief Endpoint 0 state.
*/
usbep0state_t ep0state;
|