tinyusb  0.4
Click here to lend your support to tinyusb donation and make a donation at pledgie.com
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
tusb.h
Go to the documentation of this file.
1 /**************************************************************************/
37 /**************************************************************************/
38 
39 #ifndef _TUSB_H_
40 #define _TUSB_H_
41 
42 #ifdef __cplusplus
43  extern "C" {
44 #endif
45 
46 //--------------------------------------------------------------------+
47 // INCLUDE
48 //--------------------------------------------------------------------+
49 #include "common/common.h"
50 #include "hal/hal.h"
51 #include "osal/osal.h"
52 
53 //------------- HOST -------------//
54 #if MODE_HOST_SUPPORTED
55  #include "host/usbh.h"
56 
57  #if HOST_CLASS_HID
58  #include "class/hid_host.h"
59  #endif
60 
61  #if TUSB_CFG_HOST_MSC
62  #include "class/msc_host.h"
63  #endif
64 
65  #if TUSB_CFG_HOST_CDC
66  #include "class/cdc_host.h"
67  #endif
68 
69  #if TUSB_CFG_HOST_CUSTOM_CLASS
70  #include "class/custom_class.h"
71  #endif
72 
73 #endif
74 
75 //------------- DEVICE -------------//
76 #if MODE_DEVICE_SUPPORTED
77  #include "device/usbd.h"
78 
79  #if DEVICE_CLASS_HID
80  #include "class/hid_device.h"
81  #endif
82 
83  #if TUSB_CFG_DEVICE_CDC
84  #include "class/cdc_device.h"
85  #endif
86 
87  #if TUSB_CFG_DEVICE_MSC
88  #include "class/msc_device.h"
89  #endif
90 #endif
91 
92 
93 //--------------------------------------------------------------------+
94 // APPLICATION API
95 //--------------------------------------------------------------------+
103 tusb_error_t tusb_init(void);
104 
105 #if TUSB_CFG_OS == TUSB_OS_NONE
106 
124 void tusb_task_runner(void);
125 #endif
126 
129 #ifdef __cplusplus
130  }
131 #endif
132 
133 #endif /* _TUSB_H_ */
134 
void tusb_task_runner(void)
Run all tinyusb's internal tasks (e.g host task, device task).
Definition: tusb.c:84
tusb_error_t tusb_init(void)
Initialize the usb stack.
Definition: tusb.c:43
tusb_error_t
Error Code returned.
Definition: tusb_errors.h:100