diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-16 11:12:55 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-16 11:12:55 +0000 |
commit | 56146024e19019fb7e0d09ba7d1536980580f094 (patch) | |
tree | 823b0eb598a629e8c82793d4e4fce5e21fe195c6 /os/hal | |
parent | 038f0a243d8041c832bb025d1ed0fd3a05e5f9ae (diff) | |
download | ChibiOS-56146024e19019fb7e0d09ba7d1536980580f094.tar.gz ChibiOS-56146024e19019fb7e0d09ba7d1536980580f094.tar.bz2 ChibiOS-56146024e19019fb7e0d09ba7d1536980580f094.zip |
Fixed bug #661.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8501 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/STM32/LLD/USBv1/stm32_usb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/USBv1/stm32_usb.h b/os/hal/ports/STM32/LLD/USBv1/stm32_usb.h index 8e47136f1..9acf0686f 100644 --- a/os/hal/ports/STM32/LLD/USBv1/stm32_usb.h +++ b/os/hal/ports/STM32/LLD/USBv1/stm32_usb.h @@ -112,6 +112,8 @@ typedef struct { * @name Register aliases
* @{
*/
+#define RXCOUNT1 TXCOUNT0
+#define TXCOUNT1 RXCOUNT0
#define RXADDR1 TXADDR0
#define TXADDR1 RXADDR0
/** @} */
@@ -247,7 +249,7 @@ typedef struct { */
#define USB_GET_DESCRIPTOR(ep) \
((stm32_usb_descriptor_t *)((uint32_t)STM32_USBRAM_BASE + \
- (uint32_t)STM32_USB->BTABLE * 2 + \
+ (uint32_t)STM32_USB->BTABLE + \
(uint32_t)(ep) * \
sizeof(stm32_usb_descriptor_t)))
|