commit | 54907c7014f2068c62fcbe60e72bb052f76074a6 | [log] [tgz] |
---|---|---|
author | Bartosz Bilas <bartosz.bilas@hotmail.com> | Fri Jul 30 08:10:42 2021 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Nov 04 16:23:05 2021 +0100 |
tree | 1e7b561004847b19cad20655f5b71d26b4d70c84 | |
parent | ea25b92cd9e1cd8a78f4b544a497a80bec534680 [diff] |
drivers: spi: spi_context: improve support of multiple cs gpios Add extra cs_gpios and num_cs_gpios members into spi_context structure that will be used to initialize all defined cs gpios during the driver initialization using SPI_CONTEXT_CS_GPIOS_INITIALIZE macro. While at it add a new spi_context_cs_configure_all function that allows the user to configure all available cs gpios in inactive mode. Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>