| 158 | } |
| 159 | |
| 160 | static void spi_soft_set_mosi(void *data, rt_int32_t state) |
| 161 | { |
| 162 | struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data; |
| 163 | if (state) |
| 164 | { |
| 165 | rt_pin_write(cfg->mosi, PIN_HIGH); |
| 166 | } |
| 167 | else |
| 168 | { |
| 169 | rt_pin_write(cfg->mosi, PIN_LOW); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | static void spi_soft_set_miso(void *data, rt_int32_t state) |
| 174 | { |
nothing calls this directly
no test coverage detected