summaryrefslogtreecommitdiff
path: root/src/tusb.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-05 18:58:30 +0700
committerhathach <[email protected]>2018-12-05 20:26:55 +0700
commit4537ba66e536eb1d40c73f80ab150d92c2393397 (patch)
tree09e5b5d2b480462828d30f57451f5e102f18881c /src/tusb.c
parente0aa38ca8d2106aca9842b310640346f6a8ac562 (diff)
fixing build error with host stack
Diffstat (limited to 'src/tusb.c')
-rw-r--r--src/tusb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tusb.c b/src/tusb.c
index fe4dbb2c1..6d2b92dc8 100644
--- a/src/tusb.c
+++ b/src/tusb.c
@@ -39,14 +39,17 @@
#include "tusb_option.h"
#if TUSB_OPT_HOST_ENABLED || TUSB_OPT_DEVICE_ENABLED
-
#define _TINY_USB_SOURCE_FILE_
#include "tusb.h"
-#include "device/usbd_pvt.h"
static bool _initialized = false;
+// TODO clean up
+#if TUSB_OPT_DEVICE_ENABLED
+#include "device/usbd_pvt.h"
+#endif
+
bool tusb_init(void)
{
// skip if already initialized
@@ -69,7 +72,7 @@ bool tusb_init(void)
void tusb_task(void)
{
#if MODE_HOST_SUPPORTED
- usbh_enumeration_task(NULL);
+ usbh_task(NULL);
#endif
#if TUSB_OPT_DEVICE_ENABLED