From 99a27d0bd8555f4b380e07ff2b7334ab6ae32841 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Wed, 15 Jul 2015 16:15:46 +0200 Subject: rework HID-based libraries and add Due fallback --- libraries/HID/HID.cpp | 2 -- libraries/HID/HID.h | 2 ++ libraries/HID/keywords.txt | 21 +++++++++++++++++++++ libraries/HID/library.properties | 8 ++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 libraries/HID/keywords.txt create mode 100644 libraries/HID/library.properties 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 +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 -- cgit v1.2.3-18-g5258