Skip to content

Commit b2ae05f

Browse files
AGlass0fMilkArto Kinnunen
authored andcommitted
Fixed some comments
1 parent 47dc283 commit b2ae05f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhyHw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class USBPhyHw : public USBPhy {
9494
// Nordic transfer structures for each in/out endpoint
9595
nrf_drv_usbd_transfer_t transfer_buf[18];
9696

97-
// Returns the appropraite transfer structure buffer for the given endpoint
97+
// Returns the appropriate transfer structure buffer for the given endpoint
9898
nrf_drv_usbd_transfer_t* get_transfer_buffer(usb_ep_t endpoint);
9999

100100
// Returns the corresponding enumeration given an mbed endpoint number

usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,13 @@ void USBPhyHw::endpoint_stall(usb_ep_t endpoint) {
357357
void USBPhyHw::endpoint_unstall(usb_ep_t endpoint) {
358358
nrf_drv_usbd_ep_t ep = get_nordic_endpoint(endpoint);
359359
nrf_drv_usbd_ep_stall_clear(ep);
360+
361+
/*
362+
* This is a somewhat hacky fix to fully "unload"
363+
* an IN endpoint after a buffer has been
364+
* transferred via EasyDMA...
365+
*/
366+
360367
nrf_drv_usbd_ep_disable(ep);
361368
nrf_drv_usbd_ep_enable(ep);
362369
}

0 commit comments

Comments
 (0)