Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMEGA endpoints not enabled #8

Open
kuro68k opened this issue Jul 20, 2017 · 0 comments
Open

XMEGA endpoints not enabled #8

kuro68k opened this issue Jul 20, 2017 · 0 comments

Comments

@kuro68k
Copy link

kuro68k commented Jul 20, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant