update tinyusb stack

This commit is contained in:
hathach committed 2020-04-20 22:25:26 +07:00
1 parent ad3ed9b2ab
commit 7e86e7d0ea
2 files changed
+9 -10

No files matched your search

+8 -9
View File
@@ -30,6 +30,14 @@
#include "Arduino.h"
#include "Adafruit_TinyUSB_Core.h"
//--------------------------------------------------------------------+
// Forward USB interrupt events to TinyUSB IRQ Handler
//--------------------------------------------------------------------+
extern "C" void USBD_IRQHandler(void)
{
tud_int_handler(0);
}
//--------------------------------------------------------------------+
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
//--------------------------------------------------------------------+
@@ -106,15 +114,6 @@ void Adafruit_TinyUSB_Core_touch1200(void)
//--------------------------------------------------------------------+
// Adafruit_USBD_Device platform dependent
//--------------------------------------------------------------------+
void Adafruit_USBD_Device::detach(void)
{
NRF_USBD->USBPULLUP = 0;
}
void Adafruit_USBD_Device::attach(void)
{
NRF_USBD->USBPULLUP = 1;
}
uint8_t Adafruit_USBD_Device::getSerialDescriptor(uint16_t* serial_str)
{