projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix log import module, other simple typo fixes.
[bertos.git]
/
boards
/
lpc-p2378
/
templates
/
empty
/
main.c
diff --git
a/boards/lpc-p2378/templates/empty/main.c
b/boards/lpc-p2378/templates/empty/main.c
index 2bbaf0447b52c029b494235f77a512b396c964d5..9ed920e7bf10533f78330b11d9a7dc1069281abb 100644
(file)
--- a/
boards/lpc-p2378/templates/empty/main.c
+++ b/
boards/lpc-p2378/templates/empty/main.c
@@
-38,14
+38,16
@@
* supported board and proposes an empty main.
*/
* supported board and proposes an empty main.
*/
+#include "hw/hw_led.h"
+
#include <cfg/debug.h>
#include <cfg/debug.h>
+
#include <cpu/irq.h>
#include <cpu/power.h>
#include <cpu/irq.h>
#include <cpu/power.h>
-#include <hw/hw_led.h>
+
+
#include <drv/timer.h>
#include <drv/ser.h>
#include <drv/timer.h>
#include <drv/ser.h>
-#include <kern/proc.h>
-#include <drv/ser.h>
static Serial out;
static Serial out;
@@
-58,18
+60,12
@@
static void init(void)
kdbg_init();
/* Initialize system timer */
timer_init();
kdbg_init();
/* Initialize system timer */
timer_init();
- /* Initialize UART
0
*/
- ser_init(&out, SER_UART
0
);
- /* Configure UART
0
to work at 115.200 bps */
+ /* Initialize UART
1
*/
+ ser_init(&out, SER_UART
1
);
+ /* Configure UART
1
to work at 115.200 bps */
ser_setbaudrate(&out, 115200);
/* Initialize LED driver */
LED_INIT();
ser_setbaudrate(&out, 115200);
/* Initialize LED driver */
LED_INIT();
-
- /*
- * Kernel initialization: processes (allow to create and dispatch
- * processes using proc_new()).
- */
- proc_init();
}
int main(void)
}
int main(void)