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:
Theodore Ateba 2017-09-16 15:50:45 +00:00
parent 077c58efda
commit 21aec31e1f
2 changed files with 10 additions and 1 deletions

View File

@ -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));

View File

@ -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. */
/*===========================================================================*/ /*===========================================================================*/