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.h | |
| parent | 777f41a066315c2c0d9e5c98773363937a9c920d (diff) | |
add tusb_inited() API, check for inited() before running device/host task
Diffstat (limited to 'src/tusb.h')
| -rw-r--r-- | src/tusb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tusb.h b/src/tusb.h index fb20c5ff7..69c4d16d2 100644 --- a/src/tusb.h +++ b/src/tusb.h @@ -108,6 +108,9 @@ // Initialize device/host stack
bool tusb_init(void);
+// Check if stack is initialized
+bool tusb_inited(void);
+
// TODO
// bool tusb_teardown(void);
|
