| 132 | |
| 133 | |
| 134 | static void spi_soft_tog_sclk(void *data) |
| 135 | { |
| 136 | struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data; |
| 137 | if(rt_pin_read(cfg->sck) == PIN_HIGH) |
| 138 | { |
| 139 | rt_pin_write(cfg->sck, PIN_LOW); |
| 140 | } |
| 141 | else |
| 142 | { |
| 143 | rt_pin_write(cfg->sck, PIN_HIGH); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | static void spi_soft_set_sclk(void *data, rt_int32_t state) |
| 148 | { |
nothing calls this directly
no test coverage detected