1 // Emtpy main.c file generated by the wizard
5 #include <io/lpc23xx.h>
7 #define STATUS_LED (1<<19)
8 #define LED_ON() do { IOCLR1 = STATUS_LED; } while (0)
9 #define LED_OFF() do { IOSET1 = STATUS_LED; } while (0)
11 static void init(void)
18 kprintf("NXP LPC2378 BeRTOS port test\n");
20 /* Turn off boot led */
28 static void NORETURN bertos_up(void)
30 char spinner[] = {'/', '-', '\\', '|'};
36 kprintf("BeRTOS is up & running: %c\r",
37 spinner[i % countof(spinner)]);
43 static void NORETURN status(void)
60 proc_new(bertos_up, NULL, KERN_MINSTACKSIZE * 3, NULL);
61 proc_new(status, NULL, 0, NULL);