2013-10-24 10:32:54 +02:00
/** \addtogroup group_configuration
* @{ */
2014-03-17 10:46:11 +01:00
//--------------------------------------------------------------------+
// COMMON CONFIGURATION
//--------------------------------------------------------------------+
/// \brief tell the stack which mode (host/device/otg) the usb controller0 will be operated on. Possible value is
2014-03-25 08:58:43 +01:00
/// from \ref group_mode. Note the hardware usb controller must support the selected mode.
2014-03-17 10:46:11 +01:00
#define TUSB_CFG_CONTROLLER_0_MODE
/** USB controller in MCU often has limited access to specific RAM section. The Stack will use this macro to place internal variables
2013-10-24 10:32:54 +02:00
into the USB RAM section as follows. if your mcu's usb controller has no such limit, define TUSB_CFG_ATTR_USBRAM as empty macro.
@code
2014-03-17 10:46:11 +01:00
TUSB_CFG_ATTR_USBRAM uint8_t usb_xfer_buffer[10];
2013-10-24 10:32:54 +02:00
@endcode
*/
#define TUSB_CFG_ATTR_USBRAM
2014-03-25 07:00:37 +01:00
#define TUSB_CFG_MCU ///< Select one of the supported MCU, the value must be from \ref group_mcu
#define TUSB_CFG_OS ///< Select one of the supported RTOS, the value must be from \ref group_supported_os.
2014-03-17 10:46:11 +01:00
#define TUSB_CFG_OS_TASK_PRIO ///< If \ref TUSB_CFG_OS is configured to use a real RTOS (other than TUSB_OS_NONE). This determines the priority of the usb stack task.
2014-03-23 13:00:54 +01:00
#define TUSB_CFG_TICKS_HZ ///< The rate ticks in hert. This is used in conjunction with \ref tusb_tick_get to calculate timing.
2013-10-24 10:32:54 +02:00
2014-03-17 10:46:11 +01:00
//--------------------------------------------------------------------+
// HOST CONFIGURATION
//--------------------------------------------------------------------+
/** \defgroup TUSB_CFG_HOST Host Options
2013-10-24 10:32:54 +02:00
* @{ */
2014-03-17 10:46:11 +01: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 */
2013-10-24 10:32:54 +02:00
#define TUSB_CFG_HOST_DEVICE_MAX
2014-03-17 10:46:11 +01:00
/// \brief Buffer size used for getting device configuration descriptor. You may want to increase this from default (256)
2013-10-24 10:32:54 +02:00
/// to support lengthy composite device especially with Audio or Video class
#define TUSB_CFG_HOST_ENUM_BUFFER_SIZE
2014-03-17 10:46:11 +01:00
/** \defgroup config_host_class Class Driver
* \brief For each Class Driver a value of 1 means enable, value of 0 mean disable
* @{ */
2013-10-24 10:32:54 +02:00
#define TUSB_CFG_HOST_HUB ///< Enable Hub Class
#define TUSB_CFG_HOST_HID_KEYBOARD ///< Enable HID Class for Keyboard
#define TUSB_CFG_HOST_HID_MOUSE ///< Enable HID Class for Mouse
#define TUSB_CFG_HOST_HID_GENERIC ///< Enable HID Class for Generic (not supported yet)
#define TUSB_CFG_HOST_MSC ///< Enable Mass Storage Class (SCSI subclass only)
#define TUSB_CFG_HOST_CDC ///< Enable Virtual Serial (Communication Device Class)
2014-03-17 10:46:11 +01:00
/** @} */
2013-10-24 10:32:54 +02:00
/** @} */ // group Host
2014-03-17 10:46:11 +01:00
//--------------------------------------------------------------------+
// DEVICE CONFIGURATION
//--------------------------------------------------------------------+
/** \defgroup TUSB_CFG_DEVICE Device Options
* @{ */
2014-03-23 13:00:54 +01:00
#define TUSB_CFG_DEVICE_CONTROL_ENDOINT_SIZE ///< Max packet size of Cotnrol Endpoint, default is 64
2014-03-25 07:00:37 +01: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 ...
tusbd_descriptor_pointer_t tusbd_descriptor_pointers;
2014-03-17 10:46:11 +01:00
/** \defgroup config_device_class Class Driver
* \brief For each Class Driver a value of 1 means enable, value of 0 mean disable
* @{ */
#define TUSB_CFG_DEVICE_HID_KEYBOARD ///< Enable HID Class for Keyboard
#define TUSB_CFG_DEVICE_HID_MOUSE ///< Enable HID Class for Mouse
#define TUSB_CFG_DEVICE_HID_GENERIC ///< Enable HID Class for Generic (not supported yet)
#define TUSB_CFG_DEVICE_MSC ///< Enable Mass Storage Class (SCSI subclass only)
#define TUSB_CFG_DEVICE_CDC ///< Enable Virtual Serial (Communication Device Class)
/** @} */
2013-10-24 10:32:54 +02:00
2014-03-25 07:00:37 +01:00
/** @} */ // group Device
2013-10-24 10:32:54 +02:00
/** @} */