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

View File

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

View File

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

View File

@ -45,7 +45,7 @@
#define EFI_SUPPORT_FORD_FIESTA 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_SHAFT_POSITION_INPUT TRUE