| 171 | } |
| 172 | |
| 173 | static 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 | |
| 186 | static rt_int32_t spi_soft_get_sclk(void *data) |
| 187 | { |
nothing calls this directly
no test coverage detected