auto-sync
This commit is contained in:
parent
84a6c0905f
commit
0444659ac5
|
@ -38,6 +38,9 @@ static GPIO_TypeDef *PORTS[] = { GPIOA, GPIOB, GPIOC, GPIOD, GPIOF};
|
|||
pin_output_mode_e DEFAULT_OUTPUT = OM_DEFAULT;
|
||||
pin_output_mode_e OPENDRAIN_OUTPUT = OM_OPENDRAIN;
|
||||
|
||||
/**
|
||||
* This method is used for digital GPIO pins only, for peripheral pins see mySetPadMode
|
||||
*/
|
||||
static void outputPinRegisterExt(const char *msg, OutputPin *output, GPIO_TypeDef *port, uint32_t pin,
|
||||
pin_output_mode_e *outputMode) {
|
||||
#if EFI_GPIO
|
||||
|
|
|
@ -323,7 +323,7 @@ void initSpiCs(SPIConfig *spiConfig, brain_pin_e csPin) {
|
|||
ioportmask_t pin = getHwPin(csPin);
|
||||
spiConfig->ssport = port;
|
||||
spiConfig->sspad = pin;
|
||||
mySetPadMode("chip select", port, pin, PAL_STM32_MODE_OUTPUT);
|
||||
mySetPadMode2("chip select", csPin, PAL_STM32_MODE_OUTPUT);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue