separate hcd_init from ehci

This commit is contained in:
hathach
2021-02-22 22:40:51 +07:00
parent 1e07fc024c
commit c5b8980398
2 changed files with 12 additions and 8 deletions

View File

@@ -65,6 +65,14 @@ typedef struct
#endif
// TODO better prototype later
extern bool hcd_ehci_init (uint8_t rhport); // from ehci.c
bool hcd_init(uint8_t rhport)
{
return hcd_ehci_init(rhport);
}
void hcd_int_enable(uint8_t rhport)
{
NVIC_EnableIRQ(_hcd_controller[rhport].irqnum);