summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHardy Griech <[email protected]>2024-05-13 18:57:03 +0200
committerHardy Griech <[email protected]>2024-05-13 18:57:03 +0200
commit9d561410e58ba9efb6ef2bff7b03a2f47dee8d64 (patch)
tree08ac523de6f908238654a977aece7a493dae037d
parent82547372d1a83f03d137a20f71b2d60a5702a75a (diff)
revert (unverified) second race condition
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index 805eb1dda..bb07063d2 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -77,18 +77,6 @@
#endif
#endif
-/** disable interrupts */
-#define DISABLE_IRQ() \
- uint32_t prim = __get_PRIMASK(); \
- __disable_irq();
-
-/** (re)enable interrupts */
-#define ENABLE_IRQ() \
- if (!prim) \
- { \
- __enable_irq(); \
- }
-
/*------------------------------------------------------------------*/
/* MACRO TYPEDEF CONSTANT ENUM
*------------------------------------------------------------------*/
@@ -446,15 +434,11 @@ bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t* buffer, uint16_t to
bool const control_status = (epnum == 0 && total_bytes == 0 && dir != tu_edpt_dir(NRF_USBD->BMREQUESTTYPE));
if (control_status) {
- DISABLE_IRQ();
-
// Status Phase also requires EasyDMA has to be available as well !!!!
edpt_dma_start(&NRF_USBD->TASKS_EP0STATUS);
// The nRF doesn't interrupt on status transmit so we queue up a success response.
dcd_event_xfer_complete(0, ep_addr, 0, XFER_RESULT_SUCCESS, is_in_isr());
-
- ENABLE_IRQ();
} else if (dir == TUSB_DIR_OUT) {
xfer->started = true;
if (epnum == 0) {