rusefi-1/unit_tests/global.h

51 lines
989 B
C
Raw Normal View History

2014-08-29 07:52:33 -07:00
/*
* @file global.h
*
* @date Nov 28, 2013
* @author pc
*/
#ifndef GLOBAL_H_
#define GLOBAL_H_
#include <time.h>
#include <string.h>
#include <stdbool.h>
#include "efitime.h"
2014-09-13 06:04:55 -07:00
#define US_TO_NT_MULTIPLIER 100
2014-11-11 14:03:38 -08:00
#define ALWAYS_INLINE INLINE
2014-09-13 06:04:55 -07:00
#define US2NT(x) (US_TO_NT_MULTIPLIER * (x))
#define NT2US(x) ((x) / US_TO_NT_MULTIPLIER)
2014-11-07 18:03:15 -08:00
#define INLINE inline
2014-09-13 06:04:55 -07:00
2014-08-29 07:52:33 -07:00
typedef int bool_t;
#define EFI_ERROR_CODE 0xffffffff
#define TRUE 1
#define FALSE 0
#define CCM_OPTIONAL
2014-11-07 19:04:45 -08:00
#define EXTERN_ENGINE
2014-11-07 21:07:22 -08:00
#ifdef __cplusplus
class Engine;
#endif
2014-11-11 14:03:38 -08:00
#define DECLARE_ENGINE_PARAMETER_F Engine *engine, engine_configuration_s *engineConfiguration
2014-11-12 13:05:43 -08:00
#define DECLARE_ENGINE_PARAMETER_S , Engine *engine, engine_configuration_s *engineConfiguration
2014-11-24 18:03:34 -08:00
#define PASS_ENGINE_PARAMETER_F engine, engineConfiguration
2014-11-07 20:03:53 -08:00
#define PASS_ENGINE_PARAMETER , engine, engineConfiguration
2014-11-07 19:04:45 -08:00
2014-11-25 07:03:25 -08:00
#define CONFIG(x) engineConfiguration->x
2014-11-25 17:03:21 -08:00
#define ENGINE(x) engine->x
2014-11-25 09:05:03 -08:00
#define TRIGGER_SHAPE(x) engine->triggerShape.x
2014-11-25 07:03:25 -08:00
2014-08-29 07:52:33 -07:00
#endif /* GLOBAL_H_ */