code style

This commit is contained in:
rusefi 2020-01-26 13:58:47 -05:00
parent a53d9c587a
commit 6e128a341b
6 changed files with 7 additions and 19 deletions

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#ifndef CONTROLLERS_OBD2_H_ #pragma once
#define CONTROLLERS_OBD2_H_
#include "global.h" #include "global.h"
@ -41,4 +40,3 @@
void obdOnCanPacketRx(CANRxFrame *rx); void obdOnCanPacketRx(CANRxFrame *rx);
#endif /* HAL_USE_CAN */ #endif /* HAL_USE_CAN */
#endif /* CONTROLLERS_OBD2_H_ */

View File

@ -6,8 +6,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#ifndef SETTINGS_H_ #pragma once
#define SETTINGS_H_
#include "engine.h" #include "engine.h"
@ -23,4 +22,3 @@ void setEngineType(int value);
*/ */
const char* getConfigurationName(engine_type_e engineType); const char* getConfigurationName(engine_type_e engineType);
#endif /* SETTINGS_H_ */

View File

@ -12,8 +12,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#ifndef GLOBAL_H_ #pragma once
#define GLOBAL_H_
// todo: remove this from here and rely on os_access.h. unfortunately hal.h includes ch.h :( // todo: remove this from here and rely on os_access.h. unfortunately hal.h includes ch.h :(
#include <hal.h> #include <hal.h>
@ -120,5 +119,3 @@ void unlockAnyContext(void);
} }
#endif #endif
#endif /* GLOBAL_H_ */

View File

@ -6,8 +6,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#ifndef HIP9011_H_ #pragma once
#define HIP9011_H_
// 0b01110001 // 0b01110001
@ -28,4 +27,4 @@ void setPrescalerAndSDO(int value);
void setKnockThresh(float value); void setKnockThresh(float value);
void setMaxKnockSubDeg(int value); void setMaxKnockSubDeg(int value);
#endif /* HIP9011_H_ */

View File

@ -5,8 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#ifndef HW_LAYER_HIP9011_LOGIC_H_ #pragma once
#define HW_LAYER_HIP9011_LOGIC_H_
#include "efifeatures.h" #include "efifeatures.h"
#include "rusefi_enums.h" #include "rusefi_enums.h"
@ -115,4 +114,3 @@ int getHip9011GainIndex(DEFINE_HIP_PARAMS);
#define _8MHZ_PRESCALER 6 #define _8MHZ_PRESCALER 6
#endif /* HW_LAYER_HIP9011_LOGIC_H_ */

View File

@ -5,10 +5,8 @@
* @author Andrey Belomutskiy, (c) 2012-2020 * @author Andrey Belomutskiy, (c) 2012-2020
*/ */
#ifndef RUSEFI_H_ #pragma once
#define RUSEFI_H_
void runRusEfi(void); void runRusEfi(void);
void rebootNow(void); void rebootNow(void);
#endif /* RUSEFI_H_ */