1
0

Add LED support to x68k

This commit is contained in:
tmk 2013-06-21 16:34:39 +09:00
parent d99be8edc4
commit 94b23decf7
2 changed files with 7 additions and 0 deletions

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

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 */