move irqhandler to application

tud_isr() must be called by application to forward the irqhandle to the
stack
This commit is contained in:
hathach
2020-04-06 14:11:45 +07:00
parent 4430ea61e2
commit 2d6d298302
13 changed files with 138 additions and 68 deletions

View File

@@ -35,6 +35,14 @@
#include "hpl_pm_config.h"
#include "hpl/pm/hpl_pm_base.h"
//--------------------------------------------------------------------+
// Forward USB interrupt events to TinyUSB IRQ Handler
//--------------------------------------------------------------------+
void USB_Handler(void)
{
tud_isr(0);
}
//--------------------------------------------------------------------+
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
//--------------------------------------------------------------------+