Make less use of linked files and folders for better long-term maintainability by moving the source files under the newly created src directory and only linking that directory to the workspace.

This commit is contained in:
László Monda
2016-09-26 08:45:59 +02:00
parent 3f7c911f33
commit 11401a6448
52 changed files with 15 additions and 211 deletions
+44
View File
@@ -0,0 +1,44 @@
#ifndef __USB_DEVICE_CONFIG_H__
#define __USB_DEVICE_CONFIG_H__
// KHCI instance count
#define USB_DEVICE_CONFIG_KHCI 1
// Device instance count, the sum of KHCI and EHCI instance counts
#define USB_DEVICE_CONFIG_NUM 1
// HID instance count
#define USB_KEYBOARD_INTERFACE_COUNT 1
#define USB_MOUSE_INTERFACE_COUNT 1
#define USB_GENERIC_HID_INTERFACE_COUNT 1
#define USB_DEVICE_CONFIG_HID \
(USB_KEYBOARD_INTERFACE_COUNT + USB_MOUSE_INTERFACE_COUNT + USB_GENERIC_HID_INTERFACE_COUNT)
// Whether the device is self-powered: 1 supported, 0 not supported
#define USB_DEVICE_CONFIG_SELF_POWER 1
// Whether device remote wakeup supported: 1 supported, 0 not supported
#define USB_DEVICE_CONFIG_REMOTE_WAKEUP 0
// How many endpoints are supported in the stack
#define USB_DEVICE_CONFIG_ENDPOINTS 5
// The maximum buffer length for the KHCI DMA workaround
#define USB_DEVICE_CONFIG_KHCI_DMA_ALIGN_BUFFER_LENGTH 64
// Whether handle the USB KHCI bus error
#define USB_DEVICE_CONFIG_KHCI_ERROR_HANDLING 0
// Whether the keep alive feature enabled
#define USB_DEVICE_CONFIG_KEEP_ALIVE_MODE 0
// Whether the transfer buffer is cache-enabled or not
#define USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE 0
// Whether the low power mode is enabled or not
#define USB_DEVICE_CONFIG_LOW_POWER_MODE 0
// Whether the device detached feature is enabled or not
#define USB_DEVICE_CONFIG_DETACH_ENABLE 0
#endif