refractor ehci test files

adding some code for async_advance_isr
add test for async_advance_isr
This commit is contained in:
hathach
2013-03-13 12:25:27 +07:00
parent 97c436a16e
commit 1a932e7437
10 changed files with 74 additions and 111 deletions
+3 -1
View File
@@ -48,7 +48,9 @@
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
extern ehci_data_t ehci_data;
ehci_data_t ehci_data;
LPC_USB0_Type lpc_usb0;
LPC_USB1_Type lpc_usb1;
//--------------------------------------------------------------------+
// IMPLEMENTATION
+7
View File
@@ -55,10 +55,17 @@
extern "C" {
#endif
extern ehci_data_t ehci_data;
void ehci_controller_run(uint8_t hostid);
void ehci_controller_device_plug(uint8_t hostid, tusb_speed_t speed);
void ehci_controller_device_unplug(uint8_t hostid);
ehci_registers_t* const get_operational_register(uint8_t hostid);
ehci_link_t* const get_period_frame_list(uint8_t list_idx);
ehci_qhd_t* const get_async_head(uint8_t hostid);
ehci_qhd_t* const get_period_head(uint8_t hostid);
#ifdef __cplusplus
}
#endif