aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2015-07-15 16:15:46 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-07-16 13:13:53 +0200
commit99a27d0bd8555f4b380e07ff2b7334ab6ae32841 (patch)
treeac2348d7cf1808e86bedc1c69df445fcada5757c
parent3d61f6e37ef3084627cdeb2b81e1545fe7ef0271 (diff)
rework HID-based libraries and add Due fallback
-rw-r--r--libraries/HID/HID.cpp2
-rw-r--r--libraries/HID/HID.h2
-rw-r--r--libraries/HID/keywords.txt21
-rw-r--r--libraries/HID/library.properties8
4 files changed, 31 insertions, 2 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp
index ba379c2..0d2133e 100644
--- a/libraries/HID/HID.cpp
+++ b/libraries/HID/HID.cpp
@@ -21,8 +21,6 @@
#if defined(USBCON)
-//#define RAWHID_ENABLED
-
HID_ HID;
static u8 HID_ENDPOINT_INT;
diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h
index c7608eb..89832a9 100644
--- a/libraries/HID/HID.h
+++ b/libraries/HID/HID.h
@@ -27,6 +27,8 @@
#if defined(USBCON)
+#define _USING_HID
+
//================================================================================
//================================================================================
// HID 'Driver'
diff --git a/libraries/HID/keywords.txt b/libraries/HID/keywords.txt
new file mode 100644
index 0000000..32a9ba5
--- /dev/null
+++ b/libraries/HID/keywords.txt
@@ -0,0 +1,21 @@
+#######################################
+# Syntax Coloring Map HID
+#######################################
+
+#######################################
+# Datatypes (KEYWORD1)
+#######################################
+
+HID KEYWORD1
+
+#######################################
+# Methods and Functions (KEYWORD2)
+#######################################
+begin KEYWORD2
+SendReport KEYWORD2
+AppendDescriptor KEYWORD2
+
+#######################################
+# Constants (LITERAL1)
+#######################################
+HID_TX LITERAL1 \ No newline at end of file
diff --git a/libraries/HID/library.properties b/libraries/HID/library.properties
new file mode 100644
index 0000000..20a1e7f
--- /dev/null
+++ b/libraries/HID/library.properties
@@ -0,0 +1,8 @@
+name=HID
+version=1.0
+author=Arduino
+maintainer=Arduino <info@arduino.cc>
+sentence=Module for PluggableUSB infrastructure. Exposes an API for devices like Keyboards, Mice and Gamepads
+paragraph=
+url=http://www.arduino.cc/en/Reference/HID
+architectures=avr \ No newline at end of file