projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove \version svn tag.
[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 0f9461990546722ea7666636512a0ee0d2113a5e..9ed920e7bf10533f78330b11d9a7dc1069281abb 100644
(file)
--- a/
boards/lpc-p2378/templates/empty/main.c
+++ b/
boards/lpc-p2378/templates/empty/main.c
@@
-38,33
+38,41
@@
* 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 void init(void)
{
static Serial out;
static void init(void)
{
+ /* Enable all the interrupts */
IRQ_ENABLE;
IRQ_ENABLE;
+ /* Initialize debugging module (allow kprintf(), etc.) */
kdbg_init();
kdbg_init();
+ /* Initialize system timer */
timer_init();
timer_init();
- proc_init();
- LED_INIT();
-
- ser_init(&out, SER_UART0);
+ /* Initialize UART1 */
+ ser_init(&out, SER_UART1);
+ /* Configure UART1 to work at 115.200 bps */
ser_setbaudrate(&out, 115200);
ser_setbaudrate(&out, 115200);
+ /* Initialize LED driver */
+ LED_INIT();
}
int main(void)
{
init();
}
int main(void)
{
init();
+
+ /* Put your code here... */
while (1)
{
}
while (1)
{
}