AVR: Update the USB lld file according to the new endpoint enumeration.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10593 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
077c58efda
commit
21aec31e1f
|
@ -323,7 +323,7 @@ static void ep_isr(USBDriver *usbp, usbep_t ep) {
|
||||||
_usb_isr_invoke_setup_cb(usbp, ep);
|
_usb_isr_invoke_setup_cb(usbp, ep);
|
||||||
} else if ((UEIENX & (1 << RXOUTE)) && (UEINTX & (1 << RXOUTI))) {
|
} else if ((UEIENX & (1 << RXOUTE)) && (UEINTX & (1 << RXOUTI))) {
|
||||||
/* Received OUT data from host */
|
/* Received OUT data from host */
|
||||||
if (ep == 0 && usbp->ep0state == USB_EP0_WAITING_STS) {
|
if (ep == 0 && usbp->ep0state == USB_EP0_OUT_WAITING_STS) {
|
||||||
/* SETUP/control transaction complete, invoke the callback. */
|
/* SETUP/control transaction complete, invoke the callback. */
|
||||||
UEIENX &= ~(1 << RXOUTE);
|
UEIENX &= ~(1 << RXOUTE);
|
||||||
UEINTX &= ~((1 << RXOUTI) | (1 << FIFOCON));
|
UEINTX &= ~((1 << RXOUTI) | (1 << FIFOCON));
|
||||||
|
|
|
@ -362,6 +362,15 @@ struct USBDriver {
|
||||||
*/
|
*/
|
||||||
#define usb_lld_disconnect_bus(usbp) (UDCON |= (1 << DETACH))
|
#define usb_lld_disconnect_bus(usbp) (UDCON |= (1 << DETACH))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Start of host wake-up procedure.
|
||||||
|
*
|
||||||
|
* @notapi
|
||||||
|
*/
|
||||||
|
#define usb_lld_wakeup_host(usbp) \
|
||||||
|
do{ \
|
||||||
|
} while (true)
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* External declarations. */
|
/* External declarations. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue