projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments to the "empty" preset templates across the supported boards.
[bertos.git]
/
boards
/
at91sam7s-ek
/
templates
/
empty
/
main.c
diff --git
a/boards/at91sam7s-ek/templates/empty/main.c
b/boards/at91sam7s-ek/templates/empty/main.c
index 873267725c5ab46b25edd46d5b64af4af6cc53cc..f5c8b3051f6e991c402da710b51136bf650f950d 100644
(file)
--- a/
boards/at91sam7s-ek/templates/empty/main.c
+++ b/
boards/at91sam7s-ek/templates/empty/main.c
@@
-49,20
+49,32
@@
static Serial out;
static void init(void)
{
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();
-
+ /* Initialize UART0 */
ser_init(&out, SER_UART0);
ser_init(&out, SER_UART0);
+ /* Configure UART0 to work at 115.200 bps */
ser_setbaudrate(&out, 115200);
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)
{
init();
}
int main(void)
{
init();
+
+ /* Put your code here... */
while (1)
{
}
while (1)
{
}