diff options
| author | hathach <[email protected]> | 2014-03-12 14:28:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-12 14:28:43 +0700 |
| commit | b6e4c0d34897a574b2f49074bb57dc91584da77c (patch) | |
| tree | 60dd49b309af2195cb978b1085e7eefb88562eb2 /demos/device/src | |
| parent | 9ba209cda074289bbbe51dc79b4231404c8089ba (diff) | |
a fix to IAR's incapability to force struct's member on specified alignment
Diffstat (limited to 'demos/device/src')
| -rw-r--r-- | demos/device/src/tusb_config.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/device/src/tusb_config.h b/demos/device/src/tusb_config.h index 77cc628a9..9059a5471 100644 --- a/demos/device/src/tusb_config.h +++ b/demos/device/src/tusb_config.h @@ -67,11 +67,11 @@ #define TUSB_CFG_DEVICE_FULLSPEED 1 // TODO refractor, remove
//------------- CLASS -------------//
-#define TUSB_CFG_DEVICE_HID_KEYBOARD 0
-#define TUSB_CFG_DEVICE_HID_MOUSE 0
+#define TUSB_CFG_DEVICE_HID_KEYBOARD 1
+#define TUSB_CFG_DEVICE_HID_MOUSE 1
#define TUSB_CFG_DEVICE_HID_GENERIC 0
-#define TUSB_CFG_DEVICE_MSC 1
-#define TUSB_CFG_DEVICE_CDC 0
+#define TUSB_CFG_DEVICE_MSC 0
+#define TUSB_CFG_DEVICE_CDC 1
//--------------------------------------------------------------------+
// COMMON CONFIGURATION
@@ -108,7 +108,7 @@ #error Please define USB RAM section
#endif
-#elif __ICCARM__ // compiled with IAR
+#elif defined __ICCARM__ // compiled with IAR
#if (TUSB_CFG_MCU == MCU_LPC43XX)
#define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
|
