summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-30 23:01:23 +0700
committerhathach <[email protected]>2019-03-30 23:01:23 +0700
commiteabfc53f38dc538b44615aed32db66484a3acca4 (patch)
treee1ad77937c1ed4b2f3d81636d4f94fe2d25647e3 /src/portable
parentf3a954e7deaa33db5fed8e807cd146e65aaeb104 (diff)
added tud_suspended() and tud_ready()
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index 452f25292..15a1963b9 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -219,6 +219,9 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num)
void dcd_remote_wakeup(uint8_t rhport)
{
(void) rhport;
+
+ NRF_USBD->DPDMVALUE = USBD_DPDMVALUE_STATE_Resume;
+ NRF_USBD->TASKS_DPDMDRIVE = 1;
}
//--------------------------------------------------------------------+
@@ -389,6 +392,8 @@ void USBD_IRQHandler(void)
if ( evt_cause & USBD_EVENTCAUSE_SUSPEND_Msk )
{
dcd_event_bus_signal(0, DCD_EVENT_SUSPEND, true);
+
+
}
if ( evt_cause & USBD_EVENTCAUSE_RESUME_Msk )