Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions os/hal/ports/LPC/LLD/USB/hal_usb_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ static size_t usb_packet_receive(USBDriver *usbp, usbep_t ep) {
// ReSetup for recieve
USB_EPLIST->entry[4 * ep] |= EPLIST_ENTRY_NBYTES(epcp->out_maxsize) |
EPLIST_ADDR(usbp->epn_buffer[ep * 2]) | EPLIST_ENTRY_ACTIVE;
} else {
if (ep != 0) {
USB_EPLIST->entry[4 * ep] |= EPLIST_ENTRY_STALL;
}
}

return n;
Expand Down
2 changes: 1 addition & 1 deletion os/hal/ports/LPC/LLD/USB/hal_usb_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* @brief Maximum endpoint address.
*/
#define USB_MAX_ENDPOINTS 5
#define USB_MAX_ENDPOINTS 4

/**
* @brief Status stage handling method.
Expand Down