int main() { init_memory(); ows_setup(myrom); for(;;) ows_wait_request(); }
int main(void) { DDRA = 0xff; PORTA = 0xff; ows_setup(); dallas_setup(); while(1) { //ows_check(); } }
int main() { wdt_disable(); #if defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny13__) CLKPR = 0x80; /* Clock prescaler change enable */ CLKPR = 0x00; /* Division Factor = 1, system clock 9.6MHz */ #endif ows_setup(myrom); PIO_PORT(PORT) = 0; for(;;) ows_wait_request(); }