CAN progress

This commit is contained in:
rusefi 2020-03-31 16:52:52 -04:00
parent 81211219f2
commit 90e4fc3922
9 changed files with 7 additions and 43 deletions

View File

@ -341,19 +341,7 @@ case TLE6240_PIN_9:
}
return NULL;
}
const char *getCan_device_mode_e(can_device_mode_e value){
switch(value) {
case CD_OFF:
return "CD_OFF";
case CD_USE_CAN1:
return "CD_USE_CAN1";
case CD_USE_CAN2:
return "CD_USE_CAN2";
case Internal_ForceMyEnumIntSize_can_device_mode:
return "Internal_ForceMyEnumIntSize_can_device_mode";
}
return NULL;
}
const char *getCan_nbc_e(can_nbc_e value){
switch(value) {
case CAN_BUS_MAZDA_RX8:

View File

@ -16,7 +16,6 @@ const char *getAdc_channel_e(adc_channel_e value);
const char *getAdc_channel_mode_e(adc_channel_mode_e value);
const char *getAir_pressure_sensor_type_e(air_pressure_sensor_type_e value);
const char *getBrain_pin_e(brain_pin_e value);
const char *getCan_device_mode_e(can_device_mode_e value);
const char *getCan_nbc_e(can_nbc_e value);
const char *getChamber_style_e(chamber_style_e value);
const char *getCranking_ignition_mode_e(cranking_ignition_mode_e value);

View File

@ -1,4 +1,4 @@
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Mar 31 16:40:49 EDT 2020
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Mar 31 16:45:24 EDT 2020
// by class com.rusefi.output.CHeaderConsumer
// begin
#ifndef CONFIG_BOARDS_KINETIS_CONFIG_CONTROLLERS_ALGO_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
@ -1172,10 +1172,12 @@ struct engine_configuration_s {
*/
brain_pin_e sdCardCsPin;
/**
* set_can_tx_pin X
* offset 708
*/
brain_pin_e canTxPin;
/**
* set_can_rx_pin X
* offset 709
*/
brain_pin_e canRxPin;
@ -3256,4 +3258,4 @@ typedef struct persistent_config_s persistent_config_s;
#endif
// end
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Mar 31 16:40:49 EDT 2020
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Tue Mar 31 16:45:24 EDT 2020

View File

@ -329,7 +329,6 @@
#define camInputs4_offset 559
#define camInputs4_offset_hex 22f
#define CAN_DEFAULT_BASE 0x200
#define can_device_mode_e_enum "v0", "v1"
#define canNbcType_offset 480
#define canNbcType_offset_hex 1e0
#define canReadEnabled_offset 1464

View File

@ -485,19 +485,7 @@ case TLE8888_PIN_9:
}
return NULL;
}
const char *getCan_device_mode_e(can_device_mode_e value){
switch(value) {
case CD_OFF:
return "CD_OFF";
case CD_USE_CAN1:
return "CD_USE_CAN1";
case CD_USE_CAN2:
return "CD_USE_CAN2";
case Internal_ForceMyEnumIntSize_can_device_mode:
return "Internal_ForceMyEnumIntSize_can_device_mode";
}
return NULL;
}
const char *getCan_nbc_e(can_nbc_e value){
switch(value) {
case CAN_BUS_MAZDA_RX8:

View File

@ -16,7 +16,7 @@ const char *getAdc_channel_e(adc_channel_e value);
const char *getAdc_channel_mode_e(adc_channel_mode_e value);
const char *getAir_pressure_sensor_type_e(air_pressure_sensor_type_e value);
const char *getBrain_pin_e(brain_pin_e value);
const char *getCan_device_mode_e(can_device_mode_e value);
const char *getCan_nbc_e(can_nbc_e value);
const char *getChamber_style_e(chamber_style_e value);
const char *getCranking_ignition_mode_e(cranking_ignition_mode_e value);

View File

@ -718,14 +718,6 @@ typedef enum {
Force_4_bytes_size_cranking_map_type = ENUM_32_BITS,
} air_pressure_sensor_type_e;
typedef enum {
CD_OFF = 0,
CD_USE_CAN1 = 1,
CD_USE_CAN2 = 2,
Internal_ForceMyEnumIntSize_can_device_mode = ENUM_32_BITS,
} can_device_mode_e;
typedef enum {
SC_OFF = 0,
/**

View File

@ -329,7 +329,6 @@
#define camInputs4_offset 559
#define camInputs4_offset_hex 22f
#define CAN_DEFAULT_BASE 0x200
#define can_device_mode_e_enum "v0", "v1"
#define canNbcType_offset 480
#define canNbcType_offset_hex 1e0
#define canReadEnabled_offset 1464

View File

@ -204,9 +204,6 @@ custom debug_mode_e 4 bits, U32, @OFFSET@, [0:7], @@debug_mode_e_enum@@
#define vvt_mode_e_enum "First half", "Second half", "2GZ", "Miata NB2", "mode4", "mode5", "mode6", "mode7"
custom vvt_mode_e 4 bits, U32, @OFFSET@, [0:7], @@vvt_mode_e_enum@@
#define can_device_mode_e_enum "v0", "v1"
custom can_device_mode_e 4 bits, U32, @OFFSET@, [0:7], @@can_device_mode_e_enum@@
#define mass_storage_e_enum "Auto", "Always", "Never"
custom mass_storage_e 4 bits, U32, @OFFSET@, [0:7], @@mass_storage_e_enum@@