//------------------------------------------------------------------- void pbOscReceiver::threadedFunction() { while( isThreadRunning() != 0 ){ //Receive receive0(); } }
void interrupt timer0(void) { RC0 = 1; if (T0IF==1) { TMR0 = timer_ini; receive0(); receive2(); receive1(); if (sending==0) CheckIfSomethingToBeSent(); cpt_led++; T0IF = 0; } if (TXIF==1) { TXIF=0; CheckIfSomethingToBeSent(); } TODO //JM RAIF=0; EEIF=0; RC0 = 0; }
//------------------------------------------------------------------- void pbOscReceiver::receive() { if ( !_threaded ) { receive0(); } }