Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
tinyusb.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2022 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "periph_conf.h"
19
#include "tinyusb_hw_defaults.h"
20
21
#ifndef TINYUSB_THREAD_STACKSIZE_MAIN
23
#define TINYUSB_THREAD_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
24
#endif
25
26
#ifndef TINYUSB_PRIORITY
28
#define TINYUSB_PRIORITY (2)
29
#endif
30
31
#ifndef TINYUSB_TUD_RHPORT
33
#define TINYUSB_TUD_RHPORT 0
34
#endif
35
36
#ifndef TINYUSB_TUH_RHPORT
38
#define TINYUSB_TUH_RHPORT 0
39
#endif
40
41
#ifdef __cplusplus
42
extern
"C"
{
43
#endif
44
45
#if MODULE_TINYUSB_CLASS_NET_RNDIS
46
#define SIZEOF_ETH_HDR 14
47
#endif
48
56
int
tinyusb_setup
(
void
);
57
58
#ifdef __cplusplus
59
}
60
#endif
61
tinyusb_setup
int tinyusb_setup(void)
Initialize the tinyUSB stack including used peripherals and start the tinyUSB thread.
Generated on Sat Oct 3 2026 14:10:59 by
1.13.2