The foxBMS secondary mcu API documentation
general.h
Go to the documentation of this file.
1 
55 #ifndef GENERAL_H_
56 #define GENERAL_H_
57 
58 /*================== Includes =============================================*/
59 #include <stdint.h>
60 #include <std_types.h>
61 #include "matlab_types.h"
62 #include "foxbmsconfig.h"
63 
64 /*================== Macros and Definitions ===============================*/
65 
74 #define BUILD_MODULE_ENABLE_FLASHCHECKSUM 1
75 /* #define BUILD_MODULE_ENABLE_FLASHCHECKSUM 0 */
76 
85 #define BUILD_MODULE_ENABLE_UART 1
86 /* #define BUILD_MODULE_ENABLE_UART 0 */
87 
96 #define BUILD_MODULE_ENABLE_RS485 1
97 /* #define BUILD_MODULE_ENABLE_RS485 0 */
98 
107 /* #define BUILD_MODULE_ENABLE_NVRAM 1 */
108 #define BUILD_MODULE_ENABLE_NVRAM 0
109 
118 #define BUILD_MODULE_ENABLE_COM 1
119 /* #define BUILD_MODULE_ENABLE_COM 0 */
120 
129 #define BUILD_MODULE_ENABLE_CONTACTOR 0
130 
139 #define BUILD_MODULE_ENABLE_ILCK 1
140 
149 #define BUILD_MODULE_ENABLE_ISOGUARD 0
150 
151 
161 /* #define BUILD_MODULE_DEBUGPRINTF 1 */
162 #define BUILD_MODULE_DEBUGPRINTF 1
163 
164 
173 #define BUILD_MODULE_ENABLE_RTC 1
174 /* #define BUILD_MODULE_ENABLE_RTC 0 */
175 
182 /* #define BUILD_MODULE_ENABLE_RUNTIMESTATS 1 */
183 #define BUILD_MODULE_ENABLE_RUNTIMESTATS 0
184 
193 #define BUILD_MODULE_ENABLE_WATCHDOG 1
194 /* #define BUILD_MODULE_ENABLE_WATCHDOG 0 */
195 
205 #define BUILD_ALLOW_DIRTY_STARTUP 1
206 /* #define BUILD_ALLOW_DIRTY_STARTUP 0 */
207 
208 
209 /* #define BUILD_MODULE_IMPORT_CELL_DATASHEET 1 */
210 #define BUILD_MODULE_IMPORT_CELL_DATASHEET 0
211 
218 #define BUILD_DIAG_ENABLE_TASK_STATISTICS 1
219 /* #define BUILD_DIAG_ENABLE_TASK_STATISTICS 0 */
220 
227 #define MEM_BKP_SRAM __attribute__((section (".BKP_RAMSection")))
228 
229 
230 /*================== Constant and Variable Definitions ====================*/
231 
232 
233 /*================== Function Prototypes ==================================*/
234 
235 
236 /*================== Function Implementations =============================*/
237 
238 
239 #endif /* GENERAL_H_ */
typedefing matlab standard types
Definition of foxBMS standard types.