Browse Source

Add LED support to x68k

core
tmk 11 years ago
parent
commit
94b23decf7
2 changed files with 7 additions and 0 deletions
  1. 6
    0
      protocol/x68k.c
  2. 1
    0
      protocol/x68k.h

+ 6
- 0
protocol/x68k.c View File

@@ -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)
{

+ 1
- 0
protocol/x68k.h View File

@@ -41,6 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
/* host role */
void x68k_init(void);
uint8_t x68k_recv(void);
void x68k_send(uint8_t d);

/* device role */