X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fusb_stm32.h;h=7801e2c8a3940a76858a00c975450a19dad511fb;hb=f81df2ee3de292493462ee9d0a8905eaafb57243;hp=967902505f9eaf2a09f4ecfc2a068faffa8d4a12;hpb=45b784ed8ed1b37ccd1fa56258fb9d082de55216;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/usb_stm32.h b/bertos/cpu/cortex-m3/drv/usb_stm32.h index 96790250..7801e2c8 100644 --- a/bertos/cpu/cortex-m3/drv/usb_stm32.h +++ b/bertos/cpu/cortex-m3/drv/usb_stm32.h @@ -50,7 +50,7 @@ #define USB_DP_PIN (1 << 12) #define USB_DISC_PIN (1 << 11) -#define USB_EP0_MAX_SIZE 8 +#define USB_EP0_MAX_SIZE CONFIG_EP0_MAX_SIZE #define USB_XFER_MAX_SIZE 64 #define EP_MAX_SLOTS USB_EP_MAX @@ -62,7 +62,7 @@ /* 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))