magic constant bad

This commit is contained in:
rusefillc 2024-02-26 18:37:53 -05:00
parent 3627276f58
commit 5af710ff73
5 changed files with 7 additions and 7 deletions

View File

@ -75,7 +75,7 @@
#endif
#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

View File

@ -9,7 +9,7 @@
#include "pch.h"
#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 {
brain_pin_e pin;

View File

@ -65,7 +65,7 @@ void HardFaultVector(void) {
}
#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) {
#if STM32_SPI_USE_SPI1

View File

@ -58,7 +58,7 @@ void HardFaultVector(void) {
}
#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) {
#if STM32_SPI_USE_SPI1

View File

@ -9,7 +9,7 @@
#include "pch.h"
#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) {
#if STM32_SPI_USE_SPI1