cocoOS
5.0.1
Main Page
Data Structures
Files
File List
Globals
os_defines.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 Peter Eckstrand
3
*
4
* All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted (subject to the limitations in the
8
* disclaimer below) provided that the following conditions are met:
9
*
10
* 1. Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
*
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in the
15
* documentation and/or other materials provided with the
16
* distribution.
17
*
18
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
19
* GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
20
* HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
21
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
27
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
29
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
30
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*
32
* This file is part of the cocoOS operating system.
33
* Author: Peter Eckstrand <info@cocoos.net>
34
*/
35
36
37
#ifndef _os_defs
38
#define _os_defs
39
42
#ifdef __cplusplus
43
extern
"C"
{
44
#endif
45
46
#include <stdint.h>
47
50
#define N_TASKS 10
51
52
55
#define N_QUEUES 2
56
57
60
#define N_SEMAPHORES 50
61
62
65
#define N_EVENTS 50
66
67
70
//#define ROUND_ROBIN
71
72
75
typedef
uint64_t
Mem_t
;
76
77
#define NO_MSG_ID 0xff
78
#define ISR_TID 0xfe
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
Mem_t
uint64_t Mem_t
Definition:
os_defines.h:75
inc
os_defines.h
Generated on Wed May 23 2018 20:10:31 for cocoOS by
1.8.9.1