Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix STM32F1 SPI device init, MKS_LCD12864 #19271

5 changes: 4 additions & 1 deletion Marlin/src/HAL/STM32F1/SPI.cpp
Expand Up @@ -40,6 +40,9 @@
#include <boards.h>
#include <wirish.h>

#include "../../inc/MarlinConfig.h"
#include "spi_pins.h"

/** Time in ms for DMA receive timeout */
#define DMA_TIMEOUT 100

Expand Down Expand Up @@ -710,6 +713,6 @@ static spi_baud_rate determine_baud_rate(spi_dev *dev, uint32_t freq) {
return baud_rates[i];
}

SPIClass SPI(1);
SPIClass SPI(SPI_DEVICE);

#endif // __STM32F1__