Skip to content
Commit 6008e7ee authored by Martí Bolívar's avatar Martí Bolívar Committed by Anas Nashif
Browse files

devicetree: spi: add CS GPIO controller accessors



Add two new macros for getting the chip select GPIO controller from a
SPI device:

- DT_SPI_DEV_CS_GPIOS_CTLR()
- DT_INST_SPI_DEV_CS_GPIOS_CTLR()

Now that we can get struct device pointers at build time directly from
a devicetree node identifier, it's useful to be able to get a
node_id for a CS GPIO controller from the SPI device, because that's
necessary for setting up the gpio_dev in a struct spi_cs_control.

Signed-off-by: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent 24b50536
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment