From ea29eb49af790d043d127272238f1a670a927a6e Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 3 Jul 2019 01:17:26 +0700 Subject: [PATCH] example clean up --- examples/device/cdc_msc_hid/src/tusb_config.h | 15 +++------------ .../device/cdc_msc_hid_freertos/src/tusb_config.h | 12 +++--------- .../device/hid_generic_inout/src/tusb_config.h | 4 +--- examples/device/midi_test/src/tusb_config.h | 2 +- examples/device/msc_dual_lun/src/tusb_config.h | 4 +--- 5 files changed, 9 insertions(+), 28 deletions(-) diff --git a/examples/device/cdc_msc_hid/src/tusb_config.h b/examples/device/cdc_msc_hid/src/tusb_config.h index 2c89a63b7..e55dc9d01 100644 --- a/examples/device/cdc_msc_hid/src/tusb_config.h +++ b/examples/device/cdc_msc_hid/src/tusb_config.h @@ -79,25 +79,16 @@ #define CFG_TUD_MIDI 0 #define CFG_TUD_CUSTOM_CLASS 0 -//------------- CDC -------------// - -// FIFO size of CDC TX and RX +// CDC FIFO size of TX and RX #define CFG_TUD_CDC_RX_BUFSIZE 64 #define CFG_TUD_CDC_TX_BUFSIZE 64 -//------------- MSC -------------// - -// Buffer size of Device Mass storage +// MSC Buffer size of Device Mass storage #define CFG_TUD_MSC_BUFSIZE 512 -//------------- HID -------------// - -// Should be sufficient to hold ID (if any) + Data +// HID buffer size Should be sufficient to hold ID (if any) + Data #define CFG_TUD_HID_BUFSIZE 16 -#define CFG_TUD_MIDI_RX_BUFSIZE 512 -#define CFG_TUD_MIDI_TX_BUFSIZE 512 - #ifdef __cplusplus } #endif diff --git a/examples/device/cdc_msc_hid_freertos/src/tusb_config.h b/examples/device/cdc_msc_hid_freertos/src/tusb_config.h index b4e18de92..76ec948e5 100644 --- a/examples/device/cdc_msc_hid_freertos/src/tusb_config.h +++ b/examples/device/cdc_msc_hid_freertos/src/tusb_config.h @@ -79,20 +79,14 @@ #define CFG_TUD_MIDI 0 #define CFG_TUD_CUSTOM_CLASS 0 -//------------- CDC -------------// - -// FIFO size of CDC TX and RX +// CDC FIFO size of TX and RX #define CFG_TUD_CDC_RX_BUFSIZE 64 #define CFG_TUD_CDC_TX_BUFSIZE 64 -//------------- MSC -------------// - -// Buffer size of Device Mass storage +// MSC Buffer size of Device Mass storage #define CFG_TUD_MSC_BUFSIZE 512 -//------------- HID -------------// - -// Should be sufficient to hold ID (if any) + Data +// HID buffer size Should be sufficient to hold ID (if any) + Data #define CFG_TUD_HID_BUFSIZE 16 #ifdef __cplusplus diff --git a/examples/device/hid_generic_inout/src/tusb_config.h b/examples/device/hid_generic_inout/src/tusb_config.h index dc7d98812..fb19d5169 100644 --- a/examples/device/hid_generic_inout/src/tusb_config.h +++ b/examples/device/hid_generic_inout/src/tusb_config.h @@ -78,9 +78,7 @@ #define CFG_TUD_MIDI 0 #define CFG_TUD_CUSTOM_CLASS 0 -//------------- HID -------------// - -// Should be sufficient to hold ID (if any) + Data +// HID buffer size Should be sufficient to hold ID (if any) + Data #define CFG_TUD_HID_BUFSIZE 64 #ifdef __cplusplus diff --git a/examples/device/midi_test/src/tusb_config.h b/examples/device/midi_test/src/tusb_config.h index 222c17417..6ea2f43db 100644 --- a/examples/device/midi_test/src/tusb_config.h +++ b/examples/device/midi_test/src/tusb_config.h @@ -78,7 +78,7 @@ #define CFG_TUD_MIDI 1 #define CFG_TUD_CUSTOM_CLASS 0 -//------------- MIDI -------------// +// MIDI FIFO size of TX and RX #define CFG_TUD_MIDI_RX_BUFSIZE 64 #define CFG_TUD_MIDI_TX_BUFSIZE 64 diff --git a/examples/device/msc_dual_lun/src/tusb_config.h b/examples/device/msc_dual_lun/src/tusb_config.h index ae57b4d60..db9974ea3 100644 --- a/examples/device/msc_dual_lun/src/tusb_config.h +++ b/examples/device/msc_dual_lun/src/tusb_config.h @@ -78,9 +78,7 @@ #define CFG_TUD_MIDI 0 #define CFG_TUD_CUSTOM_CLASS 0 -//------------- MSC -------------// - -// Buffer size of Device Mass storage +// MSC Buffer size of Device Mass storage #define CFG_TUD_MSC_BUFSIZE 512 #ifdef __cplusplus