default pinout nightmare
This commit is contained in:
parent
ba56a79ad5
commit
fd7353ee26
|
@ -8,4 +8,4 @@ BOARDINC = $(PROJECT_DIR)/config/boards/nucleo_f767 $(PROJECT_DIR)/config/stm32f
|
|||
LDSCRIPT= $(PROJECT_DIR)/config/boards/nucleo_f767/STM32F76xxI.ld
|
||||
|
||||
# Override DEFAULT_ENGINE_TYPE
|
||||
DDEFS += -DDEFAULT_ENGINE_TYPE=DEFAULT_FRANKENSO -DSTM32F767xx
|
||||
DDEFS += -DDEFAULT_ENGINE_TYPE=MINIMAL_PINS -DSTM32F767xx
|
||||
|
|
|
@ -191,7 +191,11 @@ void setHip9011FrankensoPinout(void) {
|
|||
CONFIGB(is_enabled_spi_2) = true;
|
||||
// todo: convert this to rusEfi, hardware-independent enum
|
||||
#if EFI_PROD_CODE
|
||||
#ifdef EFI_HIP_CS_PIN
|
||||
CONFIGB(hip9011CsPin) = EFI_HIP_CS_PIN;
|
||||
#else
|
||||
CONFIGB(hip9011CsPin) = GPIOB_0; // rev 0.4
|
||||
#endif
|
||||
CONFIGB(hip9011CsPinMode) = OM_OPENDRAIN;
|
||||
|
||||
CONFIGB(hip9011IntHoldPin) = GPIOB_11;
|
||||
|
|
|
@ -17,6 +17,7 @@ public class PresetsPane {
|
|||
private static final int MAZDA_MIATA_2003 = 47;
|
||||
private static final int TEST_V_12 = 49;
|
||||
private static final int ETB_BENCH = 58;
|
||||
private static final int MINIMAL_PINS = 99;
|
||||
|
||||
private JPanel content = new JPanel(new GridLayout(2, 4));
|
||||
|
||||
|
@ -26,6 +27,7 @@ public class PresetsPane {
|
|||
content.add(new SetEngineTypeCommandControl("Miata NB2", "engines/miata_nb.png", MAZDA_MIATA_2003).getContent());
|
||||
content.add(new SetEngineTypeCommandControl("V12", "engines/v12", TEST_V_12).getContent());
|
||||
content.add(new SetEngineTypeCommandControl("ETB bench", "", ETB_BENCH).getContent());
|
||||
content.add(new SetEngineTypeCommandControl("Minimal", "", MINIMAL_PINS).getContent());
|
||||
}
|
||||
|
||||
public JPanel getContent() {
|
||||
|
|
Loading…
Reference in New Issue