blob: e3fa98b895b0677c3ff5a3f6e46d39911638a425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation */
/* Copyright (c) 2026 Eclipse ThreadX contributors */
/* */
/* This program and the accompanying materials are made available under */
/* the terms of the MIT License which is available at */
/* https://opensource.org/licenses/MIT. */
/* */
/* SPDX-License-Identifier: MIT */
/***************************************************************************/
/* This tests the case where the hub device is low speed. The specific test case
is in ux_host_class_hub_port_change_connection_process.c. */
#include "usbx_ux_test_hub.h"
/* Define what the initial system looks like. */
#ifdef CTEST
void test_application_define(void *first_unused_memory)
#else
void usbx_hub_low_speed_hub_device_test_application_define(void *first_unused_memory)
#endif
{
/* Inform user. */
printf("Running Hub Low Speed Hub Device Test............................... ");
stepinfo("\n");
initialize_hub(first_unused_memory);
}
static void post_init_host()
{
#if UX_MAX_DEVICES > 1
/* Tell the host that there's a device connection. */
connect_device_to_hub_speed(UX_HOST_CLASS_HUB_PORT_STATUS_LOW_SPEED);
class_dpump_get();
ux_test_wait_for_enum_thread_completion();
#endif
}
static void post_init_device()
{
}
|