mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-17 04:07:03 +00:00
Make drivers multi-instance wherever possible using DT_INST_FOREACH. This allows removing DT_HAS_DRV_INST in favor of making drivers just do the right thing regardless of how many instances there are. There are a few exceptions: - SoC drivers which use CMake input files (like i2c_dw.c) or otherwise would require more time to convert than I have at the moment. For the sake of expediency, just inline the DT_HAS_DRV_INST expansion for now in these cases. - SoC drivers which are explicitly single-instance (like the nRF SAADC driver). Again for the sake of expediency, drop a BUILD_ASSERT in those cases to make sure the assumption that all supported SoCs have at most one available instance is valid, failing fast otherwise. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.dw | ||
Kconfig.esp32 | ||
Kconfig.imx | ||
Kconfig.litex | ||
Kconfig.mcux | ||
Kconfig.mcux_ftm | ||
Kconfig.mcux_tpm | ||
Kconfig.nrf5_sw | ||
Kconfig.nrfx | ||
Kconfig.pca9685 | ||
Kconfig.rv32m1_tpm | ||
Kconfig.sam | ||
Kconfig.sifive | ||
Kconfig.stm32 | ||
Kconfig.xec | ||
pwm_dw.c | ||
pwm_handlers.c | ||
pwm_imx.c | ||
pwm_led_esp32.c | ||
pwm_litex.c | ||
pwm_mchp_xec.c | ||
pwm_mcux_ftm.c | ||
pwm_mcux_tpm.c | ||
pwm_mcux.c | ||
pwm_nrf5_sw.c | ||
pwm_nrfx.c | ||
pwm_pca9685.c | ||
pwm_pca9685.h | ||
pwm_rv32m1_tpm.c | ||
pwm_sam.c | ||
pwm_shell.c | ||
pwm_sifive.c | ||
pwm_stm32.c | ||
pwm_stm32.h |