mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-11 00:39:57 +00:00
mass rename tud/dcd_irq_handler to tud/dcd_init_handler
This commit is contained in:
parent
4bbbba48cb
commit
50be9d7c3a
@ -4,7 +4,7 @@
|
||||
|
||||
### Breaking
|
||||
|
||||
- TinyUSB does not directly implement USB IRQ Handler function anymore. Application must implement IRQ Handler and invoke `tud_irq_handler(rhport)`. This is due to:
|
||||
- TinyUSB does not directly implement USB IRQ Handler function anymore. Application must implement IRQ Handler and invoke `tud_int_handler(rhport)`. This is due to:
|
||||
|
||||
- IRQ Handler name can be different across system depending on the startup
|
||||
- Some OS need to execute enterISR()/exitISR() to work properly, also tracing tool may need to insert trace ISR enter/exit to record usb event
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
### MCU
|
||||
|
||||
- All default IRQ Handler is renamed to `dcd_irq_handler()`
|
||||
- All default IRQ Handler is renamed to `dcd_int_handler()`
|
||||
|
||||
## 0.6.0 - 2019.03.30
|
||||
|
||||
|
@ -68,7 +68,7 @@ This function should leave an internal D+/D- pull-up in its default power-on sta
|
||||
|
||||
Enables or disables the USB device interrupt(s). May be used to prevent concurrency issues when mutating data structures shared between main code and the interrupt handler.
|
||||
|
||||
##### dcd_irq_handler
|
||||
##### dcd_int_handler
|
||||
|
||||
Processes all the hardware generated events e.g Bus reset, new data packet from host etc ... It will be called by application in the MCU USB interrupt handler.
|
||||
|
||||
|
@ -13,6 +13,6 @@ SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||
# This can cause some TinyUSB API missing, this hack to allow us to fill those API
|
||||
# to pass the compilation process
|
||||
CFLAGS += \
|
||||
-D"tud_irq_handler(x)= " \
|
||||
-D"tud_int_handler(x)= " \
|
||||
|
||||
include ../../rules.mk
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -41,7 +41,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_Handler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -37,7 +37,7 @@ void USB_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ void USB0_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -251,7 +251,7 @@ void USB1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_Handler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -37,22 +37,22 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_0_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_1_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_2_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_3_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -41,7 +41,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -63,7 +63,7 @@ void isr(void)
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE == OPT_MODE_DEVICE
|
||||
if (irqs & (1 << USB_INTERRUPT)) {
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
#endif
|
||||
if (irqs & (1 << TIMER0_INTERRUPT)) {
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_Handler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -37,22 +37,22 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_0_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_1_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_2_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_3_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------- ----+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -37,7 +37,7 @@ void USB_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -35,7 +35,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -35,12 +35,12 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB1_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -145,7 +145,7 @@ void USB_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ void USB0_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ void USB1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_Handler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -37,22 +37,22 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_0_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_1_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_2_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_3_Handler (void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -125,7 +125,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ void USB_OTG2_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ void USB_OTG2_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ void USB_OTG2_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void __attribute__ ((interrupt(USB_UBM_VECTOR))) USB_UBM_ISR(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -229,7 +229,7 @@ void USB0_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -240,7 +240,7 @@ void USB1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -35,7 +35,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -41,7 +41,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -41,7 +41,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USBD_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -100,7 +100,7 @@ void board_init(void)
|
||||
void UDP_Handler(void)
|
||||
{
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_Handler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,17 +32,17 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_HP_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USB_LP_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void USBWakeUp_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -38,7 +38,7 @@
|
||||
// the highest possible transfer rate.
|
||||
void USB_HP_CAN_TX_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
// USB low-priority interrupt (Channel 20): Triggered by all USB events
|
||||
@ -46,14 +46,14 @@ void USB_HP_CAN_TX_IRQHandler(void)
|
||||
// interrupt source before serving the interrupt.
|
||||
void USB_LP_CAN_RX0_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
// USB wakeup interrupt (Channel 42): Triggered by the wakeup event from the USB
|
||||
// Suspend mode.
|
||||
void USBWakeUp_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -34,7 +34,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -32,7 +32,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void OTG_FS_IRQHandler(void)
|
||||
{
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -129,7 +129,7 @@ void USB_OTG1_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(0);
|
||||
tud_int_handler(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -140,7 +140,7 @@ void USB_OTG2_IRQHandler(void)
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
|
||||
tud_irq_handler(1);
|
||||
tud_int_handler(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ typedef struct TU_ATTR_ALIGNED(4)
|
||||
void dcd_init (uint8_t rhport);
|
||||
|
||||
// Interrupt Handler
|
||||
void dcd_irq_handler(uint8_t rhport) TU_ATTR_USED;
|
||||
void dcd_int_handler(uint8_t rhport);
|
||||
|
||||
// Enable device interrupt
|
||||
void dcd_int_enable (uint8_t rhport);
|
||||
|
@ -48,7 +48,7 @@ bool tud_init (void);
|
||||
void tud_task (void);
|
||||
|
||||
// Interrupt handler, name alias to DCD
|
||||
#define tud_irq_handler dcd_irq_handler
|
||||
#define tud_int_handler dcd_int_handler
|
||||
|
||||
// Check if device is connected and configured
|
||||
bool tud_mounted(void);
|
||||
|
@ -638,7 +638,7 @@ static void handle_epin_ints(void)
|
||||
}
|
||||
|
||||
|
||||
static void dcd_int_handler(void* arg)
|
||||
static void _dcd_int_handler(void* arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
@ -726,7 +726,7 @@ static void dcd_int_handler(void* arg)
|
||||
void dcd_int_enable (uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
esp_intr_alloc(ETS_USB_INTR_SOURCE, ESP_INTR_FLAG_LOWMED, (intr_handler_t) dcd_int_handler, NULL, &usb_ih);
|
||||
esp_intr_alloc(ETS_USB_INTR_SOURCE, ESP_INTR_FLAG_LOWMED, (intr_handler_t) _dcd_int_handler, NULL, &usb_ih);
|
||||
}
|
||||
|
||||
void dcd_int_disable (uint8_t rhport)
|
||||
|
@ -331,7 +331,7 @@ void maybe_transfer_complete(void) {
|
||||
}
|
||||
|
||||
|
||||
void dcd_irq_handler (uint8_t rhport)
|
||||
void dcd_int_handler (uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -347,7 +347,7 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
|
||||
//--------------------------------------------------------------------+
|
||||
// ISR
|
||||
//--------------------------------------------------------------------+
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
uint32_t const intr_mask = UDP->UDP_IMR;
|
||||
uint32_t const intr_status = UDP->UDP_ISR & intr_mask;
|
||||
|
@ -373,7 +373,7 @@ void bus_reset(void)
|
||||
_dcd.xfer[0][TUSB_DIR_OUT].mps = MAX_PACKET_SIZE;
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -306,7 +306,7 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
|
||||
ep->CFG |= USBD_CFG_CSTALL_Msk;
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -312,7 +312,7 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
|
||||
ep->CFG |= USBD_CFG_CSTALL_Msk;
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -435,7 +435,7 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
|
||||
}
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -505,7 +505,7 @@ static void dd_complete_isr(uint8_t rhport, uint8_t ep_id)
|
||||
}
|
||||
|
||||
// main USB IRQ handler
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
uint32_t const dev_int_status = LPC_USB->DevIntSt & LPC_USB->DevIntEn;
|
||||
LPC_USB->DevIntClr = dev_int_status;// Acknowledge handled interrupt
|
||||
|
@ -345,7 +345,7 @@ static void process_xfer_isr(uint32_t int_status)
|
||||
}
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport; // TODO support multiple USB on supported mcu such as LPC55s69
|
||||
|
||||
|
@ -503,7 +503,7 @@ bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t t
|
||||
//--------------------------------------------------------------------+
|
||||
// ISR
|
||||
//--------------------------------------------------------------------+
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
dcd_registers_t* const dcd_reg = _dcd_controller[rhport].regs;
|
||||
|
||||
|
@ -499,7 +499,7 @@ static void dcd_ep_ctr_handler(void)
|
||||
}
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport) {
|
||||
void dcd_int_handler(uint8_t rhport) {
|
||||
|
||||
(void) rhport;
|
||||
|
||||
|
@ -669,7 +669,7 @@ static void handle_epin_ints(USB_OTG_DeviceTypeDef * dev, USB_OTG_INEndpointType
|
||||
}
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport) {
|
||||
void dcd_int_handler(uint8_t rhport) {
|
||||
|
||||
(void) rhport;
|
||||
|
||||
|
@ -558,7 +558,7 @@ static void handle_setup_packet(void)
|
||||
dcd_event_setup_received(0, (uint8_t*) &_setup_packet[0], true);
|
||||
}
|
||||
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -626,7 +626,7 @@ static void handle_setup(void)
|
||||
|
||||
usb_setup_ev_pending_write(1);
|
||||
}
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
void dcd_int_handler(uint8_t rhport)
|
||||
{
|
||||
(void)rhport;
|
||||
uint8_t next_ev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user