This commit is contained in:
rusefi 2019-01-09 00:25:45 -05:00
parent 5b5f4e124b
commit ba1e1f3275
3 changed files with 4 additions and 7 deletions

View File

@ -21,12 +21,9 @@
#include "efitime.h" #include "efitime.h"
#include "efilib2.h" #include "efilib2.h"
#if EFI_PROD_CODE || defined(__DOXYGEN__) #if EFI_SIGNAL_EXECUTOR_ONE_TIMER || defined(__DOXYGEN__)
#include "microsecond_timer.h" #include "microsecond_timer.h"
#include "tunerstudio_configuration.h" #include "tunerstudio_configuration.h"
#endif
#if (EFI_SIGNAL_EXECUTOR_ONE_TIMER && EFI_PROD_CODE )|| defined(__DOXYGEN__)
#include "rfiutil.h" #include "rfiutil.h"
static Executor instance; static Executor instance;

View File

@ -88,7 +88,7 @@ void setHardwareUsTimer(int32_t timeUs) {
timerRestartCounter++; timerRestartCounter++;
} }
static void callback(GPTDriver *gptp) { static void hwTimerCallback(GPTDriver *gptp) {
(void)gptp; (void)gptp;
timerCallbackCounter++; timerCallbackCounter++;
if (globalTimerCallback == NULL) { if (globalTimerCallback == NULL) {
@ -142,7 +142,7 @@ private:
MicrosecondTimerWatchdogController watchdogControllerInstance; MicrosecondTimerWatchdogController watchdogControllerInstance;
static constexpr GPTConfig gpt5cfg = { 1000000, /* 1 MHz timer clock.*/ static constexpr GPTConfig gpt5cfg = { 1000000, /* 1 MHz timer clock.*/
callback, /* Timer callback.*/ hwTimerCallback, /* Timer callback.*/
0, 0 }; 0, 0 };
void initMicrosecondTimer(void) { void initMicrosecondTimer(void) {

View File

@ -45,7 +45,7 @@
#define EFI_SUPPORT_FORD_FIESTA TRUE #define EFI_SUPPORT_FORD_FIESTA TRUE
#define EFI_SUPPORT_NISSAN_PRIMERA TRUE #define EFI_SUPPORT_NISSAN_PRIMERA TRUE
#define EFI_SIGNAL_EXECUTOR_ONE_TIMER TRUE #define EFI_SIGNAL_EXECUTOR_ONE_TIMER FALSE
#define EFI_SIGNAL_EXECUTOR_SLEEP FALSE #define EFI_SIGNAL_EXECUTOR_SLEEP FALSE
#define EFI_SHAFT_POSITION_INPUT TRUE #define EFI_SHAFT_POSITION_INPUT TRUE