MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / spi_soft_dir_mosi

Function spi_soft_dir_mosi

components/drivers/spi/dev_soft_spi.c:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static void spi_soft_dir_mosi(void *data, rt_int32_t state)
205{
206 struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data;
207 if (state)
208 {
209 rt_pin_mode(cfg->mosi, PIN_MODE_INPUT);
210 }
211 else
212 {
213 rt_pin_mode(cfg->mosi, PIN_MODE_OUTPUT);
214 }
215}
216
217static void spi_soft_dir_miso(void *data, rt_int32_t state)
218{

Callers

nothing calls this directly

Calls 1

rt_pin_modeFunction · 0.50

Tested by

no test coverage detected