aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/usb_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-01 15:50:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-01 15:50:35 +0000
commit11ecb1a7586ddaf6276a087d51de829b00d5f386 (patch)
tree4f5ad4b7ef204329156c779c6166bd8f70d5222c /os/hal/templates/usb_lld.h
parentb920c0b7ff759436162a961fc97242473b1a9554 (diff)
downloadChibiOS-11ecb1a7586ddaf6276a087d51de829b00d5f386.tar.gz
ChibiOS-11ecb1a7586ddaf6276a087d51de829b00d5f386.tar.bz2
ChibiOS-11ecb1a7586ddaf6276a087d51de829b00d5f386.zip
Fixed problem with multiple SerialUSB instances.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5651 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/usb_lld.h')
-rw-r--r--os/hal/templates/usb_lld.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/os/hal/templates/usb_lld.h b/os/hal/templates/usb_lld.h
index 6d2f2348f..7dbf8b4b9 100644
--- a/os/hal/templates/usb_lld.h
+++ b/os/hal/templates/usb_lld.h
@@ -227,11 +227,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;
@@ -244,6 +239,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;