Skip to content

Commit

Permalink
The Big Refactoring of 2019: folder structure #723
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Apr 10, 2019
1 parent 57ac71a commit 81284d5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion firmware/controllers/actuators/electronic_throttle.cpp
Expand Up @@ -65,6 +65,9 @@
*/

#include "global.h"

#if EFI_ELECTRONIC_THROTTLE_BODY || defined(__DOXYGEN__)

#include "electronic_throttle.h"
#include "tps.h"
#include "io_pins.h"
Expand All @@ -76,7 +79,6 @@

#define ETB_MAX_COUNT 2

#if EFI_ELECTRONIC_THROTTLE_BODY || defined(__DOXYGEN__)
#include "pin_repository.h"
#include "pwm_generator.h"
#include "dc_motor.h"
Expand Down
4 changes: 2 additions & 2 deletions firmware/controllers/actuators/idle_thread.cpp
Expand Up @@ -25,6 +25,8 @@
*/

#include "global.h"

#if EFI_IDLE_CONTROL || defined(__DOXYGEN__)
#include "engine_configuration.h"
#include "rpm_calculator.h"
#include "pwm_generator.h"
Expand All @@ -33,8 +35,6 @@
#include "engine.h"
#include "periodic_controller.h"
#include "stepper.h"

#if EFI_IDLE_CONTROL || defined(__DOXYGEN__)
#include "allsensors.h"

static Logging *logger;
Expand Down
4 changes: 4 additions & 0 deletions firmware/controllers/actuators/tachometer.cpp
Expand Up @@ -13,6 +13,8 @@
#include "tachometer.h"
#include "trigger_central.h"

#if !EFI_UNIT_TEST

EXTERN_ENGINE;

static scheduling_s tachTurnSignalOff;
Expand Down Expand Up @@ -48,3 +50,5 @@ void initTachometer(void) {
addTriggerEventListener(tachSignalCallback, "tach", engine);
#endif /* EFI_SHAFT_POSITION_INPUT */
}

#endif /* EFI_UNIT_TEST */
2 changes: 2 additions & 0 deletions firmware/hw_layer/pin_repository.h
Expand Up @@ -34,8 +34,10 @@ EXTERNC bool brain_pin_markUsed(brain_pin_e brainPin, const char *msg);
EXTERNC void brain_pin_markUnused(brain_pin_e brainPin);
const char * getPinFunction(brain_input_pin_e brainPin);

#if !EFI_UNIT_TEST
/* For on-chip gpios only */
EXTERNC bool gpio_pin_markUsed(ioportid_t port, ioportmask_t pin, const char *msg);
EXTERNC void gpio_pin_markUnused(ioportid_t port, ioportmask_t pin);
#endif /* EFI_UNIT_TEST */

#endif /* PIN_REPOSITORY_H_ */

0 comments on commit 81284d5

Please sign in to comment.