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

return data; return data;
} }


void x68k_send(uint8_t d)
{
while (!(UCSR1A&(1<<UDRE1)));
UDR1 = d;
}

// USART RX complete interrupt // USART RX complete interrupt
ISR(KBD_RX_VECT) ISR(KBD_RX_VECT)
{ {

+ 1
- 0
protocol/x68k.h View File

/* host role */ /* host role */
void x68k_init(void); void x68k_init(void);
uint8_t x68k_recv(void); uint8_t x68k_recv(void);
void x68k_send(uint8_t d);


/* device role */ /* device role */