add tusb_inited() API, check for inited() before running device/host task

This commit is contained in:
hathach
2019-01-29 19:05:07 +07:00
parent 777f41a066
commit e4e8413acc
4 changed files with 14 additions and 0 deletions

View File

@@ -68,6 +68,11 @@ bool tusb_init(void)
return TUSB_ERROR_NONE;
}
bool tusb_inited(void)
{
return _initialized;
}
/*------------------------------------------------------------------*/
/* Debug
*------------------------------------------------------------------*/