Loading...
Searching...
No Matches
tinyusb.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 Gunar Schorcht
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef TINYUSB_H
20#define TINYUSB_H
21
22#include "periph_conf.h"
23#include "tinyusb_hw_defaults.h"
24
25#ifndef TINYUSB_THREAD_STACKSIZE_MAIN
27#define TINYUSB_THREAD_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
28#endif
29
30#ifndef TINYUSB_PRIORITY
32#define TINYUSB_PRIORITY (2)
33#endif
34
35#ifndef TINYUSB_TUD_RHPORT
37#define TINYUSB_TUD_RHPORT 0
38#endif
39
40#ifndef TINYUSB_TUH_RHPORT
42#define TINYUSB_TUH_RHPORT 0
43#endif
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49#if MODULE_TINYUSB_CLASS_NET_RNDIS
50#define SIZEOF_ETH_HDR 14
51#endif
52
60int tinyusb_setup(void);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* TINYUSB_H */
int tinyusb_setup(void)
Initialize the tinyUSB stack including used peripherals and start the tinyUSB thread.