summaryrefslogtreecommitdiff
path: root/led.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-09 00:03:58 +0900
committertmk <nobody@nowhere>2011-02-22 03:08:59 +0900
commitacc974c64b1e17e6807133fdc50de5bb34aedda5 (patch)
tree7af7511a56d680a4d93b535c52891a8ffc15dd04 /led.h
parent5552b5afeaa9ce7432f9ded3586984253f292d80 (diff)
added protocol stack: pjrc, vusb
Diffstat (limited to 'led.h')
-rw-r--r--led.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/led.h b/led.h
new file mode 100644
index 0000000000..37bab42554
--- /dev/null
+++ b/led.h
@@ -0,0 +1,16 @@
+#ifndef LED_H
+#define LED_H
+#include "stdint.h"
+
+
+/* keyboard LEDs */
+#define USB_LED_NUM_LOCK 0
+#define USB_LED_CAPS_LOCK 1
+#define USB_LED_SCROLL_LOCK 2
+#define USB_LED_COMPOSE 3
+#define USB_LED_KANA 4
+
+
+void led_set(uint8_t usb_led);
+
+#endif