diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-05-16 17:12:37 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-05-16 17:12:37 +0800 |
commit | 80469b4bfaf49a407d8d6b5bf3c2eb0d1c9870e6 (patch) | |
tree | 12c312dc2c7a32a5e987d4603b6179b5fab6d391 /rs422lib/rsbus.c | |
parent | b038c3b87564e9f4acac0019b18fd6d20692ac38 (diff) | |
download | rsbus-80469b4bfaf49a407d8d6b5bf3c2eb0d1c9870e6.tar.gz rsbus-80469b4bfaf49a407d8d6b5bf3c2eb0d1c9870e6.tar.bz2 rsbus-80469b4bfaf49a407d8d6b5bf3c2eb0d1c9870e6.zip |
Comments update
Diffstat (limited to 'rs422lib/rsbus.c')
-rw-r--r-- | rs422lib/rsbus.c | 3 |
1 files changed, 1 insertions, 2 deletions
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
|