This commit is contained in:
rusefi 2017-08-31 07:55:26 -04:00
parent 94c92f41dc
commit 3840bbe36f
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include "efiGpio.h" #include "efiGpio.h"
#include "adc_inputs.h" #include "adc_inputs.h"
#include "AdcConfiguration.h" #include "AdcConfiguration.h"
#include "engine.h"
static volatile int stepCoutner = 0; static volatile int stepCoutner = 0;
static volatile brain_pin_e currentPin = GPIO_UNASSIGNED; static volatile brain_pin_e currentPin = GPIO_UNASSIGNED;
@ -40,6 +41,8 @@ static bool isTimeForNextStep(int copy) {
extern AdcDevice slowAdc; extern AdcDevice slowAdc;
extern AdcDevice fastAdc; extern AdcDevice fastAdc;
EXTERN_ENGINE;
static void processAdcPin(AdcDevice *adc, int index) { static void processAdcPin(AdcDevice *adc, int index) {
adc_channel_e hwIndex = adc->getAdcHardwareIndexByInternalIndex(index); adc_channel_e hwIndex = adc->getAdcHardwareIndexByInternalIndex(index);
ioportid_t port = getAdcChannelPort("test", hwIndex); ioportid_t port = getAdcChannelPort("test", hwIndex);

View File

@ -260,5 +260,5 @@ int getRusEfiVersion(void) {
if (initBootloader() != 0) if (initBootloader() != 0)
return 123; return 123;
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */ #endif /* EFI_BOOTLOADER_INCLUDE_CODE */
return 20170825; return 20170828;
} }