rusefi/firmware/controllers/core/common_headers.h

46 lines
836 B
C
Raw Normal View History

2018-09-16 20:10:06 -07:00
/*
* @file common_headers.h
*
2018-12-25 13:06:24 -08:00
* Header file shared between firmware, simulator and unit_tests
*
2018-09-16 20:10:06 -07:00
* @date Sep 16, 2018
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2018-09-16 20:10:06 -07:00
*/
2020-03-28 16:49:36 -07:00
#pragma once
2018-09-16 20:10:06 -07:00
#ifndef FALSE
#define FALSE (0)
#endif /* FALSE */
#ifndef TRUE
#define TRUE (!(FALSE))
#endif /* TRUE */
2019-04-04 20:03:32 -07:00
#ifdef __cplusplus
#define EXTERNC extern "C"
#else
#define EXTERNC
#endif
2018-09-16 20:10:06 -07:00
#include "efifeatures.h"
2018-12-08 13:06:14 -08:00
#include "rusefi_types.h"
2018-09-16 20:10:06 -07:00
#include <math.h>
#include <stdio.h>
#include "auto_generated_enums.h"
2021-07-12 18:21:43 -07:00
#include "auto_generated_commonenum.h"
#include "auto_generated_enginetypes.h"
2018-09-16 20:10:06 -07:00
#include "efilib.h"
#include "efitime.h"
#ifdef __cplusplus
#include "datalogging.h"
2019-09-18 18:38:45 -07:00
#include "cli_registry.h"
2018-09-16 20:10:06 -07:00
#endif /* __cplusplus */
2023-06-11 20:36:38 -07:00
#define EXPECTED_REMAINING_STACK 128
#define assertRemainingStack() (getCurrentRemainingStack() > EXPECTED_REMAINING_STACK)