summaryrefslogtreecommitdiff
path: root/keyboard/hhkb_rn42/rn42.c
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.c
parent01fa462e2c26c8dcd2db205faf3a3835b509ac95 (diff)
Add software UART and battery monitor
Diffstat (limited to 'keyboard/hhkb_rn42/rn42.c')
-rw-r--r--keyboard/hhkb_rn42/rn42.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboard/hhkb_rn42/rn42.c b/keyboard/hhkb_rn42/rn42.c
index c25e193719..89ecb199ca 100644
--- a/keyboard/hhkb_rn42/rn42.c
+++ b/keyboard/hhkb_rn42/rn42.c
@@ -70,9 +70,11 @@ static uint8_t keyboard_leds(void) { return 0; }
static void send_keyboard(report_keyboard_t *report)
{
// wake from deep sleep
+/*
PORTD |= (1<<5); // high
wait_ms(5);
PORTD &= ~(1<<5); // low
+*/
serial_send(0xFD); // Raw report mode
serial_send(9); // length
@@ -90,9 +92,11 @@ static void send_keyboard(report_keyboard_t *report)
static void send_mouse(report_mouse_t *report)
{
// wake from deep sleep
+/*
PORTD |= (1<<5); // high
wait_ms(5);
PORTD &= ~(1<<5); // low
+*/
serial_send(0xFD); // Raw report mode
serial_send(5); // length