| 16 | // ============================================================================ |
| 17 | |
| 18 | Spi::Spi(int clock_pin, fl::span<const int> data_pins, |
| 19 | spi_output_mode_t output_mode, |
| 20 | u32 clock_speed_hz) |
| 21 | : Spi(SpiConfig(clock_pin, data_pins, clock_speed_hz, output_mode, 0)) { |
| 22 | } |
| 23 | |
| 24 | Spi::Spi(const SpiConfig& config) |
| 25 | : is_ok(false), error_code(SPIError::NOT_INITIALIZED) { |