-
Notifications
You must be signed in to change notification settings - Fork 0
/
std_types.h
43 lines (36 loc) · 1.41 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
42
43
/******************************************************************************
*
* 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 boolean;
/* Boolean Values */
#ifndef FALSE
#define FALSE (0u)
#endif
#ifndef TRUE
#define TRUE (1u)
#endif
#define LOGIC_HIGH (1u)
#define LOGIC_LOW (0u)
#define NULL_PTR ((void*)0)
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; /* -9223372036854775808 .. 9223372036854775807 */
typedef float float32;
typedef double float64;
#endif /* STD_TYPE_H_ */