2014-03-31 16:34:23 +07:00
|
|
|
/** \addtogroup group_configuration
|
|
|
|
* @{ */
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------+
|
|
|
|
// COMMON CONFIGURATION
|
|
|
|
//--------------------------------------------------------------------+
|
|
|
|
|
|
|
|
/// \brief tell the stack which mode (host/device/otg) the usb controller0 will be operated on. Possible value is
|
|
|
|
/// from \ref group_mode. Note the hardware usb controller must support the selected mode.
|
2018-04-14 14:08:48 +07:00
|
|
|
#define CFG_TUSB_RHPORT0_MODE
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
/** USB controller in MCU often has limited access to specific RAM section. The Stack will use this macro to place internal variables
|
2018-11-22 17:21:07 +07:00
|
|
|
into the USB RAM section as follows. if your mcu's usb controller has no such limit, define CFG_TUSB_MEM_SECTION as empty macro.
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
@code
|
2018-11-22 17:21:07 +07:00
|
|
|
CFG_TUSB_MEM_SECTION uint8_t usb_xfer_buffer[10];
|
2014-03-31 16:34:23 +07:00
|
|
|
@endcode
|
|
|
|
*/
|
2018-11-22 17:21:07 +07:00
|
|
|
#define CFG_TUSB_MEM_SECTION
|
2014-03-31 16:34:23 +07:00
|
|
|
|
2018-04-10 14:31:11 +07:00
|
|
|
#define CFG_TUSB_MCU ///< Select one of the supported MCU, the value must be from \ref group_mcu
|
|
|
|
#define CFG_TUSB_OS ///< Select one of the supported RTOS, the value must be from \ref group_supported_os.
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------+
|
|
|
|
// HOST CONFIGURATION
|
|
|
|
//--------------------------------------------------------------------+
|
2018-04-10 14:31:11 +07:00
|
|
|
/** \defgroup CFG_TUSB_HOST Host Options
|
2014-03-31 16:34:23 +07:00
|
|
|
* @{ */
|
|
|
|
|
|
|
|
/** \brief Maximum number of device host stack can manage
|
|
|
|
* \n If hub class is not enabled, set this equal to number of controllers in host mode
|
|
|
|
* \n If hub class is enabled, make sure hub is also counted */
|
2018-04-10 14:31:11 +07:00
|
|
|
#define CFG_TUSB_HOST_DEVICE_MAX
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
/// \brief Buffer size used for getting device configuration descriptor. You may want to increase this from default (256)
|
|
|
|
/// to support lengthy composite device especially with Audio or Video class
|
2018-04-10 14:31:11 +07:00
|
|
|
#define CFG_TUSB_HOST_ENUM_BUFFER_SIZE
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
/** \defgroup config_host_class Class Driver
|
|
|
|
* \brief For each Class Driver a value of 1 means enable, value of 0 mean disable
|
|
|
|
* @{ */
|
2018-12-06 21:46:34 +07:00
|
|
|
#define CFG_TUH_HUB ///< Enable Hub Class
|
2018-12-07 14:57:58 +07:00
|
|
|
#define CFG_TUH_HID_KEYBOARD ///< Enable HID Class for Keyboard
|
|
|
|
#define CFG_TUH_HID_MOUSE ///< Enable HID Class for Mouse
|
2018-04-10 14:31:11 +07:00
|
|
|
#define CFG_TUSB_HOST_HID_GENERIC ///< Enable HID Class for Generic (not supported yet)
|
2018-12-06 22:24:31 +07:00
|
|
|
#define CFG_TUH_MSC ///< Enable Mass Storage Class (SCSI subclass only)
|
|
|
|
#define CFG_TUH_CDC ///< Enable Virtual Serial (Communication Device Class)
|
2014-03-31 16:34:23 +07:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/** @} */ // group Host
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------+
|
|
|
|
// DEVICE CONFIGURATION
|
|
|
|
//--------------------------------------------------------------------+
|
2018-04-10 14:31:11 +07:00
|
|
|
/** \defgroup CFG_TUSB_DEVICE Device Options
|
2014-03-31 16:34:23 +07:00
|
|
|
* @{ */
|
|
|
|
|
2018-04-12 13:23:52 +07:00
|
|
|
#define CFG_TUD_ENDOINT0_SIZE ///< Max packet size of Cotnrol Endpoint, default is 64
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
/// Application MUST define this variable and initialize its pointers's member to all required USB descriptors including
|
|
|
|
/// Device Descriptor, Configuration Descriptor, String Descriptors, HID Report Descriptors etc ...
|
2018-04-16 13:46:28 +07:00
|
|
|
tud_desc_init_t tusbd_descriptor_pointers;
|
2014-03-31 16:34:23 +07:00
|
|
|
|
|
|
|
/** \defgroup config_device_class Class Driver
|
|
|
|
* \brief For each Class Driver a value of 1 means enable, value of 0 mean disable
|
|
|
|
* @{ */
|
2018-04-12 13:23:52 +07:00
|
|
|
#define CFG_TUD_HID_KEYBOARD ///< Enable HID Class for Keyboard
|
|
|
|
#define CFG_TUD_HID_MOUSE ///< Enable HID Class for Mouse
|
|
|
|
#define CFG_TUD_HID_GENERIC ///< Enable HID Class for Generic (not supported yet)
|
|
|
|
#define CFG_TUD_MSC ///< Enable Mass Storage Class (SCSI subclass only)
|
|
|
|
#define CFG_TUD_CDC ///< Enable Virtual Serial (Communication Device Class)
|
2014-03-31 16:34:23 +07:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/** @} */ // group Device
|
|
|
|
|
|
|
|
/** @} */
|