add tud_irq_handler() to all NUC board
This commit is contained in:
@@ -29,6 +29,17 @@
|
||||
#include "clk.h"
|
||||
#include "sys.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM
|
||||
//--------------------------------------------------------------------+
|
||||
#define LED_PORT PB
|
||||
#define LED_PIN 4
|
||||
#define LED_PIN_IO PB4
|
||||
|
||||
@@ -29,6 +29,17 @@
|
||||
#include "clk.h"
|
||||
#include "sys.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM
|
||||
//--------------------------------------------------------------------+
|
||||
#define LED_PORT PB
|
||||
#define LED_PIN 4
|
||||
#define LED_PIN_IO PB4
|
||||
|
||||
@@ -29,6 +29,18 @@
|
||||
#include "clk.h"
|
||||
#include "sys.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM
|
||||
//--------------------------------------------------------------------+
|
||||
#define LED_PORT PC
|
||||
#define LED_PIN 9
|
||||
#define LED_PIN_IO PC9
|
||||
|
||||
@@ -29,6 +29,17 @@
|
||||
#include "clk.h"
|
||||
#include "sys.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM
|
||||
//--------------------------------------------------------------------+
|
||||
#define LED_PORT PB
|
||||
#define LED_PIN 0
|
||||
#define LED_PIN_IO PB0
|
||||
|
||||
@@ -27,6 +27,17 @@
|
||||
#include "bsp/board.h"
|
||||
#include "NUC505Series.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM
|
||||
//--------------------------------------------------------------------+
|
||||
#define LED_PORT PC
|
||||
#define LED_PIN 3
|
||||
#define LED_STATE_ON 0
|
||||
|
||||
Reference in New Issue
Block a user