diff options
| author | hathach <[email protected]> | 2014-04-17 10:33:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-17 10:33:59 +0700 |
| commit | ccc65e620aeba998b274caf48a3880f3dca8de50 (patch) | |
| tree | 1b56588ca472c08a9e7ec6cf47dda824d312bdc4 /tinyusb/tusb.h | |
| parent | 5c6f8750daec8468fbaca1b208b8e83a2b575375 (diff) | |
change default TUSB_CFG_DEBUG to 0
change meaning of TUSB_CFG_DEBUG
Diffstat (limited to 'tinyusb/tusb.h')
| -rw-r--r-- | tinyusb/tusb.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 606803ae0..f34749133 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -110,12 +110,14 @@ tusb_error_t tusb_init(void); @code
int main(void)
{
- // some init code
+ your_init_code();
tusb_init();
+
while(1) // the mainloop
{
- tusb_task_runner();
- // other code
+ your_application_code();
+
+ tusb_task_runner(); // handle tinyusb event, task etc ...
}
}
@endcode
|
