diff options
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
|