only:alphax-4k-gdi_debug
This commit is contained in:
parent
9cc337fb60
commit
95d7b7f4fc
|
@ -1,6 +1,6 @@
|
|||
SHORT_BOARD_NAME=alphax-4k-gdi
|
||||
PROJECT_CPU=ARCH_STM32F7
|
||||
SKIP_RATE=10
|
||||
SKIP_RATE=100
|
||||
EXTRA_PARAMS=-DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_CHECKS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE -DEFI_LUA=FALSE -DEFI_HPFP=FALSE -DEFI_ALTERNATOR_CONTROL=FALSE -DEFI_LOGIC_ANALYZER=FALSE -DEFI_TOOTH_LOGGER=FALSE -DRAMDISK_INVALID
|
||||
DEBUG_LEVEL_OPT=-O0 -ggdb -g
|
||||
INCLUDE_ELF=yes
|
||||
|
|
|
@ -142,7 +142,7 @@ brain_pin_e getSckPin(spi_device_e device) {
|
|||
*/
|
||||
SPIDriver * getSpiDevice(spi_device_e spiDevice) {
|
||||
if (spiDevice == SPI_NONE) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
#if STM32_SPI_USE_SPI1
|
||||
if (spiDevice == SPI_DEVICE_1) {
|
||||
|
@ -175,7 +175,7 @@ SPIDriver * getSpiDevice(spi_device_e spiDevice) {
|
|||
}
|
||||
#endif
|
||||
firmwareError(ObdCode::CUSTOM_ERR_UNEXPECTED_SPI, "Unexpected SPI device: %d", spiDevice);
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -187,16 +187,24 @@ void Pt2001::init() {
|
|||
spiCfg.ssport = getHwPort("mc33816", engineConfiguration->mc33816_cs);
|
||||
spiCfg.sspad = getHwPin("mc33816", engineConfiguration->mc33816_cs);
|
||||
|
||||
#if HW_MICRO_RUSEFI
|
||||
// hard-coded for now, just resolve the conflict with SD card!
|
||||
engineConfiguration->mc33816spiDevice = SPI_DEVICE_3;
|
||||
#endif
|
||||
|
||||
if (engineConfiguration->mc33816spiDevice == SPI_NONE) {
|
||||
criticalError("mc33816 needs SPI selection");
|
||||
}
|
||||
|
||||
driver = getSpiDevice(engineConfiguration->mc33816spiDevice);
|
||||
if (driver == NULL) {
|
||||
if (driver == nullptr) {
|
||||
// error already reported
|
||||
return;
|
||||
}
|
||||
|
||||
efiPrintf("mc33 starting SPI");
|
||||
spiStart(driver, &spiCfg);
|
||||
efiPrintf("mc33 started SPI");
|
||||
|
||||
// addConsoleAction("mc33_stats", showStats);
|
||||
// addConsoleAction("mc33_restart", mcRestart);
|
||||
|
|
Loading…
Reference in New Issue