#655 clean-up
This commit is contained in:
parent
5b5f4e124b
commit
ba1e1f3275
|
@ -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;
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue