usb icon indicating copy to clipboard operation
usb copied to clipboard

XMEGA endpoints not enabled

Open kuro68k opened this issue 6 years ago • 0 comments

In usb_xmega.c, it should be

inline void usb_ep_enable(uint8_t ep, uint8_t type, usb_size bufsize){
	_USB_EP(ep);
	e->STATUS = USB_EP_BUSNACK0_bm;
	e->CTRL = (type << USB_EP_TYPE_gp) | USB_EP_size_to_gc(bufsize);
}

The type is not shifted into position correctly, so the endpoint never gets enabled.

kuro68k avatar Jul 20 '17 10:07 kuro68k