We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9063f9c commit 55c2e71Copy full SHA for 55c2e71
arch/sam/SPI.cpp
@@ -30,6 +30,10 @@ void SPIClass::begin() {
30
}
31
32
void SPIClass::begin(uint8_t _pin) {
33
+ initCb();
34
+ SPI_Configure(spi, id, SPI_MR_MSTR | SPI_MR_PS | SPI_MR_MODFDIS);
35
+ SPI_Enable(spi);
36
+
37
uint32_t spiPin = BOARD_PIN_TO_SPI_PIN(_pin);
38
PIO_Configure(
39
g_APinDescription[spiPin].pPort,
0 commit comments