softser.c
BOOL
softser_poll(uint8_t bauds) {
  int i = bauds;

  while(i--) {
    // SOFTSER_TMR -= SOFTSER_BRG;            // load corrected baud value

    SOFTSER_TMR = (256 - SOFTSER_BRG);
    while(SOFTSER_TMR & (1 << 7)) {
      if(SOFTSER_INB())
        return 1;
    }
  }
  return 0;
}
// returns 1 when start bit received or 0 when timeout
//---------------------------------------------------------
returns 1 when start bit received or 0 when timeout
returns 1 when start bit received or 0 when timeout
BOOL
softser_poll(uint8_t bauds) {
  int i = bauds;
  while(i--) {
    SOFTSER_TMR = (256 - SOFTSER_BRG);
    while(SOFTSER_TMR & (1 << 7)) {
      if(SOFTSER_INB())
        return 1;
    }
  }
  return 0;
}
BOOL softser_poll ( uint8_t bauds ) { int i = bauds ; while ( i -- ) { SOFTSER_TMR = ( 256 - SOFTSER_BRG ) ; while ( SOFTSER_TMR & ( 1 << 7 ) ) { if ( SOFTSER_INB ( ) ) return 1 ; } } return 0 ; }
returns 1 when start bit received or 0 when timeout
returns 1 when start bit received or 0 when timeout
// SOFTSER_TMR -= SOFTSER_BRG;            // load corrected baud value