git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup and let gcc optimise the cases where row == 0 and row != 0
[uccvend-snackrom.git]
/
ROM2
/
comm.c
diff --git
a/ROM2/comm.c
b/ROM2/comm.c
index
ad0a11a
..
c374347
100644
(file)
--- 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;
_uart_regs[UART_INT_ENABLE] =
IE_RECEIVER_READY | IE_TRANSMITTER_READY | IE_LINE_STATUS_CHANGE;
- /*
Us
e the FIFO and empty them */
+ /*
Enabl
e the FIFO and empty them */
_uart_regs[UART_FIFO_CTL] =
FIFO_ENABLE | FIFO_RX_CLEAR | FIFO_TX_CLEAR | FIFO_LVL_1;
_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;
tx_buffer[0] = '!';
tx_buffer[1] = '\n';
tx_buffer[2] = 0;
- lock();
- tx_int();
- unlock();
send_packet();
}
send_packet();
}
@@
-159,9
+156,6
@@
void send_nack() {
tx_buffer[0] = '?';
tx_buffer[1] = '\n';
tx_buffer[2] = 0;
tx_buffer[0] = '?';
tx_buffer[1] = '\n';
tx_buffer[2] = 0;
- lock();
- tx_int();
- unlock();
send_packet();
}
send_packet();
}
UCC
git Repository :: git.ucc.asn.au