projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usb: fix the name of endpoint's direction in debugging messages
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
usb_stm32.h
diff --git
a/bertos/cpu/cortex-m3/drv/usb_stm32.h
b/bertos/cpu/cortex-m3/drv/usb_stm32.h
index 967902505f9eaf2a09f4ecfc2a068faffa8d4a12..a4cbb6b59d5a35ef68d807ed3e2db2452315d59f 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/usb_stm32.h
+++ b/
bertos/cpu/cortex-m3/drv/usb_stm32.h
@@
-62,7
+62,7
@@
/* Offset of the buffer descriptor table inside the packet memory */
#define USB_BDT_OFFSET \
/* Offset of the buffer descriptor table inside the packet memory */
#define USB_BDT_OFFSET \
- ((USB_PACKET_MEMORY_SIZE - (sizeof(stm32_UsbBd) * EP_MAX_
HW_
NUM)) & ~7)
+ ((USB_PACKET_MEMORY_SIZE - (sizeof(stm32_UsbBd) * EP_MAX_NUM)) & ~7)
#define USB_MEM_ADDR(offset) \
(USB_PACKET_MEMORY_BASE + ((offset << 1) & ~3) + (offset & 1))
#define USB_MEM_ADDR(offset) \
(USB_PACKET_MEMORY_BASE + ((offset << 1) & ~3) + (offset & 1))