#ifndef _USB_DEVICE_CONFIG_H_ #define _USB_DEVICE_CONFIG_H_ /*! @brief KHCI instance count */ #define USB_DEVICE_CONFIG_KHCI (1U) /*! @brief Device instance count, the sum of KHCI and EHCI instance counts*/ #define USB_DEVICE_CONFIG_NUM (1U) /*! @brief HID instance count */ #define USB_DEVICE_CONFIG_HID (2U) /*! @brief Whether device is self power. 1U supported, 0U not supported */ #define USB_DEVICE_CONFIG_SELF_POWER (1U) /*! @brief Whether device remote wakeup supported. 1U supported, 0U not supported */ #define USB_DEVICE_CONFIG_REMOTE_WAKEUP (0U) /*! @brief How many endpoints are supported in the stack. */ #define USB_DEVICE_CONFIG_ENDPOINTS (4U) /*! @brief How many the notification message are supported when the device task enabled. */ #define USB_DEVICE_CONFIG_MAX_MESSAGES (8U) /*! @brief The MAX buffer length for the KHCI DMA workaround.*/ #define USB_DEVICE_CONFIG_KHCI_DMA_ALIGN_BUFFER_LENGTH (64U) /*! @brief Whether handle the USB KHCI bus error. */ #define USB_DEVICE_CONFIG_KHCI_ERROR_HANDLING (0U) /*! @brief Whether the keep alive feature enabled. */ #define USB_DEVICE_CONFIG_KEEP_ALIVE_MODE (0U) /*! @brief Whether the transfer buffer is cache-enabled or not. */ #define USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE (0U) /*! @brief Whether the low power mode is enabled or not. */ #define USB_DEVICE_CONFIG_LOW_POWER_MODE (0U) /*! @brief Whether the device detached feature is enabled or not. */ #define USB_DEVICE_CONFIG_DETACH_ENABLE (0U) #endif