diff options
| author | hathach <[email protected]> | 2013-01-26 01:37:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-26 01:37:15 +0700 |
| commit | 7edda37518f0b193009c832b4092c357d0d01e96 (patch) | |
| tree | c6952e1f97b6c89e37968364c5c0a2a88958b3bf /tests/test/support | |
| parent | fdc9a82e8c3dcce08613f0c0e1a773f0c39381e0 (diff) | |
add more test code for keyboard hid application API
refractor, restructure, rename several thing regarding host, keyboard etc ...
Diffstat (limited to 'tests/test/support')
| -rw-r--r-- | tests/test/support/tusb_config.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/tests/test/support/tusb_config.h b/tests/test/support/tusb_config.h index 04d29d849..c02f12d66 100644 --- a/tests/test/support/tusb_config.h +++ b/tests/test/support/tusb_config.h @@ -55,23 +55,36 @@ extern "C" { #endif +//--------------------------------------------------------------------+ +// HOST CONFIGURATION +//--------------------------------------------------------------------+ #define TUSB_CFG_HOST + +//------------- CORE/CONTROLLER -------------// #define TUSB_CFG_HOST_CONTROLLER_NUM 2 #define TUSB_CFG_HOST_DEVICE_MAX 2 #define TUSB_CFG_CONFIGURATION_MAX 2 -/// Enable Device Support +//------------- CLASS -------------// +#define TUSB_CFG_HOST_HID_KEYBOARD 1 +#define TUSB_CFG_HOST_HID_KEYBOARD_ENDPOINT_SIZE 64 + +//--------------------------------------------------------------------+ +// DEVICE CONFIGURATION +//--------------------------------------------------------------------+ //#define TUSB_CFG_DEVICE -/// Enable CDC Support -//#define TUSB_CFG_DEVICE_CDC +//------------- CORE/CONTROLLER -------------// -/// Enable HID Keyboard support +//------------- CLASS -------------// +//#define TUSB_CFG_DEVICE_CDC #define TUSB_CFG_DEVICE_HID_KEYBOARD - -/// Enable HID Mouse support //#define TUSB_CFG_DEVICE_HID_MOUSE +//--------------------------------------------------------------------+ +// COMMON CONFIGURATION +//--------------------------------------------------------------------+ + #define TUSB_CFG_DEBUG 3 #define TUSB_CFG_OS TUSB_OS_NONE @@ -83,7 +96,7 @@ #define TUSB_RAM_SECTION ".data.$RAM3" #endif - #define TUSB_ATTR_RAM_SECTION __attribute__ ((section(TUSB_RAM_SECTION))) + #define TUSB_CFG_ATTR_USBRAM __attribute__ ((section(TUSB_RAM_SECTION))) #endif |
