Loading...
Searching...
No Matches
tinyusb.h File Reference

TinyUSB API. More...

Detailed Description

TinyUSB API.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file tinyusb.h.

#include "periph_conf.h"
#include "tinyusb_hw_defaults.h"
+ Include dependency graph for tinyusb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define TINYUSB_THREAD_STACKSIZE   (THREAD_STACKSIZE_DEFAULT)
 Stack size used for the tinyUSB thread.
 
#define TINYUSB_PRIORITY   (2)
 Priority used for the tinyUSB thread.
 
#define TINYUSB_TUD_RHPORT   0
 tinyUSB RHPort number used for the device stack, default value is 0
 
#define TINYUSB_TUH_RHPORT   0
 tinyUSB RHPort number used for the host stack, defaults value is 0
 
int tinyusb_setup (void)
 Initialize the tinyUSB stack including used peripherals and start the tinyUSB thread.
 

Macro Definition Documentation

◆ TINYUSB_PRIORITY

#define TINYUSB_PRIORITY   (2)

Priority used for the tinyUSB thread.

Definition at line 32 of file tinyusb.h.

◆ TINYUSB_THREAD_STACKSIZE

#define TINYUSB_THREAD_STACKSIZE   (THREAD_STACKSIZE_DEFAULT)

Stack size used for the tinyUSB thread.

Definition at line 27 of file tinyusb.h.

◆ TINYUSB_TUD_RHPORT

#define TINYUSB_TUD_RHPORT   0

tinyUSB RHPort number used for the device stack, default value is 0

Definition at line 37 of file tinyusb.h.

◆ TINYUSB_TUH_RHPORT

#define TINYUSB_TUH_RHPORT   0

tinyUSB RHPort number used for the host stack, defaults value is 0

Definition at line 42 of file tinyusb.h.

Function Documentation

◆ tinyusb_setup()

int tinyusb_setup ( void  )

Initialize the tinyUSB stack including used peripherals and start the tinyUSB thread.

Returns
0 on success
-ENODEV if peripherals couldn't be initialized
-EINVAL or -EOVERFLOW if the thread couldn't be created