X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=app%2Fat91sam7s%2Fat91sam7s.c;h=275af6e565faf6246d980d8d198ed674a8af9ac7;hb=71eebbb67cb2530d7c83d2e7a047fb2998ffc7f9;hp=76991a0d89b5a36cebb3b24a004b427c1fdef9e6;hpb=21f92eace872a7e12382cff9aa6e3364f25857aa;p=bertos.git diff --git a/app/at91sam7s/at91sam7s.c b/app/at91sam7s/at91sam7s.c index 76991a0d..275af6e5 100644 --- a/app/at91sam7s/at91sam7s.c +++ b/app/at91sam7s/at91sam7s.c @@ -46,7 +46,7 @@ #include Timer leds_timer; -SerialKFile ser_fd; +Serial ser_fd; static void leds_toggle(void) { @@ -74,7 +74,6 @@ int main(void) { char msg[]="BeRTOS, be fast be beatiful be realtime"; kdbg_init(); - sysirq_init(); timer_init(); proc_init(); @@ -103,14 +102,14 @@ int main(void) /* turn first led on */ PIOA_CODR = 0x00000001; - timer_set_event_softint(&leds_timer, (Hook)leds_toggle, 0); + timer_setSoftint(&leds_timer, (Hook)leds_toggle, 0); timer_setDelay(&leds_timer, ms_to_ticks(100)); timer_add(&leds_timer); + ASSERT(proc_testRun() == 0); // Main loop for(;;) { - proc_test(); kfile_printf(&ser_fd.fd, "From serial 0: %s\r\n", msg); } return 0;