Debian Codegraph @

examples/temp_sensor/src/Types.h

raw symbols SCIP
1 #ifndef _MYTYPES_H_
2 #define _MYTYPES_H_
3
4 #include "AT91SAM7X256.h"
5 #include <math.h>
6
7 #ifndef __monitor
8 #define __monitor
9 #endif
10
11 // Peripheral Helper Definitions
12 #define USART0_CLOCK_ENABLE (AT91C_ID_US0)
13 #define USART0_TX_PIN (AT91C_PA1_TXD0)
14 #define TIMER0_CLOCK_ENABLE (((uint32)0x1) << AT91C_ID_TC0)
15 #define PIOA_CLOCK_ENABLE (((uint32)0x1) << AT91C_ID_PIOA)
16 #define PIOB_CLOCK_ENABLE (((uint32)0x1) << AT91C_ID_PIOB)
17 #define TIOA0_PIN_MASK (((uint32)0x1) << 23) // Timer/Counter Output Pin
18
19 // Application Type Definitions
20 typedef unsigned int uint32;
21 typedef int int32;
22 typedef unsigned short uint16;
23 typedef short int16;
24 typedef unsigned char uint8;
25 typedef char int8;
26 typedef char bool;
27
28 // Application Special Value Definitions
29 #ifndef TRUE
30 #define TRUE (1)
31 #endif
32 #ifndef FALSE
33 #define FALSE (0)
34 #endif
35 #ifndef NULL
36 #define NULL (0)
37 #endif // NULL
38 #define DONT_CARE (0)
39
40 #ifndef INFINITY
41 #define INFINITY (1.0 / 0.0)
42 #endif
43
44 #ifndef NAN
45 #define NAN (0.0 / 0.0)
46 #endif
47
48 // MIN/MAX Definitions for Standard Types
49 #ifndef INT8_MAX
50 #define INT8_MAX 127
51 #endif
52
53 #ifndef INT8_MIN
54 #define INT8_MIN (-128)
55 #endif
56
57 #ifndef UINT8_MAX
58 #define UINT8_MAX 0xFFU
59 #endif
60
61 #ifndef UINT8_MIN
62 #define UINT8_MIN 0x00U
63 #endif
64
65 #ifndef INT16_MAX
66 #define INT16_MAX 32767
67 #endif
68
69 #ifndef INT16_MIN
70 #define INT16_MIN (-32768)
71 #endif
72
73 #ifndef UINT16_MAX
74 #define UINT16_MAX 0xFFFFU
75 #endif
76
77 #ifndef UINT16_MIN
78 #define UINT16_MIN 0x0000U
79 #endif
80
81 #ifndef INT32_MAX
82 #define INT32_MAX 0x7FFFFFFF
83 #endif
84
85 #ifndef INT32_MIN
86 #define INT32_MIN (-INT32_MAX - 1)
87 #endif
88
89 #ifndef UINT32_MAX
90 #define UINT32_MAX 0xFFFFFFFFU
91 #endif
92
93 #ifndef UINT32_MIN
94 #define UINT32_MIN 0x00000000U
95 #endif
96
97 typedef struct _EXAMPLE_STRUCT_T
98 {
99 int x;
100 int y;
101 } EXAMPLE_STRUCT_T;
102
103 #endif // _MYTYPES_H_