summaryrefslogtreecommitdiffstats
path: root/protocol/lufa/lufa.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-06-29 16:48:36 +0900
committertmk <nobody@nowhere>2012-06-29 16:48:36 +0900
commita112f3614e0e3204ce35dcdfbf2723c3382c4c35 (patch)
tree0a39562522cc87c3deed6dc369a1fce078355a55 /protocol/lufa/lufa.h
parentf2ebac101d367ee091f54b8d43b39a4d74f3b90e (diff)
confirm SetReport LED.
Diffstat (limited to 'protocol/lufa/lufa.h')
-rw-r--r--protocol/lufa/lufa.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/protocol/lufa/lufa.h b/protocol/lufa/lufa.h
index efb8c38378..71c279b0dc 100644
--- a/protocol/lufa/lufa.h
+++ b/protocol/lufa/lufa.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright 2012 Jun Wako <wakojun@gmail.com>
+ * This file is based on:
+ * LUFA-120219/Demos/Device/Lowlevel/KeyboardMouse
+ * LUFA-120219/Demos/Device/Lowlevel/GenericHID
+ */
+
/*
LUFA Library
Copyright (C) Dean Camera, 2012.
@@ -32,7 +39,6 @@
#ifndef _LUFA_H_
#define _LUFA_H_
- /* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/power.h>
@@ -42,4 +48,11 @@
#include <LUFA/Version.h>
#include <LUFA/Drivers/USB/USB.h>
+
+/* extra report structure */
+typedef struct {
+ uint8_t report_id;
+ uint16_t usage;
+} __attribute__ ((packed)) report_extra_t;
+
#endif