Don't use the U number notation and macro parentheses unless necessary.

This commit is contained in:
László Monda
2016-03-03 18:27:39 +01:00
parent 09f25e6139
commit 55c063c69a
15 changed files with 100 additions and 106 deletions
+12 -12
View File
@@ -2,39 +2,39 @@
#define __USB_DEVICE_CONFIG_H__
/*! @brief KHCI instance count */
#define USB_DEVICE_CONFIG_KHCI (1U)
#define USB_DEVICE_CONFIG_KHCI 1
/*! @brief Device instance count, the sum of KHCI and EHCI instance counts*/
#define USB_DEVICE_CONFIG_NUM (1U)
#define USB_DEVICE_CONFIG_NUM 1
/*! @brief HID instance count */
#define USB_DEVICE_CONFIG_HID (3U)
#define USB_DEVICE_CONFIG_HID 3
/*! @brief Whether device is self power. 1U supported, 0U not supported */
#define USB_DEVICE_CONFIG_SELF_POWER (1U)
#define USB_DEVICE_CONFIG_SELF_POWER 1
/*! @brief Whether device remote wakeup supported. 1U supported, 0U not supported */
#define USB_DEVICE_CONFIG_REMOTE_WAKEUP (0U)
#define USB_DEVICE_CONFIG_REMOTE_WAKEUP 0
/*! @brief How many endpoints are supported in the stack. */
#define USB_DEVICE_CONFIG_ENDPOINTS (6U)
#define USB_DEVICE_CONFIG_ENDPOINTS 6
/*! @brief The MAX buffer length for the KHCI DMA workaround.*/
#define USB_DEVICE_CONFIG_KHCI_DMA_ALIGN_BUFFER_LENGTH (64U)
#define USB_DEVICE_CONFIG_KHCI_DMA_ALIGN_BUFFER_LENGTH 64
/*! @brief Whether handle the USB KHCI bus error. */
#define USB_DEVICE_CONFIG_KHCI_ERROR_HANDLING (0U)
#define USB_DEVICE_CONFIG_KHCI_ERROR_HANDLING 0
/*! @brief Whether the keep alive feature enabled. */
#define USB_DEVICE_CONFIG_KEEP_ALIVE_MODE (0U)
#define USB_DEVICE_CONFIG_KEEP_ALIVE_MODE 0
/*! @brief Whether the transfer buffer is cache-enabled or not. */
#define USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE (0U)
#define USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE 0
/*! @brief Whether the low power mode is enabled or not. */
#define USB_DEVICE_CONFIG_LOW_POWER_MODE (0U)
#define USB_DEVICE_CONFIG_LOW_POWER_MODE 0
/*! @brief Whether the device detached feature is enabled or not. */
#define USB_DEVICE_CONFIG_DETACH_ENABLE (0U)
#define USB_DEVICE_CONFIG_DETACH_ENABLE 0
#endif