static void setup() { sei(); if (config_initialized() != OK) { serial_init(9600); printf("Initializing config\r\n"); #ifdef FACTORY_SELFTEST if ( TestIO() != OK ) return; #endif config_reset(); } setUartBaudRate(); rfBeeInit(); DDRC &= ~(_BV(7)); PORTC |= _BV(7); // set DHT pin as input // DDRD &= ~(_BV(5)); // PORTD |= _BV(5); printf("ok\r\n"); }
static void setup() { sei(); if (config_initialized() != OK) { serial_init(9600); printf("Initializing config\r\n"); #ifdef FACTORY_SELFTEST if ( TestIO() != OK ) return; #endif config_reset(); } setUartBaudRate(); rfBeeInit(); printf("ok\r\n"); }