43 lines
1.6 KiB
C++
43 lines
1.6 KiB
C++
/**
|
|
* @file persistent_store.cpp
|
|
* @brief Controllers package entry point code
|
|
*
|
|
*
|
|
*
|
|
* @date Feb 7, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
|
*
|
|
* This file is part of rusEfi - see http://rusefi.com
|
|
*
|
|
* rusEfi is free software; you can redistribute it and/or modify it under the terms of
|
|
* the GNU General Public License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
|
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with this program.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "sensor_chart.h"
|
|
#include "main.h"
|
|
#include "engine_configuration.h"
|
|
#include "trigger_central.h"
|
|
#include "engine_controller.h"
|
|
|
|
|
|
persistent_config_container_s persistentState CCM_OPTIONAL;
|
|
|
|
const persistent_config_s *config = &persistentState.persistentConfiguration;
|
|
|
|
/**
|
|
* todo: it really looks like these fields should become 'static', i.e. private
|
|
* the whole 'extern ...' pattern is less then perfect, I guess the 'God object' Engine
|
|
* would be a smaller evil. Whatever is needed should be passed into methods/modules/files as an explicit parameter.
|
|
*/
|
|
const engine_configuration_s *engineConfiguration = &persistentState.persistentConfiguration.engineConfiguration;
|
|
const board_configuration_s *boardConfiguration = &persistentState.persistentConfiguration.engineConfiguration.bc;
|
|
|