BRTOS  1.90
Brazilian Real-Time Operating System
 All Data Structures Files Functions Variables Macros
OS_types.h
Go to the documentation of this file.
1 
8 /*********************************************************************************************************
9 * BRTOS
10 * Brazilian Real-Time Operating System
11 * Acronymous of Basic Real-Time Operating System
12 *
13 *
14 * Open Source RTOS under MIT License
15 *
16 *
17 *
18 * OS Types Header
19 *
20 *
21 * Author: Gustavo Weber Denardin
22 * Revision: 1.0
23 * Date: 20/03/2009
24 *
25 *********************************************************************************************************/
26 
27 #ifndef OS_TYPES_H
28 #define OS_TYPES_H
29 
35 #if (defined __CWCC__)
36 #define HAVE_STDINT 0
37 #else
38 #define HAVE_STDINT 1
39 #endif
40 
41 #if HAVE_STDINT == 1
42 #include "stdint.h"
43 #include "stdbool.h"
44 #else
45 typedef unsigned char bool;
46 typedef unsigned char uint8_t;
47 typedef signed char int8_t;
48 typedef unsigned short int uint16_t;
49 typedef signed short int int16_t;
50 typedef unsigned long uint32_t;
51 typedef signed long int32_t;
52 #endif
53 
54 /* for compatibility purpose */
55 typedef char CHAR8;
56 #if !WINNT
57 typedef bool BOOLEAN;
58 #endif
59 typedef uint8_t INT8U;
60 typedef int8_t INT8S;
61 typedef uint16_t INT16U;
62 typedef int16_t INT16S;
63 typedef uint32_t INT32U;
64 typedef int32_t INT32S;
65 
66 /* for portability purpose */
67 typedef unsigned int stack_pointer_t;
68 typedef unsigned int uint_t;
69 
74 
75 #endif