softser.c
void
softser_init(void) {
  // T0CS = 0;
  // PSA = 0;
  //  PS0 = 0; PS1 = 0; PS2 = 0; // prescaler 1:2
  //  PS0 = 0;  PS1 = 1; PS2 = 0; // prescaler 1:4
  // T0PS = SOFTSER_PS;

#if SOFTSER_TIMER == 0
  timer0_init(SOFTSER_PS);
#elif SOFTSER_TIMER == 1
  timer1_init(SOFTSER_PS);
#elif SOFTSER_TIMER == 2
  timer2_init(SOFTSER_PS);
#else
#pragma warning No timer setup for soft serial !
#endif

  SOFTSER_IN_TRIS = INPUT;
  SOFTSER_OUT_TRIS = OUTPUT;
  SOFTSER_OUTB(LOW);
}
// holds the serial byte that was received
holds the serial byte that was received
holds the serial byte that was received
void
softser_init(void) {
#if SOFTSER_TIMER == 0
  timer0_init(SOFTSER_PS);
#elif SOFTSER_TIMER == 1
  timer1_init(SOFTSER_PS);
#elif SOFTSER_TIMER == 2
  timer2_init(SOFTSER_PS);
#else
#pragma warning No timer setup for soft serial !
#endif
  SOFTSER_IN_TRIS = INPUT;
  SOFTSER_OUT_TRIS = OUTPUT;
  SOFTSER_OUTB(LOW);
}
void softser_init ( void ) { #if SOFTSER_TIMER == 0 timer0_init ( SOFTSER_PS ) ; #elif SOFTSER_TIMER == 1 timer1_init ( SOFTSER_PS ) ; #elif SOFTSER_TIMER == 2 timer2_init ( SOFTSER_PS ) ; #else #pragma  warning No timer setup for soft serial ! #endif SOFTSER_IN_TRIS = INPUT ; SOFTSER_OUT_TRIS = OUTPUT ; SOFTSER_OUTB ( LOW ) ; }
holds the serial byte that was received
holds the serial byte that was received
// T0CS = 0; // PSA = 0; //  PS0 = 0; PS1 = 0; PS2 = 0; // prescaler 1:2 //  PS0 = 0;  PS1 = 1; PS2 = 0; // prescaler 1:4 // T0PS = SOFTSER_PS;