Skip to content

Commit 7e86e7d

Browse files
committed
update tinyusb stack
1 parent ad3ed9b commit 7e86e7d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

cores/nRF5/TinyUSB/Adafruit_TinyUSB_nRF.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
#include "Arduino.h"
3131
#include "Adafruit_TinyUSB_Core.h"
3232

33+
//--------------------------------------------------------------------+
34+
// Forward USB interrupt events to TinyUSB IRQ Handler
35+
//--------------------------------------------------------------------+
36+
extern "C" void USBD_IRQHandler(void)
37+
{
38+
tud_int_handler(0);
39+
}
40+
3341
//--------------------------------------------------------------------+
3442
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
3543
//--------------------------------------------------------------------+
@@ -106,15 +114,6 @@ void Adafruit_TinyUSB_Core_touch1200(void)
106114
//--------------------------------------------------------------------+
107115
// Adafruit_USBD_Device platform dependent
108116
//--------------------------------------------------------------------+
109-
void Adafruit_USBD_Device::detach(void)
110-
{
111-
NRF_USBD->USBPULLUP = 0;
112-
}
113-
114-
void Adafruit_USBD_Device::attach(void)
115-
{
116-
NRF_USBD->USBPULLUP = 1;
117-
}
118117

119118
uint8_t Adafruit_USBD_Device::getSerialDescriptor(uint16_t* serial_str)
120119
{

0 commit comments

Comments
 (0)