summaryrefslogtreecommitdiff
path: root/tests/test/host/integration
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-09 13:28:07 +0700
committerhathach <[email protected]>2013-04-09 13:28:07 +0700
commite6a44b3fe9a0af6ce33f8340c8703bf0bbc43d5a (patch)
tree9fe35b73fd7fb1921979889f6323b0a28785b091 /tests/test/host/integration
parenta6cf4f228e3036c4df69066df524b3fde74b271c (diff)
add test & code for TUSB_EVENT_INTERFACE_OPEN for tusbh_hid_keyboard_isr tusbh_hid_mouse_isr
Diffstat (limited to 'tests/test/host/integration')
-rw-r--r--tests/test/host/integration/test_hidh_keyboard_integrate.c (renamed from tests/test/host/integration/test_hidh_keyboard.c)49
1 files changed, 25 insertions, 24 deletions
diff --git a/tests/test/host/integration/test_hidh_keyboard.c b/tests/test/host/integration/test_hidh_keyboard_integrate.c
index f7662f954..a0ce152c0 100644
--- a/tests/test/host/integration/test_hidh_keyboard.c
+++ b/tests/test/host/integration/test_hidh_keyboard_integrate.c
@@ -35,33 +35,34 @@
* This file is part of the tiny usb stack.
*/
-#include "stdlib.h"
-#include "unity.h"
-#include "type_helper.h"
-#include "tusb_option.h"
-#include "errors.h"
-
-#include "mock_osal.h"
-#include "hcd.h"
-#include "usbh.h"
-#include "tusb.h"
-#include "hid_host.h"
-
-#include "descriptor_test.h"
-
-uint8_t dev_addr;
-uint8_t hostid;
-
+//#include "stdlib.h"
+//#include "unity.h"
+//#include "type_helper.h"
+//#include "tusb_option.h"
+//#include "errors.h"
+//
+//#include "mock_osal.h"
+//#include "hcd.h"
+//#include "usbh.h"
+//#include "tusb.h"
+//#include "hid_host.h"
+////#include "ehci_controller.h"
+//
+//#include "descriptor_test.h"
+//
+//uint8_t dev_addr;
+//uint8_t hostid;
+//
void setUp(void)
{
- dev_addr = RANDOM(TUSB_CFG_HOST_DEVICE_MAX)+1;
- hostid = RANDOM(CONTROLLER_HOST_NUMBER) + TEST_CONTROLLER_HOST_START_INDEX;
-
- ehci_controller_init();
- tusb_init();
-
+// dev_addr = RANDOM(TUSB_CFG_HOST_DEVICE_MAX)+1;
+// hostid = RANDOM(CONTROLLER_HOST_NUMBER) + TEST_CONTROLLER_HOST_START_INDEX;
+//
+//// ehci_controller_init();
+// tusb_init();
+//
}
-
+//
void tearDown(void)
{
}