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

STM32L433: Make double buffer work for bulk endpoints in ep_write #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions src/usbd_stm32l433_devfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ static int32_t ep_write(uint8_t ep, const void *buf, uint16_t blen) {
switch (*reg & (USB_EPTX_STAT | USB_EP_T_FIELD | USB_EP_KIND)) {
/* doublebuffered bulk endpoint */
case (USB_EP_TX_NAK | USB_EP_BULK | USB_EP_KIND):
case (USB_EP_TX_VALID | USB_EP_BULK | USB_EP_KIND):
if (*reg & USB_EP_SWBUF_TX) {
pma_write(buf, blen, &(tbl->tx1));
} else {
Expand Down