summaryrefslogtreecommitdiff
path: root/demos/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-27 13:50:40 +0700
committerhathach <[email protected]>2013-01-27 13:50:40 +0700
commit535f33002670dc0ca20aa73d7c025faea15b88d0 (patch)
treed043b0dcdc573d011e9dad06882720190ba74a3c /demos/host
parentf613c32422a9b1815785d38427d3096a97bd3457 (diff)
update license year from 2012 to 2013
Diffstat (limited to 'demos/host')
-rw-r--r--demos/host/.cproject2
-rw-r--r--demos/host/tusb_config.h30
2 files changed, 22 insertions, 10 deletions
diff --git a/demos/host/.cproject b/demos/host/.cproject
index 6d8f8efb2..b9eebffc8 100644
--- a/demos/host/.cproject
+++ b/demos/host/.cproject
@@ -429,6 +429,7 @@
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+ <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cconfiguration>
<cconfiguration id="com.crt.advproject.config.exe.debug.1239969983.636406670">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.crt.advproject.config.exe.debug.1239969983.636406670" moduleId="org.eclipse.cdt.core.settings" name="Board EA4357">
@@ -856,6 +857,7 @@
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+ <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
diff --git a/demos/host/tusb_config.h b/demos/host/tusb_config.h
index e30751423..846492670 100644
--- a/demos/host/tusb_config.h
+++ b/demos/host/tusb_config.h
@@ -7,7 +7,7 @@
/*
* Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
@@ -55,26 +55,36 @@
extern "C" {
#endif
+//--------------------------------------------------------------------+
+// HOST CONFIGURATION
+//--------------------------------------------------------------------+
#define TUSB_CFG_HOST
+//------------- CORE/CONTROLLER -------------//
#define TUSB_CFG_HOST_CONTROLLER_NUM 1
-#define TUSB_CFG_HOST_DEVICE_MAX 1
-#define TUSB_CFG_CONFIGURATION_MAX 1
+#define TUSB_CFG_HOST_DEVICE_MAX 1
+#define TUSB_CFG_CONFIGURATION_MAX 1
-#define TUSB_CFG_HOST_HID_KEYBOARD
+//------------- CLASS -------------//
+#define TUSB_CFG_HOST_HID_KEYBOARD 1
+#define TUSB_CFG_HOST_HID_KEYBOARD_ENDPOINT_SIZE 64
-/// Enable Device Support
+//--------------------------------------------------------------------+
+// 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