auto-sync
This commit is contained in:
parent
7610671ca0
commit
70fa5911f9
|
@ -267,10 +267,10 @@
|
|||
// todo: start using consoleUartDevice
|
||||
#define EFI_CONSOLE_UART_DEVICE (&SD3)
|
||||
|
||||
// todo: start using console_tx_pin
|
||||
// todo: start using consoleSerialTxPin
|
||||
#define EFI_CONSOLE_TX_PORT GPIOC
|
||||
#define EFI_CONSOLE_TX_PIN 10
|
||||
// todo: start using console_rx_pin
|
||||
// todo: start using consoleSerialRxPin
|
||||
#define EFI_CONSOLE_RX_PORT GPIOC
|
||||
#define EFI_CONSOLE_RX_PIN 11
|
||||
// todo: this should be detected automatically based on pin selection
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Feb 13 21:22:31 EST 2017
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Wed Feb 15 10:33:44 EST 2017
|
||||
// begin
|
||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||
|
@ -644,11 +644,11 @@ typedef struct {
|
|||
/**
|
||||
* offset 576
|
||||
*/
|
||||
brain_pin_e console_rx_pin;
|
||||
int unused77;
|
||||
/**
|
||||
* offset 580
|
||||
*/
|
||||
brain_pin_e console_tx_pin;
|
||||
int unused78;
|
||||
/**
|
||||
* offset 584
|
||||
*/
|
||||
|
@ -1500,10 +1500,12 @@ typedef struct {
|
|||
*/
|
||||
brain_pin_e binarySerialRxPin;
|
||||
/**
|
||||
* todo: finish pin migration from hard-coded to configurable?
|
||||
* offset 1940
|
||||
*/
|
||||
brain_pin_e consoleSerialTxPin;
|
||||
/**
|
||||
* todo: finish pin migration from hard-coded to configurable?
|
||||
* offset 1944
|
||||
*/
|
||||
brain_pin_e consoleSerialRxPin;
|
||||
|
@ -2049,4 +2051,4 @@ typedef struct {
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Feb 13 21:22:31 EST 2017
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Wed Feb 15 10:33:44 EST 2017
|
||||
|
|
|
@ -506,8 +506,8 @@
|
|||
#define gpioPinModes15_offset 1188
|
||||
#define gpioPinModes16_offset 1192
|
||||
#define consoleUartDevice_offset 1196
|
||||
#define console_rx_pin_offset 1200
|
||||
#define console_tx_pin_offset 1204
|
||||
#define unused77_offset 1200
|
||||
#define unused78_offset 1204
|
||||
#define nb2ratioFrom_offset 1208
|
||||
#define nb2ratioTo_offset 1212
|
||||
#define triggerErrorPin_offset 1216
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
EXTERN_ENGINE;
|
||||
|
||||
float getVRef(DECLARE_ENGINE_PARAMETER_F) {
|
||||
return getVoltageDivided("vref", engineConfiguration->vRefAdcChannel);
|
||||
// not currently used return getVoltageDivided("vref", engineConfiguration->vRefAdcChannel);
|
||||
return NAN;
|
||||
}
|
||||
|
||||
bool hasVBatt(DECLARE_ENGINE_PARAMETER_F) {
|
||||
|
|
|
@ -533,7 +533,7 @@ static void configureInputs(void) {
|
|||
addChannel("fuel", engineConfiguration->fuelLevelSensor, ADC_SLOW);
|
||||
addChannel("pPS", engineConfiguration->pedalPositionChannel, ADC_SLOW);
|
||||
addChannel("VBatt", engineConfiguration->vbattAdcChannel, ADC_SLOW);
|
||||
addChannel("Vref", engineConfiguration->vRefAdcChannel, ADC_SLOW);
|
||||
// not currently used addChannel("Vref", engineConfiguration->vRefAdcChannel, ADC_SLOW);
|
||||
addChannel("CLT", engineConfiguration->clt.adcChannel, ADC_SLOW);
|
||||
addChannel("IAT", engineConfiguration->iat.adcChannel, ADC_SLOW);
|
||||
addChannel("AFR", engineConfiguration->afr.hwChannel, ADC_SLOW);
|
||||
|
|
|
@ -517,8 +517,8 @@ bit is_enabled_spi_2
|
|||
|
||||
custom uart_device_e 4 bits,U32, @OFFSET@, [0:1], "Off", "UART1", "UART2", "UART3"
|
||||
uart_device_e consoleUartDevice;
|
||||
brain_pin_e console_rx_pin;
|
||||
brain_pin_e console_tx_pin;
|
||||
int unused77;
|
||||
int unused78;
|
||||
float nb2ratioFrom;;"value", 1, 0, 0, 1000, 5
|
||||
float nb2ratioTo;;"value", 1, 0, 0, 1000, 5
|
||||
|
||||
|
@ -691,8 +691,8 @@ custom pin_mode_e 4 bits, U32, @OFFSET@, [0:5], @@pin_mode_e_enum@@
|
|||
brain_pin_e runningPin;green LED on discovery by default
|
||||
brain_pin_e binarySerialTxPin;
|
||||
brain_pin_e binarySerialRxPin;
|
||||
brain_pin_e consoleSerialTxPin;
|
||||
brain_pin_e consoleSerialRxPin;
|
||||
brain_pin_e consoleSerialTxPin; todo: finish pin migration from hard-coded to configurable?
|
||||
brain_pin_e consoleSerialRxPin;todo: finish pin migration from hard-coded to configurable?
|
||||
float[ENGINE_NOISE_CURVE_SIZE] knockNoise;Knock sensor output knock detection threshold depending on current RPM;"v", 1, 0, 0.0, 10, 2
|
||||
float[ENGINE_NOISE_CURVE_SIZE] knockNoiseRpmBins;;"RPM", 1, 0, 0.0, 18000, 2
|
||||
pid_s etb;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config;
|
||||
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Feb 13 23:36:28 EST 2017
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Wed Feb 15 10:33:44 EST 2017
|
||||
public class Fields {
|
||||
public static final int LE_COMMAND_LENGTH = 200;
|
||||
public static final int FSIO_ADC_COUNT = 4;
|
||||
|
@ -510,8 +510,8 @@ public class Fields {
|
|||
public static final int gpioPinModes15_offset = 1188;
|
||||
public static final int gpioPinModes16_offset = 1192;
|
||||
public static final int consoleUartDevice_offset = 1196;
|
||||
public static final int console_rx_pin_offset = 1200;
|
||||
public static final int console_tx_pin_offset = 1204;
|
||||
public static final int unused77_offset = 1200;
|
||||
public static final int unused78_offset = 1204;
|
||||
public static final int nb2ratioFrom_offset = 1208;
|
||||
public static final int nb2ratioTo_offset = 1212;
|
||||
public static final int triggerErrorPin_offset = 1216;
|
||||
|
@ -1306,8 +1306,8 @@ public class Fields {
|
|||
public static final Field GPIOPINMODES15 = Field.create("GPIOPINMODES15", 1188, FieldType.INT, pin_output_mode_e);
|
||||
public static final Field GPIOPINMODES16 = Field.create("GPIOPINMODES16", 1192, FieldType.INT, pin_output_mode_e);
|
||||
public static final Field CONSOLEUARTDEVICE = Field.create("CONSOLEUARTDEVICE", 1196, FieldType.INT);
|
||||
public static final Field CONSOLE_RX_PIN = Field.create("CONSOLE_RX_PIN", 1200, FieldType.INT, brain_pin_e);
|
||||
public static final Field CONSOLE_TX_PIN = Field.create("CONSOLE_TX_PIN", 1204, FieldType.INT, brain_pin_e);
|
||||
public static final Field UNUSED77 = Field.create("UNUSED77", 1200, FieldType.INT);
|
||||
public static final Field UNUSED78 = Field.create("UNUSED78", 1204, FieldType.INT);
|
||||
public static final Field NB2RATIOFROM = Field.create("NB2RATIOFROM", 1208, FieldType.FLOAT);
|
||||
public static final Field NB2RATIOTO = Field.create("NB2RATIOTO", 1212, FieldType.FLOAT);
|
||||
public static final Field TRIGGERERRORPIN = Field.create("TRIGGERERRORPIN", 1216, FieldType.INT, brain_pin_e);
|
||||
|
|
Loading…
Reference in New Issue