HomeAut
include.h
1 /*
2  * include.h
3  *
4  * Created on: 2013.11.19.
5  * Author: Vizi Gábor
6  * E-mail: vizi.gabor90@gmail.com
7  * Function: include file for project
8  * Target: STM32Fx
9  * Version: v4
10  * Last modified: 2016.09.28
11  */
12 
13 #ifndef INCLUDE_H_
14 #define INCLUDE_H_
15 
16 
17 #include "options.h"
18 
19 
20 // #define assert_param(expr) ((void)0) // incompatible redefinition ...
21 
22 
23 // Include libs, important headers
24 
25 // typedefs
26 #include <stdbool.h>
27 
28 
30 
31 typedef unsigned char uint8_t;
32 typedef signed char int8_t;
33 typedef short unsigned int uint16_t;
34 typedef short signed int int16_t;
35 #ifndef CONFIG_USE_DEV_ECLIPSE
36 typedef unsigned int uint32_t;
37 typedef signed int int32_t;
38 #endif
39 
40 
41 
43 
44 typedef enum
45 {
46  Return_Ok = 0,
47  Return_Error
48 } ReturnType;
49 
50 
51 
53 
54 
55 
57 // CONFIG DEFINES
58 // INCLUDES
60 
61 
62 
64 
65 
66 // Includes microcontroller family libraries
67 
68 #ifdef CONFIG_MICROCONTROLLER_STM32F4xx
69  // STM32F4 Discovery
70  #include "stm32f4xx_hal.h"
71  #include "stm32_hal_legacy.h" // for defines
72 #endif
73 
74 
75 
76 #ifdef CONFIG_USE_FREERTOS
77 #include "FreeRTOSConfig.h"
79 #include "FreeRTOS.h"
80 #include "task.h"
81 #include "timers.h"
82 #include "semphr.h"
83 #include "queue.h"
84 #include "list.h"
85 
86 /*
87 FreeRTOS/Source/tasks.c
88 FreeRTOS/Source/queue.c
89 FreeRTOS/Source/list.c
90 FreeRTOS/Source/portable/[compiler]/[architecture]/port.c.
91 FreeRTOS/Source/portable/MemMang/heap_x.c where 'x' is 1, 2, 3, 4 or 5.
92 */
93 
94 #endif // #ifdef CONFIG_USE_FREERTOS
95 
96 
97 
99 #include "board.h"
100 
101 
103 
104 #include "MEM.h"
105 
106 #include "globals.h"
107 #include "string.h"
108 #include "calc.h"
109 
110 
111 #ifdef CONFIG_MODULE_DEBUGUSART_ENABLE
112 #include "usart.h"
113 #include "CommandHandler.h"
114 #include "commandList.h"
115 #endif
116 
117 #ifdef CONFIG_MODULE_LED_ENABLE
118 #include "led.h"
119 #endif
120 
121 #ifdef CONFIG_MODULE_BUTTON_ENABLE
122 #include "button.h"
123 #endif
124 
125 #ifdef CONFIG_MODULE_IO_ENABLE
126 #include "IO.h"
127 #endif
128 
129 #ifdef CONFIG_MODULE_ESP8266_ENABLE
130 #include "ESP8266.h"
131 #endif
132 
133 #ifdef CONFIG_MODULE_SYSMANAGER_ENABLE
134 #include "homeautmessage.h"
135 #include "SysManager.h"
136 #endif
137 
138 #ifdef MODUL_TEMPERATURE_ENABLE
139 #include "temperature.h"
140 #endif
141 
142 #ifdef CONFIG_MODULE_HOMEAUTMESSAGE_ENABLE
143 #include "homeautmessage.h"
144 #endif
145 
146 #ifdef CONFIG_MODULE_RASPBERRYPI_ENABLE
147 #include "raspberrypi.h"
148 #endif
149 
150 #ifdef CONFIG_MODULE_ADC_ENABLE
151 #include "adc.h"
152 #endif
153 
154 #ifdef CONFIG_MODULE_FLASH_ENABLE
155 #include "flash.h" // Work, but not need
156 #endif
157 
158 #ifdef CONFIG_MODULE_COMMON_DAC_ENABLE
159 #include "commonDac.h"
160 #endif
161 
162 #ifdef CONFIG_MODULE_COMMON_IO_ENABLE
163 #include "commonIO.h"
164 #endif
165 
166 #ifdef CONFIG_MODULE_COMMON_ADC_ENABLE
167 #include "commonAdc.h"
168 #endif
169 
170 #ifdef CONFIG_SWO_ENABLE
171 #include "SWO.h"
172 #endif
173 
174 
175 void Error_Handler( void );
176 
177 
178 #endif /* INCLUDE_H_ */