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.
2 parents d61c88a + bdb2c82 commit a1259bbCopy full SHA for a1259bb
libraries/SPI/SPI.cpp
@@ -97,6 +97,21 @@ void SPIClass::begin()
97
98
// blocking
99
nrfx_spim_init(&_spim, &cfg, NULL, NULL);
100
+
101
+ // highspeed SPIM should set SCK and MOSI to high drive
102
+ nrf_gpio_cfg(_uc_pinSCK,
103
+ NRF_GPIO_PIN_DIR_OUTPUT,
104
+ NRF_GPIO_PIN_INPUT_CONNECT,
105
+ NRF_GPIO_PIN_NOPULL,
106
+ NRF_GPIO_PIN_H0H1,
107
+ NRF_GPIO_PIN_NOSENSE);
108
109
+ nrf_gpio_cfg(_uc_pinMosi,
110
111
+ NRF_GPIO_PIN_INPUT_DISCONNECT,
112
113
114
115
}
116
117
void SPIClass::end()
0 commit comments