File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840 Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class USBPhyHw : public USBPhy {
94
94
// Nordic transfer structures for each in/out endpoint
95
95
nrf_drv_usbd_transfer_t transfer_buf[18 ];
96
96
97
- // Returns the appropraite transfer structure buffer for the given endpoint
97
+ // Returns the appropriate transfer structure buffer for the given endpoint
98
98
nrf_drv_usbd_transfer_t * get_transfer_buffer (usb_ep_t endpoint);
99
99
100
100
// Returns the corresponding enumeration given an mbed endpoint number
Original file line number Diff line number Diff line change @@ -357,6 +357,13 @@ void USBPhyHw::endpoint_stall(usb_ep_t endpoint) {
357
357
void USBPhyHw::endpoint_unstall (usb_ep_t endpoint) {
358
358
nrf_drv_usbd_ep_t ep = get_nordic_endpoint (endpoint);
359
359
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
+
360
367
nrf_drv_usbd_ep_disable (ep);
361
368
nrf_drv_usbd_ep_enable (ep);
362
369
}
You can’t perform that action at this time.
0 commit comments