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

Function spi_soft_set_miso

components/drivers/spi/dev_soft_spi.c:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173static void spi_soft_set_miso(void *data, rt_int32_t state)
174{
175 struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data;
176 if (state)
177 {
178 rt_pin_write(cfg->miso, PIN_HIGH);
179 }
180 else
181 {
182 rt_pin_write(cfg->miso, PIN_LOW);
183 }
184}
185
186static rt_int32_t spi_soft_get_sclk(void *data)
187{

Callers

nothing calls this directly

Calls 1

rt_pin_writeFunction · 0.50

Tested by

no test coverage detected