unused-variable is a nice error message to have #5683
This commit is contained in:
parent
756a198b96
commit
b70f8f0b92
|
@ -138,7 +138,6 @@ void setBoardDefaultConfiguration() {
|
|||
setInjectorPins();
|
||||
setIgnitionPins();
|
||||
|
||||
int16_t hellenBoardId = engine->engineState.hellenBoardId;
|
||||
if (isMegaModuleRevision()) {
|
||||
setHellenMMbaro();
|
||||
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP3; // On-board MAP
|
||||
|
|
|
@ -207,6 +207,14 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->injectionMode = IM_SIMULTANEOUS;//IM_BATCH;// IM_SEQUENTIAL;
|
||||
}
|
||||
|
||||
static Gpio MRE_OUTPUTS[] = {
|
||||
MRE_INJ_1,
|
||||
MRE_INJ_2,
|
||||
MRE_INJ_3,
|
||||
MRE_INJ_4,
|
||||
MRE_LS_1,
|
||||
};
|
||||
|
||||
int getBoardMetaOutputsCount() {
|
||||
return efi::size(MRE_OUTPUTS);
|
||||
}
|
||||
|
|
|
@ -74,13 +74,3 @@
|
|||
|
||||
// 35
|
||||
#define MRE_GPOUT_1 Gpio::TLE8888_PIN_21
|
||||
|
||||
#if HW_MICRO_RUSEFI
|
||||
static Gpio MRE_OUTPUTS[] = {
|
||||
MRE_INJ_1,
|
||||
MRE_INJ_2,
|
||||
MRE_INJ_3,
|
||||
MRE_INJ_4,
|
||||
MRE_LS_1,
|
||||
};
|
||||
#endif // HW_MICRO_RUSEFI
|
|
@ -72,7 +72,8 @@ void setFordEscortGt() {
|
|||
engineConfiguration->displacement = 1.839;
|
||||
setAlgorithm(LM_SPEED_DENSITY);
|
||||
|
||||
static const uint16_t veRpmBins[] =
|
||||
#if (IGN_RPM_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
|
||||
static const uint16_t veRpmBins[] =
|
||||
{
|
||||
800,
|
||||
1200,
|
||||
|
@ -92,7 +93,6 @@ void setFordEscortGt() {
|
|||
7000
|
||||
};
|
||||
|
||||
#if (IGN_RPM_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
|
||||
copyArray(config->veRpmBins, veRpmBins);
|
||||
copyTable(config->veTable, racingFestivaVeTable);
|
||||
#endif
|
||||
|
@ -199,6 +199,7 @@ void setFordEscortGt() {
|
|||
// todo: 8.2 or 10k?
|
||||
engineConfiguration->vbattDividerCoeff = ((float) (10 + 33)) / 10 * 2;
|
||||
|
||||
#if (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
|
||||
// VICS solenoid
|
||||
static const uint16_t ignitionRpmBins[] =
|
||||
{
|
||||
|
@ -220,7 +221,6 @@ void setFordEscortGt() {
|
|||
7000
|
||||
};
|
||||
|
||||
#if (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT)
|
||||
copyArray(config->ignitionRpmBins, ignitionRpmBins);
|
||||
|
||||
copyTable(config->ignitionTable, racingFestivaIgnitionTable);
|
||||
|
|
|
@ -39,7 +39,6 @@ float __attribute__((weak)) getAnalogInputDividerCoefficient(adc_channel_e) {
|
|||
#endif
|
||||
|
||||
static NO_CACHE adcsample_t slowAdcSamples[SLOW_ADC_CHANNEL_COUNT];
|
||||
static NO_CACHE adcsample_t fastAdcSampleBuf[ADC_BUF_DEPTH_FAST * ADC_MAX_CHANNELS_COUNT];
|
||||
|
||||
static adc_channel_mode_e adcHwChannelEnabled[HW_MAX_ADC_INDEX];
|
||||
|
||||
|
@ -149,6 +148,7 @@ static ADCConversionGroup adcgrpcfgFast = {
|
|||
#endif /* ADC_MAX_CHANNELS_COUNT */
|
||||
};
|
||||
|
||||
static NO_CACHE adcsample_t fastAdcSampleBuf[ADC_BUF_DEPTH_FAST * ADC_MAX_CHANNELS_COUNT];
|
||||
AdcDevice fastAdc(&adcgrpcfgFast, fastAdcSampleBuf, efi::size(fastAdcSampleBuf));
|
||||
|
||||
static void fast_adc_callback(GPTDriver*) {
|
||||
|
|
|
@ -22,13 +22,10 @@ typedef struct {
|
|||
|
||||
static usb_buf_s usbBuf;
|
||||
|
||||
|
||||
static bool isUsbSerialInitialized = false;
|
||||
|
||||
static bool isUsbSerialInitStarted = false;
|
||||
|
||||
static thread_reference_t threadrx = NULL;
|
||||
|
||||
// called from the USB IRQ handler
|
||||
static void onUsbDataReceived(uint8_t* pu8Data, uint32_t u32ReceviedSize) {
|
||||
osalSysLockFromISR();
|
||||
|
|
Loading…
Reference in New Issue