| 145 | } |
| 146 | |
| 147 | static void spi_soft_set_sclk(void *data, rt_int32_t state) |
| 148 | { |
| 149 | struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data; |
| 150 | if (state) |
| 151 | { |
| 152 | rt_pin_write(cfg->sck, PIN_HIGH); |
| 153 | } |
| 154 | else |
| 155 | { |
| 156 | rt_pin_write(cfg->sck, PIN_LOW); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | static void spi_soft_set_mosi(void *data, rt_int32_t state) |
| 161 | { |
nothing calls this directly
no test coverage detected