diff options
| author | hathach <[email protected]> | 2019-01-29 19:05:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-01-29 19:05:07 +0700 |
| commit | e4e8413acc6b293b620cae762fd4ea45c5de1cd1 (patch) | |
| tree | 3ff0d6a9008f67ebb22310375d10ef12e8d5bc1a /src/tusb.c | |
| parent | 777f41a066315c2c0d9e5c98773363937a9c920d (diff) | |
add tusb_inited() API, check for inited() before running device/host task
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tusb.c b/src/tusb.c index ad2dcbfd3..566d74df7 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -68,6 +68,11 @@ bool tusb_init(void) return TUSB_ERROR_NONE;
}
+bool tusb_inited(void)
+{
+ return _initialized;
+}
+
/*------------------------------------------------------------------*/
/* Debug
*------------------------------------------------------------------*/
|
