X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fcomm.c;h=c3743476efa6ec731b46e1949296b632af6ff783;hb=c1fd53d73bce8779c822e3ed74de94f40714f9ca;hp=ad0a11ab67021fb99b1719dc7ee09f15d872ebcb;hpb=293827a53b325c2faffddcba380b6f0c19da802a;p=uccvend-snackrom.git diff --git a/ROM2/comm.c b/ROM2/comm.c index ad0a11a..c374347 100644 --- a/ROM2/comm.c +++ b/ROM2/comm.c @@ -40,7 +40,7 @@ u8 uart_init() { _uart_regs[UART_INT_ENABLE] = IE_RECEIVER_READY | IE_TRANSMITTER_READY | IE_LINE_STATUS_CHANGE; - /* Use the FIFO and empty them */ + /* Enable the FIFO and empty them */ _uart_regs[UART_FIFO_CTL] = FIFO_ENABLE | FIFO_RX_CLEAR | FIFO_TX_CLEAR | FIFO_LVL_1; @@ -148,9 +148,6 @@ void send_ack() { tx_buffer[0] = '!'; tx_buffer[1] = '\n'; tx_buffer[2] = 0; - lock(); - tx_int(); - unlock(); send_packet(); } @@ -159,9 +156,6 @@ void send_nack() { tx_buffer[0] = '?'; tx_buffer[1] = '\n'; tx_buffer[2] = 0; - lock(); - tx_int(); - unlock(); send_packet(); }