From 4b601a5d0fd06f8e238c17fb96633100ecc59503 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 25 Dec 2015 08:59:10 +0000 Subject: USB upgrade. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8641 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/templates/usb_lld.h | 43 ++++++++----------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) (limited to 'os/hal/templates') diff --git a/os/hal/templates/usb_lld.h b/os/hal/templates/usb_lld.h index 8d0d4c860..3d6764bc6 100644 --- a/os/hal/templates/usb_lld.h +++ b/os/hal/templates/usb_lld.h @@ -81,10 +81,6 @@ * @brief Type of an IN endpoint state structure. */ typedef struct { - /** - * @brief Buffer mode, queue or linear. - */ - bool txqueued; /** * @brief Requested transmit transfer size. */ @@ -93,19 +89,10 @@ typedef struct { * @brief Transmitted bytes so far. */ size_t txcnt; - union { - struct { - /** - * @brief Pointer to the transmission linear buffer. - */ - const uint8_t *txbuf; - } linear; - struct { - /** - * @brief Pointer to the output queue. - */ - output_queue_t *txqueue; - } queue; + /** + * @brief Pointer to the transmission linear buffer. + */ + const uint8_t *txbuf; /* End of the mandatory fields.*/ } mode; } USBInEndpointState; @@ -114,10 +101,6 @@ typedef struct { * @brief Type of an OUT endpoint state structure. */ typedef struct { - /** - * @brief Buffer mode, queue or linear. - */ - bool rxqueued; /** * @brief Requested receive transfer size. */ @@ -126,20 +109,10 @@ typedef struct { * @brief Received bytes so far. */ size_t rxcnt; - union { - struct { - /** - * @brief Pointer to the receive linear buffer. - */ - uint8_t *rxbuf; - } linear; - struct { - /** - * @brief Pointer to the input queue. - */ - input_queue_t *rxqueue; - } queue; - } mode; + /** + * @brief Pointer to the receive linear buffer. + */ + uint8_t *rxbuf; /* End of the mandatory fields.*/ } USBOutEndpointState; -- cgit v1.2.3