diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-20 10:04:44 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-08-20 10:04:44 +0000 |
commit | 15f4e5c3f36595e9fb03a9143fe6d52183700220 (patch) | |
tree | fb4a5449c285afbf946f23f11688af5adc6f4192 /os/hal/include/hal_usb.h | |
parent | 190694efa4571da760e0514880db45f9a779e1c1 (diff) | |
download | ChibiOS-15f4e5c3f36595e9fb03a9143fe6d52183700220.tar.gz ChibiOS-15f4e5c3f36595e9fb03a9143fe6d52183700220.tar.bz2 ChibiOS-15f4e5c3f36595e9fb03a9143fe6d52183700220.zip |
Tentative workaround for L4 OTG driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10453 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/hal_usb.h')
-rw-r--r-- | os/hal/include/hal_usb.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/os/hal/include/hal_usb.h b/os/hal/include/hal_usb.h index 63fa9e25d..25ef63aa3 100644 --- a/os/hal/include/hal_usb.h +++ b/os/hal/include/hal_usb.h @@ -230,6 +230,9 @@ #define USB_EP_MODE_TYPE_INTR 0x0003U /**< Interrupt endpoint. */
/** @} */
+#define USB_IN_STATE 0x08
+#define USB_OUT_STATE 0x10
+
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
@@ -285,13 +288,13 @@ typedef enum { * @brief Type of an endpoint zero state machine states.
*/
typedef enum {
- USB_EP0_STP_WAITING = 0, /**< Waiting for SETUP data. */
- USB_EP0_IN_TX = 1, /**< Transmitting. */
- USB_EP0_IN_WAITING_TX0 = 2, /**< Waiting transmit 0. */
- USB_EP0_IN_SENDING_STS = 3, /**< Sending status. */
- USB_EP0_OUT_WAITING_STS = 4, /**< Waiting status. */
- USB_EP0_OUT_RX = 5, /**< Receiving. */
- USB_EP0_ERROR = 6 /**< Error, EP0 stalled. */
+ USB_EP0_STP_WAITING = 0, /**< Waiting for SETUP data.*/
+ USB_EP0_IN_TX = USB_IN_STATE | 1, /**< Transmitting. */
+ USB_EP0_IN_WAITING_TX0 = USB_IN_STATE | 2, /**< Waiting transmit 0. */
+ USB_EP0_IN_SENDING_STS = USB_IN_STATE | 3, /**< Sending status. */
+ USB_EP0_OUT_WAITING_STS = USB_OUT_STATE | 4, /**< Waiting status. */
+ USB_EP0_OUT_RX = USB_OUT_STATE | 5, /**< Receiving. */
+ USB_EP0_ERROR = 6 /**< Error, EP0 stalled. */
} usbep0state_t;
/**
|