| 197 | } |
| 198 | |
| 199 | static rt_err_t spi_configure(struct rt_spi_device *device, |
| 200 | struct rt_spi_configuration *configuration) |
| 201 | { |
| 202 | rt_err_t ret = RT_EOK; |
| 203 | struct pico_spi *spi = rt_container_of(device->bus, struct pico_spi, parent); |
| 204 | ret = pico_spi_init(spi, configuration); |
| 205 | |
| 206 | return ret; |
| 207 | } |
| 208 | |
| 209 | static const struct rt_spi_ops pico_spi_ops = |
| 210 | { |
nothing calls this directly
no test coverage detected