zephyr/include/drivers
Martí Bolívar d6cfa10b8f drivers: spi: add helpers for initializing from DT
Add helper macros for initializing a struct spi_sconfig for a SPI
device which is defined in the devicetree. They are available from C
only due to C++ compatibility issues.

For some fields, like 'frequency', we just get the value from the
standard devicetree property. For others, like the spi_cs_control
structure's 'gpio_dev', we rely on the new DEVICE_DT_GET() macro.

This patch does not change anything for controlling SPI devices that
aren't set up in devicetree. It is entirely a convenience for driver
and application code that relies on DT.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-23 10:34:19 -05:00
..
adc
bluetooth
clock_control
console
dma
ec_host_cmd_periph
gpio
i2c/slave
ieee802154
interrupt_controller
led
modem
pcie
rtc
sensor
timer
uart
usb
virtualization
adc.h
can.h
clock_control.h
counter.h
dac.h
display.h
dma.h
ec_host_cmd_periph.h
edac.h
eeprom.h
entropy.h
espi_emul.h
espi_saf.h
espi.h
flash.h
gna.h
gpio.h
gsm_ppp.h
hwinfo.h
i2c_emul.h
i2c.h
i2s.h
ipm.h
kscan.h
led_strip.h
led.h
lora.h
peci.h
pinmux.h
ps2.h
psci.h
pwm.h
regulator.h
sensor.h
spi_emul.h
spi.h drivers: spi: add helpers for initializing from DT 2021-02-23 10:34:19 -05:00
uart.h
video-controls.h
video.h
watchdog.h