aboutsummaryrefslogtreecommitdiff
path: root/libraries/HID/HID.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-10-01 12:50:18 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-10-02 11:59:23 +0200
commit2e328bae3b5fe55c8cbf7b6c9156a830273abab3 (patch)
tree7246555aae9acfca7a0bef0ab1264269b382bea1 /libraries/HID/HID.h
parent0b3244c5ec3ac0f55550193b3144f5beb31891b2 (diff)
[HID] Code cleanup (no semantic changes)
Diffstat (limited to 'libraries/HID/HID.h')
-rw-r--r--libraries/HID/HID.h35
1 files changed, 15 insertions, 20 deletions
diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h
index c6f9ab5..d31d9c5 100644
--- a/libraries/HID/HID.h
+++ b/libraries/HID/HID.h
@@ -1,23 +1,20 @@
/*
- HID.h
-
Copyright (c) 2015, Arduino LLC
Original code (pre-library): Copyright (c) 2011, Peter Barrett
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
+ Permission to use, copy, modify, and/or distribute this software for
+ any purpose with or without fee is hereby granted, provided that the
+ above copyright notice and this permission notice appear in all copies.
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ SOFTWARE.
+ */
#ifndef HID_h
#define HID_h
@@ -91,7 +88,7 @@ private:
uint8_t epType[1];
HIDDescriptorListNode* rootNode;
- uint16_t sizeof_hidReportDescriptor;
+ uint16_t descriptorSize;
uint8_t protocol;
uint8_t idle;
@@ -99,8 +96,6 @@ private:
#define D_HIDREPORT(length) { 9, 0x21, 0x01, 0x01, 0, 1, 0x22, lowByte(length), highByte(length) }
-#define WEAK __attribute__ ((weak))
-
-#endif
+#endif // USBCON
-#endif
+#endif // HID_h