projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add configurable options for HD44780 LCD display columns and rows.
[bertos.git]
/
boards
/
stm32-p103
/
templates
/
empty
/
main.c
diff --git
a/boards/stm32-p103/templates/empty/main.c
b/boards/stm32-p103/templates/empty/main.c
index 33777883a8dd2200d9c64f503957c69c1c0a0d7c..251b987afdf62fb9c87d5017211aeb329ce92c70 100644
(file)
--- a/
boards/stm32-p103/templates/empty/main.c
+++ b/
boards/stm32-p103/templates/empty/main.c
@@
-38,25
+38,32
@@
* 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/irq.h>
-#include <hw/hw_led.h>
+
#include <drv/timer.h>
#include <drv/timer.h>
-#include <kern/proc.h>
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();
+ /* Initialize LED driver */
LED_INIT();
}
int main(void)
{
init();
LED_INIT();
}
int main(void)
{
init();
+
+ /* Put your code here... */
while (1)
{
}
while (1)
{
}