support spi4/5/6
This commit is contained in:
parent
86b9d1819d
commit
3627276f58
|
@ -402,14 +402,11 @@
|
|||
#define EFI_INTERNAL_FAST_ADC_GPT &GPTD6
|
||||
|
||||
#define EFI_SPI1_AF 5
|
||||
|
||||
#define EFI_SPI2_AF 5
|
||||
|
||||
/**
|
||||
* This section is for right-side center SPI
|
||||
*/
|
||||
|
||||
#define EFI_SPI3_AF 6
|
||||
#define EFI_SPI4_AF 5
|
||||
#define EFI_SPI5_AF 5
|
||||
#define EFI_SPI6_AF 6
|
||||
|
||||
/**
|
||||
* Patched version of ChibiOS/RT support extra details in the system error messages
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
#endif
|
||||
|
||||
#if HAL_USE_SPI
|
||||
extern bool isSpiInitialized[5];
|
||||
extern bool isSpiInitialized[6];
|
||||
|
||||
/**
|
||||
* Only one consumer can use SPI bus at a given time
|
||||
|
|
|
@ -65,7 +65,7 @@ void HardFaultVector(void) {
|
|||
}
|
||||
|
||||
#if HAL_USE_SPI || defined(__DOXYGEN__)
|
||||
bool isSpiInitialized[5] = { false, false, false, false, false };
|
||||
bool isSpiInitialized[6] = { false, false, false, false, false, false };
|
||||
|
||||
static int getSpiAf(SPIDriver *driver) {
|
||||
#if STM32_SPI_USE_SPI1
|
||||
|
|
|
@ -58,7 +58,7 @@ void HardFaultVector(void) {
|
|||
}
|
||||
|
||||
#if HAL_USE_SPI || defined(__DOXYGEN__)
|
||||
bool isSpiInitialized[5] = { false, false, false, false, false };
|
||||
bool isSpiInitialized[6] = { false, false, false, false, false, false };
|
||||
|
||||
static int getSpiAf(SPIDriver *driver) {
|
||||
#if STM32_SPI_USE_SPI1
|
||||
|
|
|
@ -1642,7 +1642,19 @@ int8_t[TRACTION_CONTROL_ETB_DROP_SIZE x TRACTION_CONTROL_ETB_DROP_SIZE] traction
|
|||
|
||||
float auxSpeed1Multiplier
|
||||
float brakeMeanEffectivePressureDifferential
|
||||
uint8_t[146] unusedOftenChangesDuringFirmwareUpdate;;"units", 1, 0, 0, 1, 0
|
||||
Gpio spi4mosiPin;
|
||||
Gpio spi4misoPin;
|
||||
Gpio spi4sckPin;
|
||||
|
||||
Gpio spi5mosiPin;
|
||||
Gpio spi5misoPin;
|
||||
Gpio spi5sckPin;
|
||||
|
||||
Gpio spi6mosiPin;
|
||||
Gpio spi6misoPin;
|
||||
Gpio spi6sckPin;
|
||||
|
||||
uint8_t[128] unusedOftenChangesDuringFirmwareUpdate;;"units", 1, 0, 0, 1, 0
|
||||
|
||||
! end of engine_configuration_s
|
||||
end_struct
|
||||
|
|
Loading…
Reference in New Issue