2019-01-27 21:44:30 -08:00
|
|
|
/*
|
|
|
|
* @file globalaccess.h
|
|
|
|
*
|
|
|
|
* @date Jan 28, 2019
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
|
|
*/
|
|
|
|
|
2019-11-14 21:00:13 -08:00
|
|
|
#pragma once
|
2019-01-27 21:44:30 -08:00
|
|
|
|
2019-11-19 22:35:08 -08:00
|
|
|
#include "global.h"
|
|
|
|
|
2019-12-11 14:48:55 -08:00
|
|
|
#define DECLARE_CONFIG_PARAMETER_SIGNATURE engine_configuration_s *engineConfiguration, persistent_config_s *config
|
2019-01-27 23:59:14 -08:00
|
|
|
#define DECLARE_CONFIG_PARAMETER_SUFFIX , DECLARE_CONFIG_PARAMETER_SIGNATURE
|
2019-12-11 14:48:55 -08:00
|
|
|
#define PASS_CONFIG_PARAMETER_SIGNATURE engineConfiguration, config
|
2019-01-27 23:59:14 -08:00
|
|
|
#define PASS_CONFIG_PARAMETER_SUFFIX , PASS_CONFIG_PARAMETER_SIGNATURE
|
|
|
|
|
2019-01-27 21:44:30 -08:00
|
|
|
/**
|
|
|
|
* @see firmware/global.h for explanation
|
|
|
|
*/
|
2019-01-27 23:59:14 -08:00
|
|
|
#define DECLARE_ENGINE_PARAMETER_SIGNATURE Engine *engine, DECLARE_CONFIG_PARAMETER_SIGNATURE
|
2019-01-27 21:44:30 -08:00
|
|
|
#define DECLARE_ENGINE_PARAMETER_SUFFIX , DECLARE_ENGINE_PARAMETER_SIGNATURE
|
2019-01-27 23:59:14 -08:00
|
|
|
#define PASS_ENGINE_PARAMETER_SIGNATURE engine, PASS_CONFIG_PARAMETER_SIGNATURE
|
2019-01-27 21:44:30 -08:00
|
|
|
#define PASS_ENGINE_PARAMETER_SUFFIX , PASS_ENGINE_PARAMETER_SIGNATURE
|
|
|
|
|
2019-01-27 23:59:14 -08:00
|
|
|
#define CONFIG(x) engineConfiguration->x
|
|
|
|
#define ENGINE(x) engine->x
|