remove tusb_isr(), rename hal_hcd_isr() and hal_dcd_isr()

This commit is contained in:
hathach
2018-03-06 17:38:35 +07:00
parent 98f12c9833
commit fce85875c4
13 changed files with 32 additions and 34 deletions

View File

@@ -730,7 +730,7 @@ static void xfer_error_isr(uint8_t hostid)
}
//------------- Host Controller Driver's Interrupt Handler -------------//
void hcd_isr(uint8_t hostid)
void hal_hcd_isr(uint8_t hostid)
{
ehci_registers_t* const regs = get_operational_register(hostid);

View File

@@ -85,7 +85,7 @@ static inline bool pipehandle_is_equal(pipe_handle_t x, pipe_handle_t y)
// USBH-HCD API
//--------------------------------------------------------------------+
tusb_error_t hcd_init(void) ATTR_WARN_UNUSED_RESULT;
void hcd_isr(uint8_t hostid);
void hal_hcd_isr(uint8_t hostid);
//--------------------------------------------------------------------+
// PIPE API

View File

@@ -658,7 +658,7 @@ static void done_queue_isr(uint8_t hostid)
}
}
void hcd_isr(uint8_t hostid)
void hal_hcd_isr(uint8_t hostid)
{
uint32_t const int_en = OHCI_REG->interrupt_enable;
uint32_t const int_status = OHCI_REG->interrupt_status & int_en;