diff options
| author | hathach <[email protected]> | 2013-05-23 13:22:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-23 13:22:46 +0700 |
| commit | 8cb7818bcc048a69b9e2b0a4607c8f75bc35c359 (patch) | |
| tree | 6307b044a94f013c7ec74b1462318484b30c1a76 /tinyusb/tusb.h | |
| parent | d7ae21203c1a7915c397157a9d231264ff0e66fc (diff) | |
- move CMSIS & driver lib for lpc13u to codebase bsp/lpc13xx
- change descriptor.c/h able to build device example
Diffstat (limited to 'tinyusb/tusb.h')
| -rw-r--r-- | tinyusb/tusb.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 7dcf06d12..f7c14d9f6 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -48,10 +48,14 @@ extern "C" { #endif +//--------------------------------------------------------------------+ +// INCLUDE +//--------------------------------------------------------------------+ #include "common/common.h" #include "hal/hal.h" #include "osal/osal.h" +//------------- HOST -------------// #if MODE_HOST_SUPPORTED #include "host/usbh.h" @@ -66,27 +70,38 @@ #endif +//------------- DEVICE -------------// #if MODE_DEVICE_SUPPORTED - #include "device/dcd.h" + #include "device/usbd.h" #if DEVICE_CLASS_HID #include "class/hid_device.h" #endif - #ifdef TUSB_CFG_DEVICE_CDC + #if TUSB_CFG_DEVICE_CDC #include "class/cdc.h" #endif #endif - - +//--------------------------------------------------------------------+ +// APPLICATION API +//--------------------------------------------------------------------+ tusb_error_t tusb_init(void); +// TODO merge with tick_tock #if TUSB_CFG_OS == TUSB_OS_NONE void tusb_task_runner(void); #endif +#if TUSB_CFG_OS == TUSB_OS_NONE && !defined(_TEST_) +static inline void tusb_tick_tock(void) ATTR_ALWAYS_INLINE; +static inline void tusb_tick_tock(void) +{ + osal_tick_tock(); +} +#endif + #ifdef __cplusplus } #endif |
