summaryrefslogtreecommitdiff
path: root/keyboard/hhkb_rn42/rn42.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-07-14 15:20:10 +0900
committertmk <nobody@nowhere>2014-07-30 14:38:26 +0900
commit862f519e241b83113566eebde71841958b2d00b7 (patch)
tree4b44327cdb97014244c5ff357ddd2a3df9b53100 /keyboard/hhkb_rn42/rn42.h
parent01fa462e2c26c8dcd2db205faf3a3835b509ac95 (diff)
Add software UART and battery monitor
Diffstat (limited to 'keyboard/hhkb_rn42/rn42.h')
-rw-r--r--keyboard/hhkb_rn42/rn42.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboard/hhkb_rn42/rn42.h b/keyboard/hhkb_rn42/rn42.h
index 3e4c2fbe7d..a967a70d8a 100644
--- a/keyboard/hhkb_rn42/rn42.h
+++ b/keyboard/hhkb_rn42/rn42.h
@@ -3,6 +3,11 @@
#include <stdbool.h>
+// RN-42 CTS pin
+#define CTS_INIT() (DDRD |= (1<<5))
+#define CTS_HI() (PORTD |= (1<<5))
+#define CTS_LO() (PORTD &= ~(1<<5))
+
host_driver_t rn42_driver;
host_driver_t rn42_config_driver;