change usbh queue to generic event queue

This commit is contained in:
hathach
2018-12-06 23:45:24 +07:00
parent ac829c0a87
commit 2fe9abe71f
3 changed files with 46 additions and 29 deletions

View File

@@ -76,6 +76,7 @@ typedef struct
uint32_t len;
} xfer_complete;
};
} hcd_event_t;
#if MODE_HOST_SUPPORTED
@@ -117,6 +118,11 @@ void hal_hcd_isr(uint8_t hostid);
void hcd_int_enable (uint8_t rhport);
void hcd_int_disable(uint8_t rhport);
//--------------------------------------------------------------------+
// Event function
//--------------------------------------------------------------------+
void hcd_event_handler(hcd_event_t const* event, bool in_isr);
//--------------------------------------------------------------------+
// PIPE API
//--------------------------------------------------------------------+