summaryrefslogtreecommitdiff
path: root/tests/test/support/ehci_controller.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-05 14:26:28 +0700
committerhathach <[email protected]>2013-04-05 14:26:28 +0700
commitd616fa6c1000e78ecf6e5e73ed080832112ef536 (patch)
tree4e213ef15d1623e44ff47d77c30fb282a9f09639 /tests/test/support/ehci_controller.c
parent10f5bce0df2700ce47f3466b838486a76385ce2b (diff)
continue on refratoring
Diffstat (limited to 'tests/test/support/ehci_controller.c')
-rw-r--r--tests/test/support/ehci_controller.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test/support/ehci_controller.c b/tests/test/support/ehci_controller.c
index d1a7bbdde..762691c3a 100644
--- a/tests/test/support/ehci_controller.c
+++ b/tests/test/support/ehci_controller.c
@@ -53,12 +53,17 @@
LPC_USB0_Type lpc_usb0;
LPC_USB1_Type lpc_usb1;
-extern ehci_data_t ehci_data;
extern usbh_device_info_t usbh_devices[TUSB_CFG_HOST_DEVICE_MAX+1];
//--------------------------------------------------------------------+
// IMPLEMENTATION
//--------------------------------------------------------------------+
+void ehci_controller_init(void)
+{
+ memclr_(&lpc_usb0, sizeof(LPC_USB0_Type));
+ memclr_(&lpc_usb1, sizeof(LPC_USB1_Type));
+}
+
void ehci_controller_control_xfer_proceed(uint8_t dev_addr, uint8_t p_data[])
{
ehci_registers_t* const regs = get_operational_register( usbh_devices[dev_addr].core_id );