Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
platform
stm32test
contiki-main.c
1
#include <stm32f10x_map.h>
2
#include <stm32f10x_dma.h>
3
#include <gpio.h>
4
#include <nvic.h>
5
#include <stdint.h>
6
#include <stdio.h>
7
#include <debug-uart.h>
8
#include <
sys/process.h
>
9
#include <sys/procinit.h>
10
#include <
etimer.h
>
11
#include <
sys/autostart.h
>
12
#include <clock.h>
13
14
unsigned
int
idle_count = 0;
15
16
int
17
main
()
18
{
19
dbg_setup_uart();
20
printf(
"Initialising\n"
);
21
22
clock_init
();
23
process_init
();
24
process_start
(&etimer_process,
NULL
);
25
autostart_start(autostart_processes);
26
printf(
"Processes running\n"
);
27
while
(1) {
28
do
{
29
}
while
(
process_run
() > 0);
30
idle_count++;
31
/* Idle! */
32
/* Stop processor clock */
33
/* asm("wfi"::); */
34
}
35
return
0;
36
}
37
38
39
40
Generated on Fri Aug 30 2013 12:34:10 for Contiki 2.5 by
1.8.3.1