diff options
| author | tmk <nobody@nowhere> | 2013-06-21 16:34:39 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-06-22 02:32:45 +0900 |
| commit | 42c962412b92a0ab4bd26c95f25867c645064bd6 (patch) | |
| tree | 936222d372c4b36bc2fcae87bc9c7df0b08d41c6 /protocol | |
| parent | 1f7461578dd489898389b7e9c488f7df9ac75399 (diff) | |
| download | qmk_firmware-42c962412b92a0ab4bd26c95f25867c645064bd6.tar.gz qmk_firmware-42c962412b92a0ab4bd26c95f25867c645064bd6.zip | |
Add LED support to x68k
Diffstat (limited to 'protocol')
| -rw-r--r-- | protocol/x68k.c | 6 | ||||
| -rw-r--r-- | protocol/x68k.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/protocol/x68k.c b/protocol/x68k.c index d17af51cc..b54e3d9a8 100644 --- a/protocol/x68k.c +++ b/protocol/x68k.c | |||
| @@ -64,6 +64,12 @@ uint8_t x68k_recv(void) | |||
| 64 | return data; | 64 | return data; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void x68k_send(uint8_t d) | ||
| 68 | { | ||
| 69 | while (!(UCSR1A&(1<<UDRE1))); | ||
| 70 | UDR1 = d; | ||
| 71 | } | ||
| 72 | |||
| 67 | // USART RX complete interrupt | 73 | // USART RX complete interrupt |
| 68 | ISR(KBD_RX_VECT) | 74 | ISR(KBD_RX_VECT) |
| 69 | { | 75 | { |
diff --git a/protocol/x68k.h b/protocol/x68k.h index 2cfda63a7..0d9c7de80 100644 --- a/protocol/x68k.h +++ b/protocol/x68k.h | |||
| @@ -41,6 +41,7 @@ POSSIBILITY OF SUCH DAMAGE. | |||
| 41 | /* host role */ | 41 | /* host role */ |
| 42 | void x68k_init(void); | 42 | void x68k_init(void); |
| 43 | uint8_t x68k_recv(void); | 43 | uint8_t x68k_recv(void); |
| 44 | void x68k_send(uint8_t d); | ||
| 44 | 45 | ||
| 45 | /* device role */ | 46 | /* device role */ |
| 46 | 47 | ||
