SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
OSConfig.h
Go to the documentation of this file.
1
6
#ifndef __OSCONFIG_H
7
#define __OSCONFIG_H
8
9
#include "
cpu_vars.h
"
10
11
12
// edit these depending on your clock
13
#define TIME_1MS BUS_CLK/1000
14
#define TIME_2MS (2*TIME_1MS)
15
#define TIME_500US (TIME_1MS/2)
16
#define TIME_250US (TIME_1MS/5)
17
#define PERIOD TIME_500US
18
19
20
//***************** OS CONFIGURATION **********************/
24
#define NUMTHREADS 10
25
29
#define STACKSIZE 256
30
34
#define PRIORITYLEVELS 8
// 0-7, priority follows ARM interrupt protocol
35
40
#define FIFO_SIZE 256
41
42
typedef
INT32
FIFO_t
;
43
44
51
#define SCHEDULER_MODE 1
52
53
54
55
#endif
//_OSConfig_H
56
INT32
int32_t INT32
Definition:
cpu_vars.h:19
FIFO_t
INT32 FIFO_t
Definition:
OSConfig.h:42
cpu_vars.h
Contains CPU/Compilter variables.
SikendeRTOS
SikenderOS
RTOS
inc
OSConfig.h
Generated by
1.9.4