Non-Class driver API.
More...
Non-Class driver API.
Initialize the usb stack.
- Returns
- Error Code of the TUSB_ERROR enum
- Note
- Function will initialize the stack according to configuration in the configure file (tusb_config.h)
Definition at line 43 of file tusb.c.
void tusb_isr |
( |
uint8_t |
coreid | ) |
|
USB interrupt handler.
- Parameters
-
[in] | coreid | Controller ID where the interrupt happened |
- Note
- This function must be called by HAL layer or Application for the stack to manage USB events/transfers.
Definition at line 71 of file tusb.c.
void tusb_task_runner |
( |
void |
| ) |
|
Run all tinyusb's internal tasks (e.g host task, device task).
- Note
- This function is only required when using no RTOS (TUSB_CFG_OS == TUSB_OS_NONE). All the stack functions & callback are invoked within this function, so it should be called periodically within the mainloop
int main(void)
{
while(1)
{
}
}
Definition at line 84 of file tusb.c.