From 80469b4bfaf49a407d8d6b5bf3c2eb0d1c9870e6 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Fri, 16 May 2014 17:12:37 +0800 Subject: Comments update --- rs422lib/rsbus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rs422lib/rsbus.c') diff --git a/rs422lib/rsbus.c b/rs422lib/rsbus.c index 2b548a6..c69a664 100644 --- a/rs422lib/rsbus.c +++ b/rs422lib/rsbus.c @@ -28,6 +28,7 @@ volatile unsigned char tx_pos=255; volatile unsigned char mac_stat[4]={0,0,0,0}; +// UART transmit routine #pragma vector=USCIAB0TX_VECTOR __interrupt void USCI0TX_ISR(void) { @@ -136,8 +137,6 @@ __interrupt void rsbus_rx(void) } } -// Send something to the rs422 bus -// Length must not exceeds RS_MAX void rsbus_w(int addr,unsigned char* buf,unsigned int len) { while (tx_pos < tx_len) // This shouldn't happen -- cgit v1.2.3-70-g09d2