|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_SPI_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_SPI_H_
52#define DT_SPI_HAS_CS_GPIOS(spi) DT_NODE_HAS_PROP(spi, cs_gpios)
78#define DT_SPI_NUM_CS_GPIOS(spi) \
79 COND_CODE_1(DT_SPI_HAS_CS_GPIOS(spi), \
80 (DT_PROP_LEN(spi, cs_gpios)), (0))
117#define DT_SPI_DEV_HAS_CS_GPIOS(spi_dev) DT_SPI_HAS_CS_GPIOS(DT_BUS(spi_dev))
150#define DT_SPI_DEV_CS_GPIOS_CTLR(spi_dev) \
151 DT_GPIO_CTLR_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev))
183#define DT_SPI_DEV_CS_GPIOS_PIN(spi_dev) \
184 DT_GPIO_PIN_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev))
211#define DT_SPI_DEV_CS_GPIOS_FLAGS(spi_dev) \
212 DT_GPIO_FLAGS_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev))
221#define DT_INST_SPI_DEV_HAS_CS_GPIOS(inst) \
222 DT_SPI_DEV_HAS_CS_GPIOS(DT_DRV_INST(inst))
231#define DT_INST_SPI_DEV_CS_GPIOS_CTLR(inst) \
232 DT_SPI_DEV_CS_GPIOS_CTLR(DT_DRV_INST(inst))
240#define DT_INST_SPI_DEV_CS_GPIOS_PIN(inst) \
241 DT_SPI_DEV_CS_GPIOS_PIN(DT_DRV_INST(inst))
250#define DT_INST_SPI_DEV_CS_GPIOS_FLAGS(inst) \
251 DT_SPI_DEV_CS_GPIOS_FLAGS(DT_DRV_INST(inst))