Persistent store
This commit is contained in:
parent
f657c437e8
commit
79b0bc642c
|
@ -0,0 +1,42 @@
|
|||
/**
|
||||
* @file persistent_store.cpp
|
||||
* @brief Controllers package entry point code
|
||||
*
|
||||
*
|
||||
*
|
||||
* @date Feb 7, 2013
|
||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
||||
*
|
||||
* 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;
|
||||
|
Loading…
Reference in New Issue