From 5d1c248e4d7c5e0c9faee8fc8a686cb2c801b381 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 28 Jan 2021 20:43:23 -0500 Subject: [PATCH] =?UTF-8?q?No=20hablo=20ingl=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firmware/config/boards/skeleton/efifeatures.h | 2 +- firmware/config/stm32f4ems/efifeatures.h | 2 +- firmware/hw_layer/adc/adc_inputs.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/config/boards/skeleton/efifeatures.h b/firmware/config/boards/skeleton/efifeatures.h index 53aec2045b..c6c54075d5 100644 --- a/firmware/config/boards/skeleton/efifeatures.h +++ b/firmware/config/boards/skeleton/efifeatures.h @@ -246,7 +246,7 @@ // todo: most of this should become configurable -// todo: switch to continues ADC conversion for fast ADC? +// todo: switch to continuous ADC conversion for fast ADC? #define EFI_INTERNAL_FAST_ADC_GPT &GPTD6 #define EFI_SPI1_AF 5 diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 3d43bf8479..56ecb1da30 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -304,7 +304,7 @@ // todo: most of this should become configurable -// todo: switch to continues ADC conversion for fast ADC? +// todo: switch to continuous ADC conversion for fast ADC? #define EFI_INTERNAL_FAST_ADC_GPT &GPTD6 #define EFI_SPI1_AF 5 diff --git a/firmware/hw_layer/adc/adc_inputs.cpp b/firmware/hw_layer/adc/adc_inputs.cpp index 853619a08b..6976d0944f 100644 --- a/firmware/hw_layer/adc/adc_inputs.cpp +++ b/firmware/hw_layer/adc/adc_inputs.cpp @@ -82,8 +82,8 @@ AdcDevice::AdcDevice(ADCConversionGroup* hwConfig, adcsample_t *buf, size_t buf_ * 8000 RPM is 133Hz * If we want to sample MAP once per 5 degrees we need 133Hz * (360 / 5) = 9576Hz of fast ADC */ -// todo: migrate to continues ADC mode? probably not - we cannot afford the callback in -// todo: continues mode. todo: look into our options +// todo: migrate to continuous ADC mode? probably not - we cannot afford the callback in +// todo: continuous mode. todo: look into our options #define GPT_FREQ_FAST 100000 /* PWM clock frequency. I wonder what does this setting mean? */ #define GPT_PERIOD_FAST 10 /* PWM period (in PWM ticks). */ #endif /* GPT_FREQ_FAST GPT_PERIOD_FAST */ @@ -287,7 +287,7 @@ int getInternalAdcValue(const char *msg, adc_channel_e hwChannel) { return value; } if (adcHwChannelEnabled[hwChannel] != ADC_SLOW) { - // todo: make this not happen during hardware continues integration + // todo: make this not happen during hardware continuous integration warning(CUSTOM_OBD_WRONG_ADC_MODE, "ADC is off [%s] index=%d", msg, hwChannel); }