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

Function spi_soft_dir_miso

components/drivers/spi/dev_soft_spi.c:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217static void spi_soft_dir_miso(void *data, rt_int32_t state)
218{
219 struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data;
220 if (state)
221 {
222 rt_pin_mode(cfg->miso, PIN_MODE_INPUT);
223 }
224 else
225 {
226 rt_pin_mode(cfg->miso, PIN_MODE_OUTPUT);
227 }
228}
229
230static struct rt_spi_bit_ops soft_spi_ops=
231{

Callers

nothing calls this directly

Calls 1

rt_pin_modeFunction · 0.50

Tested by

no test coverage detected