| 215 | } |
| 216 | |
| 217 | static 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 | |
| 230 | static struct rt_spi_bit_ops soft_spi_ops= |
| 231 | { |
nothing calls this directly
no test coverage detected