int main() { unsigned char ser_byte; int res; /* Don't do ANYTHING before this. */ lowlevel_init(); leds_off(LEDS_ALL); //pm_stop_mode(0); uip_init(); autostart_start(autostart_processes); while(1) { do { } while(process_run() > 0); idle_count++; if (dbg_getbyte(&ser_byte)) { //leds_toggle(LEDS_ALL); printf("%c", ser_byte); res = serial_line_input_byte(ser_byte); if (!res) { printf("No?\n"); /* Well... */ } } /* Idle! */ /* Stop processor clock */ //asm("wfi"::); } return 0; }
int main(void) { lowlevel_init(); return 0; }