mirror of
https://github.com/grymoire/i2c_puppet-Linux.git
synced 2024-12-28 14:28:21 +01:00
32 lines
639 B
C
32 lines
639 B
C
|
#pragma once
|
||
|
|
||
|
enum
|
||
|
{
|
||
|
USB_ITF_KEYBOARD = 0,
|
||
|
USB_ITF_MOUSE,
|
||
|
USB_ITF_CDC,
|
||
|
USB_ITF_CDC2,
|
||
|
USB_ITF_MAX,
|
||
|
};
|
||
|
|
||
|
#define BOARD_DEVICE_RHPORT_NUM 0
|
||
|
#define BOARD_DEVICE_RHPORT_SPEED OPT_MODE_FULL_SPEED
|
||
|
|
||
|
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | BOARD_DEVICE_RHPORT_SPEED)
|
||
|
|
||
|
#define CFG_TUSB_MEM_SECTION
|
||
|
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
|
||
|
|
||
|
#define CFG_TUD_ENDPOINT0_SIZE 64
|
||
|
|
||
|
#define CFG_TUD_HID 2
|
||
|
#define CFG_TUD_CDC 1
|
||
|
#define CFG_TUD_MSC 0
|
||
|
#define CFG_TUD_MIDI 0
|
||
|
#define CFG_TUD_VENDOR 0
|
||
|
|
||
|
#define CFG_TUD_HID_EP_BUFSIZE 8
|
||
|
|
||
|
#define CFG_TUD_CDC_RX_BUFSIZE 256
|
||
|
#define CFG_TUD_CDC_TX_BUFSIZE 256
|