mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
mass rename dcd_isr() to dcd_irq_handler()
This commit is contained in:
parent
dc4bf02dcb
commit
fb05451a26
@ -89,7 +89,7 @@ typedef struct TU_ATTR_ALIGNED(4)
|
||||
void dcd_init (uint8_t rhport);
|
||||
|
||||
// Interrupt Handler
|
||||
void dcd_isr (uint8_t rhport) TU_ATTR_USED;
|
||||
void dcd_irq_handler (uint8_t rhport) TU_ATTR_USED;
|
||||
|
||||
// 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_isr
|
||||
#define tud_irq_handler dcd_irq_handler
|
||||
|
||||
// Check if device is connected and configured
|
||||
bool tud_mounted(void);
|
||||
|
@ -318,7 +318,7 @@ void maybe_transfer_complete(void) {
|
||||
}
|
||||
|
||||
|
||||
void dcd_isr (uint8_t rhport)
|
||||
void dcd_irq_handler (uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
|
@ -333,7 +333,7 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
|
||||
//--------------------------------------------------------------------+
|
||||
// ISR
|
||||
//--------------------------------------------------------------------+
|
||||
void dcd_isr(uint8_t rhport)
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
{
|
||||
uint32_t const intr_mask = UDP->UDP_IMR;
|
||||
uint32_t const intr_status = UDP->UDP_ISR & intr_mask;
|
||||
|
@ -424,7 +424,7 @@ void USBD_IRQHandler(void)
|
||||
USBD->INTSTS = status & enabled_irqs;
|
||||
}
|
||||
|
||||
void dcd_isr(uint8_t rhport)
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
USBD_IRQHandler();
|
||||
|
@ -440,7 +440,7 @@ void USBD_IRQHandler(void)
|
||||
USBD->INTSTS = status & enabled_irqs;
|
||||
}
|
||||
|
||||
void dcd_isr(uint8_t rhport)
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
USBD_IRQHandler();
|
||||
|
@ -641,7 +641,7 @@ void USBD_IRQHandler(void)
|
||||
}
|
||||
}
|
||||
|
||||
void dcd_isr(uint8_t rhport)
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
USBD_IRQHandler();
|
||||
|
@ -495,7 +495,7 @@ static void dd_complete_isr(uint8_t rhport, uint8_t ep_id)
|
||||
}
|
||||
|
||||
// main USB IRQ handler
|
||||
void dcd_isr(uint8_t rhport)
|
||||
void dcd_irq_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
|
||||
|
@ -492,7 +492,7 @@ bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t t
|
||||
//--------------------------------------------------------------------+
|
||||
// ISR
|
||||
//--------------------------------------------------------------------+
|
||||
void dcd_isr(uint8_t rhport)
|
||||
void dcd_irq_handler(uint8_t rhport)
|
||||
{
|
||||
dcd_registers_t* const dcd_reg = _dcd_controller[rhport].regs;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user