mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 21:41:09 +00:00
clean up
This commit is contained in:
parent
9fa5c8025f
commit
90fdae94f8
@ -77,17 +77,13 @@
|
|||||||
#define CFG_TUD_MIDI 0
|
#define CFG_TUD_MIDI 0
|
||||||
#define CFG_TUD_CUSTOM_CLASS 0
|
#define CFG_TUD_CUSTOM_CLASS 0
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- CDC -------------//
|
||||||
// CDC
|
|
||||||
//--------------------------------------------------------------------
|
|
||||||
|
|
||||||
// FIFO size of CDC TX and RX
|
// FIFO size of CDC TX and RX
|
||||||
#define CFG_TUD_CDC_RX_BUFSIZE 64
|
#define CFG_TUD_CDC_RX_BUFSIZE 64
|
||||||
#define CFG_TUD_CDC_TX_BUFSIZE 64
|
#define CFG_TUD_CDC_TX_BUFSIZE 64
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- MSC -------------//
|
||||||
// MSC
|
|
||||||
//--------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Buffer size of Device Mass storage
|
// Buffer size of Device Mass storage
|
||||||
#define CFG_TUD_MSC_BUFSIZE 512
|
#define CFG_TUD_MSC_BUFSIZE 512
|
||||||
@ -101,9 +97,10 @@
|
|||||||
// Product revision string included in Inquiry response, max 4 bytes
|
// Product revision string included in Inquiry response, max 4 bytes
|
||||||
#define CFG_TUD_MSC_PRODUCT_REV "1.0"
|
#define CFG_TUD_MSC_PRODUCT_REV "1.0"
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- HID -------------//
|
||||||
// HID
|
|
||||||
//--------------------------------------------------------------------
|
// Should be sufficient to hold ID (if any) + Data
|
||||||
|
#define CFG_TUD_HID_BUFSIZE 16
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -77,17 +77,13 @@
|
|||||||
#define CFG_TUD_MIDI 0
|
#define CFG_TUD_MIDI 0
|
||||||
#define CFG_TUD_CUSTOM_CLASS 0
|
#define CFG_TUD_CUSTOM_CLASS 0
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- CDC -------------//
|
||||||
// CDC
|
|
||||||
//--------------------------------------------------------------------
|
|
||||||
|
|
||||||
// FIFO size of CDC TX and RX
|
// FIFO size of CDC TX and RX
|
||||||
#define CFG_TUD_CDC_RX_BUFSIZE 64
|
#define CFG_TUD_CDC_RX_BUFSIZE 64
|
||||||
#define CFG_TUD_CDC_TX_BUFSIZE 64
|
#define CFG_TUD_CDC_TX_BUFSIZE 64
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- MSC -------------//
|
||||||
// MSC
|
|
||||||
//--------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Buffer size of Device Mass storage
|
// Buffer size of Device Mass storage
|
||||||
#define CFG_TUD_MSC_BUFSIZE 512
|
#define CFG_TUD_MSC_BUFSIZE 512
|
||||||
@ -101,9 +97,10 @@
|
|||||||
// Product revision string included in Inquiry response, max 4 bytes
|
// Product revision string included in Inquiry response, max 4 bytes
|
||||||
#define CFG_TUD_MSC_PRODUCT_REV "1.0"
|
#define CFG_TUD_MSC_PRODUCT_REV "1.0"
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- HID -------------//
|
||||||
// HID
|
|
||||||
//--------------------------------------------------------------------
|
// Should be sufficient to hold ID (if any) + Data
|
||||||
|
#define CFG_TUD_HID_BUFSIZE 16
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -76,9 +76,7 @@
|
|||||||
#define CFG_TUD_MIDI 0
|
#define CFG_TUD_MIDI 0
|
||||||
#define CFG_TUD_CUSTOM_CLASS 0
|
#define CFG_TUD_CUSTOM_CLASS 0
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//------------- MSC -------------//
|
||||||
// MSC
|
|
||||||
//--------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Buffer size of Device Mass storage
|
// Buffer size of Device Mass storage
|
||||||
#define CFG_TUD_MSC_BUFSIZE 512
|
#define CFG_TUD_MSC_BUFSIZE 512
|
||||||
|
@ -47,7 +47,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
uint8_t itf_num;
|
uint8_t itf_num;
|
||||||
uint8_t ep_in;
|
uint8_t ep_in;
|
||||||
uint8_t ep_out; // optional
|
uint8_t ep_out; // optional Out endpoint
|
||||||
uint8_t boot_protocol; // Boot mouse or keyboard
|
uint8_t boot_protocol; // Boot mouse or keyboard
|
||||||
bool boot_mode; // default = false (Report)
|
bool boot_mode; // default = false (Report)
|
||||||
uint8_t idle_rate; // up to application to handle idle rate
|
uint8_t idle_rate; // up to application to handle idle rate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user