-
Notifications
You must be signed in to change notification settings - Fork 0
/
std_types.h
41 lines (35 loc) · 1.3 KB
/
std_types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/******************************************************************************
*
* Module: Common - Platform Types Abstraction
*
* File Name: std_types.h
*
* Description: types for AVR
*
* Author: Mohamed Tarek
*
*******************************************************************************/
#ifndef STD_TYPES_H_
#define STD_TYPES_H_
/* Boolean Data Type */
typedef unsigned char bool;
/* Boolean Values */
#ifndef FALSE
#define FALSE (0u)
#endif
#ifndef TRUE
#define TRUE (1u)
#endif
#define HIGH (1u)
#define LOW (0u)
typedef unsigned char uint8; /* 0 .. 255 */
typedef signed char sint8; /* -128 .. +127 */
typedef unsigned short uint16; /* 0 .. 65535 */
typedef signed short sint16; /* -32768 .. +32767 */
typedef unsigned long uint32; /* 0 .. 4294967295 */
typedef signed long sint32; /* -2147483648 .. +2147483647 */
typedef unsigned long long uint64; /* 0..18446744073709551615 */
typedef signed long long sint64;
typedef float float32;
typedef double float64;
#endif /* STD_TYPE_H_ */