• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022, sakumisu
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef USBH_HUB_H
7 #define USBH_HUB_H
8 
9 #include "usbh_core.h"
10 #include "usb_hub.h"
11 
12 #define USBH_HUB_MAX_PORTS 4
13 /* Maximum size of an interrupt IN transfer */
14 #define USBH_HUB_INTIN_BUFSIZE ((USBH_HUB_MAX_PORTS + 8) >> 3)
15 
16 extern usb_slist_t hub_class_head;
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 void usbh_roothub_thread_wakeup(uint8_t port);
22 int usbh_hub_initialize(void);
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif /* USBH_HUB_H */
28