code style

This commit is contained in:
rusefi 2020-01-21 01:40:11 -05:00
parent 103e51dd85
commit 83b1ca00a4
15 changed files with 18 additions and 50 deletions

View File

@ -10,8 +10,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef SENSORS_H_
#define SENSORS_H_
#pragma once
#include "tps.h"
#include "map.h"
@ -26,4 +25,3 @@ void initSensors(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
bool hasAcToggle(DECLARE_ENGINE_PARAMETER_SIGNATURE);
bool getAcToggle(DECLARE_ENGINE_PARAMETER_SIGNATURE);
#endif /*SENSORS_H_*/

View File

@ -7,8 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef EGO_H_
#define EGO_H_
#pragma once
#include "global.h"
#include "engine_configuration.h"
@ -17,5 +16,3 @@ float getAfr(DECLARE_ENGINE_PARAMETER_SIGNATURE);
bool hasAfrSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void setEgoSensor(ego_sensor_e type DECLARE_CONFIG_PARAMETER_SUFFIX);
void initEgoAveraging(DECLARE_ENGINE_PARAMETER_SIGNATURE);
#endif

View File

@ -4,8 +4,8 @@
* @date Jan 4, 2015
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef CONTROLLERS_SENSORS_HIP9011_LOOKUP_H_
#define CONTROLLERS_SENSORS_HIP9011_LOOKUP_H_
#pragma once
#include "engine.h"
@ -29,4 +29,3 @@ int getHip9011BandIndex(float frequency);
extern float rpmLookup[INT_LOOKUP_SIZE];
void initEngineNoiseTable(DECLARE_ENGINE_PARAMETER_SIGNATURE);
#endif /* CONTROLLERS_SENSORS_HIP9011_LOOKUP_H_ */

View File

@ -9,8 +9,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef MAF_H_
#define MAF_H_
#pragma once
#include "global.h"
@ -24,4 +23,3 @@ void setBosch0280218004(persistent_config_s *engineConfiguration);
void setDensoTODO(persistent_config_s *engineConfiguration);
void setMazdaMiataNAMaf(persistent_config_s *e);
#endif

View File

@ -5,8 +5,7 @@
* @date Jan 20, 2018
*/
#ifndef CONTROLLERS_SENSORS_MAF2MAP_H_
#define CONTROLLERS_SENSORS_MAF2MAP_H_
#pragma once
#include "table_helper.h"
@ -16,5 +15,3 @@ typedef Map3D<ASIZE, ASIZE, float, float> maf2map_Map3D_t;
void initMaf2Map();
float estimateMapByRpmAndMaf(int rpm, float maf);
#endif /* CONTROLLERS_SENSORS_MAF2MAP_H_ */

View File

@ -3,8 +3,8 @@
*
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef MAP_H_
#define MAP_H_
#pragma once
#include "engine_configuration.h"
@ -34,4 +34,3 @@ float validateMap(float mapKPa DECLARE_ENGINE_PARAMETER_SUFFIX);
#define INHG2KPA(inhg) ((inhg) * 3.386375)
#define KPA2INHG(kpa) ((kpa) / 3.386375)
#endif

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef THERMISTORS_H_
#define THERMISTORS_H_
#pragma once
#include "global.h"
@ -56,4 +55,3 @@ void setCommonNTCSensor(ThermistorConf *thermistorConf, float pullup);
void setDodgeSensor(ThermistorConf *thermistorConf, float pullup);
void set10K_4050K(ThermistorConf *thermistorConf, float pullup);
#endif /* THERMISTORS_H_ */

View File

@ -7,8 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef TPS_H_
#define TPS_H_
#pragma once
#include "global.h"
#include "engine_configuration.h"
@ -55,4 +54,4 @@ typedef struct {
//void saveTpsState(efitimeus_t now, float curValue);
float getTpsRateOfChange(void);
#endif

View File

@ -7,8 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef VOLTAGE_H_
#define VOLTAGE_H_
#pragma once
#include "global.h"
#include "engine_configuration.h"
@ -16,5 +15,3 @@
float getVRef(DECLARE_ENGINE_PARAMETER_SIGNATURE);
float getVBatt(DECLARE_ENGINE_PARAMETER_SIGNATURE);
bool hasVBatt(DECLARE_ENGINE_PARAMETER_SIGNATURE);
#endif

View File

@ -8,8 +8,7 @@
#include "scheduler.h"
#include "utlist.h"
#ifndef EVENT_SCHEDULER_H_
#define EVENT_SCHEDULER_H_
#pragma once
/**
* this is a large value which is expected to be larger than any real time
@ -71,4 +70,3 @@ private:
efitime_t lateDelay;
};
#endif /* EVENT_SCHEDULER_H_ */

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef PWM_GENERATOR_LOGIC_H_
#define PWM_GENERATOR_LOGIC_H_
#pragma once
#include "state_sequence.h"
#include "global.h"
@ -150,4 +149,3 @@ void startSimplePwmExt(SimplePwm *state,
void copyPwmParameters(PwmConfig *state, int phaseCount, float const *switchTimes,
int waveCount, pin_state_t *const *pinStates);
#endif /* PWM_GENERATOR_LOGIC_H_ */

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef SIGNAL_EXECUTOR_SLEEP_H_
#define SIGNAL_EXECUTOR_SLEEP_H_
#pragma once
#include "scheduler.h"
@ -16,5 +15,3 @@ public:
void scheduleByTimestampNt(scheduling_s *scheduling, efitick_t timeNt, action_s action) override;
void scheduleForLater(scheduling_s *scheduling, int delayUs, action_s action) override;
};
#endif /* SIGNAL_EXECUTOR_SLEEP_H_ */

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef SINGLETIMEREXECUTOR_H_
#define SINGLETIMEREXECUTOR_H_
#pragma once
#include "scheduler.h"
#include "event_queue.h"
@ -31,4 +30,3 @@ private:
void initSingleTimerExecutorHardware(void);
void executorStatistics();
#endif /* SINGLETIMEREXECUTOR_H_ */

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef TRIGGER_EMULATOR_ALGO_H_
#define TRIGGER_EMULATOR_ALGO_H_
#pragma once
#include "engine.h"
#include "pwm_generator_logic.h"
@ -22,4 +21,3 @@ void initTriggerEmulatorLogic(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUF
int getPreviousIndex(const int currentIndex, const int size);
bool needEvent(const int currentIndex, const int size, MultiChannelStateSequence *multiChannelStateSequence, int channelIndex);
#endif /* TRIGGER_EMULATOR_ALGO_H_ */

View File

@ -7,8 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#ifndef EFITIME_H_
#define EFITIME_H_
#pragma once
#include "efifeatures.h"
#include "rusefi_types.h"
@ -72,5 +71,3 @@ efitimesec_t getTimeNowSeconds(void);
#else
#define getTimeNowLowerNt() 0
#endif
#endif /* EFITIME_H_ */