projects
/
bertos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b1e502c3c141139c53672a7575e6103a5c40e833
[bertos.git]
/
examples
/
avr-kern
/
main.c
1
// Emtpy main.c file generated by the wizard
2
#include <cfg/debug.h>
3
#include <cpu/power.h>
4
#include <cpu/irq.h>
5
#include <drv/timer.h>
6
#include <kern/proc.h>
7
#include <stdio.h>
8
9
static void init(void)
10
{
11
kdbg_init();
12
proc_init();
13
timer_init();
14
15
IRQ_ENABLE;
16
}
17
18
int main(void)
19
{
20
ssize_t i = 4;
21
22
init();
23
for (; i; --i) {
24
kprintf("starting in %d\n", i);
25
timer_delay(1000);
26
}
27
kputs("\n");
28
29
proc_testRun();
30
while (1)
31
cpu_relax();
32
33
return 0;
34
}
35