void main(){ OCR0A= PING_DELAY; //set interrupt interval TCCR0B=(1<<WGM1)|(1<<CS02)|(1<<CS00); //set CTC mode and enable clock with 1/1024 scaler TIMSK0=(1<<OCIE0A); //enable interrupt rf_setup(); }
void setup(){ disp_setup(); mdos_setup(); rf_setup(); }