2021-02-06 09:38:21 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-02-04 08:02:27 +00:00
|
|
|
/*
|
2021-02-06 09:38:21 +00:00
|
|
|
* Copyright (c) 2021 Álvaro Fernández Rojas <noltari@gmail.com>
|
2021-02-04 08:02:27 +00:00
|
|
|
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
|
|
|
|
* Copyright (c) 2020 Damien P. George
|
|
|
|
*/
|
|
|
|
|
2021-02-06 09:38:21 +00:00
|
|
|
#if !defined(_TUSB_CONFIG_H_)
|
|
|
|
#define _TUSB_CONFIG_H_
|
2021-02-04 08:02:27 +00:00
|
|
|
|
2021-02-06 09:38:21 +00:00
|
|
|
#include <tusb_option.h>
|
2021-02-04 08:02:27 +00:00
|
|
|
|
2021-02-06 09:38:21 +00:00
|
|
|
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE
|
2021-02-04 08:02:27 +00:00
|
|
|
|
2021-02-06 09:38:21 +00:00
|
|
|
#define CFG_TUD_CDC 2
|
2022-11-04 09:59:54 +00:00
|
|
|
#define CFG_TUD_CDC_RX_BUFSIZE 1024
|
|
|
|
#define CFG_TUD_CDC_TX_BUFSIZE 1024
|
2021-02-06 09:38:21 +00:00
|
|
|
|
2022-11-03 17:12:56 +00:00
|
|
|
void usbd_serial_init(void);
|
|
|
|
|
2021-02-06 09:38:21 +00:00
|
|
|
#endif /* _TUSB_CONFIG_H_ */
|