#include <cpu/power.h> /* cpu_relax() */
#include <drv/usb.h>
+#include <drv/usb_endpoint.h>
#include <string.h> /* memcpy() */
{
.bLength = sizeof(usb_serial_ep_report_descriptor),
.bDescriptorType = USB_DT_ENDPOINT,
- .bEndpointAddress = USB_DIR_IN | 1,
+ .bEndpointAddress = USB_DIR_IN | USB_SERIAL_EP_REPORT,
.bmAttributes = USB_ENDPOINT_XFER_INT,
.wMaxPacketSize = usb_cpu_to_le16((uint16_t)8),
.bInterval = 1,
{
.bLength = sizeof(usb_serial_ep_in_descriptor),
.bDescriptorType = USB_DT_ENDPOINT,
- .bEndpointAddress = USB_DIR_IN | 3,
+ .bEndpointAddress = USB_DIR_IN | USB_SERIAL_EP_IN,
.bmAttributes = USB_ENDPOINT_XFER_BULK,
.wMaxPacketSize = usb_cpu_to_le16((uint16_t)64),
.bInterval = 0,
{
.bLength = sizeof(usb_serial_ep_in_descriptor),
.bDescriptorType = USB_DT_ENDPOINT,
- .bEndpointAddress = USB_DIR_OUT | 2,
+ .bEndpointAddress = USB_DIR_OUT | USB_SERIAL_EP_OUT,
.bmAttributes = USB_ENDPOINT_XFER_BULK,
.wMaxPacketSize = usb_cpu_to_le16((uint16_t)64),
.bInterval = 0,