remove deprecated tusb_task, clean up tusb compiler
This commit is contained in:
14
src/tusb.h
14
src/tusb.h
@@ -101,20 +101,6 @@ bool tusb_inited(void);
|
||||
// TODO
|
||||
// bool tusb_teardown(void);
|
||||
|
||||
|
||||
// backward compatible only. TODO remove later
|
||||
ATTR_DEPRECATED("Please use either tud_task() or tuh_task()")
|
||||
static inline void tusb_task(void)
|
||||
{
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
tuh_task();
|
||||
#endif
|
||||
|
||||
#if TUSB_OPT_DEVICE_ENABLED
|
||||
tud_task();
|
||||
#endif
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user