summaryrefslogtreecommitdiff
path: root/tests/test/host/test_enum_task.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-26 17:28:05 +0700
committerhathach <[email protected]>2013-02-26 17:28:05 +0700
commit49da21086004bd666564c5bd1bd2a0bb7938205d (patch)
treecb57d60704f8cb41b7450108ea12b3ec7cabcd7a /tests/test/host/test_enum_task.c
parentac744b0401b93bade7d71e38db9f911c9d213fde (diff)
add osal subtask support
add usbh_control_xfer_subtask as xfer and wait fix potential error when update device info & open control pipe for new address fix build error with hal_****.c add STATIC_ASSSERT to perform compile time checking with sizeof later update osal_queue_receive and osal_semaphore_wait for osal_none to support subtask
Diffstat (limited to 'tests/test/host/test_enum_task.c')
-rw-r--r--tests/test/host/test_enum_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test/host/test_enum_task.c b/tests/test/host/test_enum_task.c
index 9fcb2fed0..308be8806 100644
--- a/tests/test/host/test_enum_task.c
+++ b/tests/test/host/test_enum_task.c
@@ -43,6 +43,7 @@
#include "mock_hcd.h"
#include "mock_usbh_hcd.h"
#include "mock_tusb_callback.h"
+#include "mock_hid_host.h"
extern usbh_device_info_t usbh_device_info_pool[TUSB_CFG_HOST_DEVICE_MAX+1];
extern uint8_t enum_data_buffer[TUSB_CFG_HOST_ENUM_BUFFER_SIZE];
@@ -220,7 +221,7 @@ void test_enum_parse_config_desc(void)
hcd_pipe_control_open_ExpectAndReturn(1, desc_device.bMaxPacketSize0, TUSB_ERROR_NONE);
tusbh_device_attached_cb_ExpectAndReturn((tusb_descriptor_device_t*) enum_data_buffer, 1);
-// hid_install
+ hidh_install_ExpectAndReturn(1, &desc_configuration.keyboard_interface, TUSB_ERROR_NONE);
usbh_enumeration_task();
}