mirror of https://github.com/rusefi/rusefi.git
magic constant bad
This commit is contained in:
parent
3627276f58
commit
5af710ff73
|
@ -75,7 +75,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAL_USE_SPI
|
#if HAL_USE_SPI
|
||||||
extern bool isSpiInitialized[6];
|
extern bool isSpiInitialized[SPI_TOTAL_COUNT];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only one consumer can use SPI bus at a given time
|
* Only one consumer can use SPI bus at a given time
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
#if HAL_USE_SPI
|
#if HAL_USE_SPI
|
||||||
bool isSpiInitialized[5] = { false, false, false, false, false };
|
bool isSpiInitialized[SPI_TOTAL_COUNT] = { false, false, false, false, false, false };
|
||||||
|
|
||||||
struct af_pairs {
|
struct af_pairs {
|
||||||
brain_pin_e pin;
|
brain_pin_e pin;
|
||||||
|
@ -313,4 +313,4 @@ SPIConfig mmc_ls_spicfg = {
|
||||||
.cr2 = 0
|
.cr2 = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* HAL_USE_SPI */
|
#endif /* HAL_USE_SPI */
|
||||||
|
|
|
@ -65,7 +65,7 @@ void HardFaultVector(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAL_USE_SPI || defined(__DOXYGEN__)
|
#if HAL_USE_SPI || defined(__DOXYGEN__)
|
||||||
bool isSpiInitialized[6] = { false, false, false, false, false, false };
|
bool isSpiInitialized[SPI_TOTAL_COUNT] = { false, false, false, false, false, false };
|
||||||
|
|
||||||
static int getSpiAf(SPIDriver *driver) {
|
static int getSpiAf(SPIDriver *driver) {
|
||||||
#if STM32_SPI_USE_SPI1
|
#if STM32_SPI_USE_SPI1
|
||||||
|
|
|
@ -58,7 +58,7 @@ void HardFaultVector(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAL_USE_SPI || defined(__DOXYGEN__)
|
#if HAL_USE_SPI || defined(__DOXYGEN__)
|
||||||
bool isSpiInitialized[6] = { false, false, false, false, false, false };
|
bool isSpiInitialized[SPI_TOTAL_COUNT] = { false, false, false, false, false, false };
|
||||||
|
|
||||||
static int getSpiAf(SPIDriver *driver) {
|
static int getSpiAf(SPIDriver *driver) {
|
||||||
#if STM32_SPI_USE_SPI1
|
#if STM32_SPI_USE_SPI1
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
#if HAL_USE_SPI
|
#if HAL_USE_SPI
|
||||||
bool isSpiInitialized[5] = { false, false, false, false, false };
|
bool isSpiInitialized[SPI_TOTAL_COUNT] = { false, false, false, false, false, false };
|
||||||
|
|
||||||
static int getSpiAf(SPIDriver *driver) {
|
static int getSpiAf(SPIDriver *driver) {
|
||||||
#if STM32_SPI_USE_SPI1
|
#if STM32_SPI_USE_SPI1
|
||||||
|
@ -219,4 +219,4 @@ SPIConfig mmc_ls_spicfg = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* HAL_USE_SPI */
|
#endif /* HAL_USE_SPI */
|
||||||
|
|
Loading…
Reference in New Issue