X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Flpc-p2378%2Ftemplates%2Fempty%2Fmain.c;h=1036c5cb6b95c100b1fd37e4c488bfd9eb90c589;hb=c34de402cec6fda7bf4474f32fed5e5c02cd7e7e;hp=0f9461990546722ea7666636512a0ee0d2113a5e;hpb=f58c6acada572ac691ad93b0761a878dc9246757;p=bertos.git diff --git a/boards/lpc-p2378/templates/empty/main.c b/boards/lpc-p2378/templates/empty/main.c index 0f946199..1036c5cb 100644 --- a/boards/lpc-p2378/templates/empty/main.c +++ b/boards/lpc-p2378/templates/empty/main.c @@ -44,27 +44,31 @@ #include #include #include -#include -#include static Serial out; static void init(void) { + /* Enable all the interrupts */ IRQ_ENABLE; + /* Initialize debugging module (allow kprintf(), etc.) */ kdbg_init(); + /* Initialize system timer */ timer_init(); - proc_init(); - LED_INIT(); - + /* Initialize UART0 */ ser_init(&out, SER_UART0); + /* Configure UART0 to work at 115.200 bps */ ser_setbaudrate(&out, 115200); + /* Initialize LED driver */ + LED_INIT(); } int main(void) { init(); + + /* Put your code here... */ while (1) { }