summaryrefslogtreecommitdiffstats
path: root/protocol/usb_hid/leonardo_led.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-08-25 15:49:08 +0900
committertmk <nobody@nowhere>2012-08-28 21:56:15 +0900
commitc5060ea81942b0e3f8577536ff78402a19abe3d3 (patch)
treebcdd4cd269be3064982014b0afdc0aea628d7048 /protocol/usb_hid/leonardo_led.h
parent9382bf2f765cfbb8f7a9a48157391cac2bb71780 (diff)
test build of 'Host shield' in minimal env.
Diffstat (limited to 'protocol/usb_hid/leonardo_led.h')
-rw-r--r--protocol/usb_hid/leonardo_led.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocol/usb_hid/leonardo_led.h b/protocol/usb_hid/leonardo_led.h
new file mode 100644
index 0000000000..6f67a88f5b
--- /dev/null
+++ b/protocol/usb_hid/leonardo_led.h
@@ -0,0 +1,10 @@
+#ifndef LEONARDO_LED_H
+#define LEONARDO_LED_H
+
+// Leonardo "TX" LED for debug
+#define LED_TX_INIT (DDRD |= (1<<5))
+#define LED_TX_ON (PORTD &= ~(1<<5))
+#define LED_TX_OFF (PORTD |= (1<<5))
+#define LED_TX_TOGGLE (PORTD ^= (1<<5))
+
+#endif