summaryrefslogtreecommitdiff
path: root/protocol/x68k.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-06-21 16:34:39 +0900
committertmk <nobody@nowhere>2013-06-22 02:32:45 +0900
commit42c962412b92a0ab4bd26c95f25867c645064bd6 (patch)
tree936222d372c4b36bc2fcae87bc9c7df0b08d41c6 /protocol/x68k.c
parent1f7461578dd489898389b7e9c488f7df9ac75399 (diff)
Add LED support to x68k
Diffstat (limited to 'protocol/x68k.c')
-rw-r--r--protocol/x68k.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocol/x68k.c b/protocol/x68k.c
index d17af51cc2..b54e3d9a89 100644
--- a/protocol/x68k.c
+++ b/protocol/x68k.c
@@ -64,6 +64,12 @@ uint8_t x68k_recv(void)
return data;
}
+void x68k_send(uint8_t d)
+{
+ while (!(UCSR1A&(1<<UDRE1)));
+ UDR1 = d;
+}
+
// USART RX complete interrupt
ISR(KBD_RX_VECT)
{