Skip to content

Commit 0806c9c

Browse files
dimitrije-lilickartben
authored andcommitted
i2c: Add RTIO-compatible driver for adi MAX32
Created MAX32 driver with RTIO functionalities. Updated CMakeLists. Signed-off-by: Dimitrije Lilic <[email protected]>
1 parent d2f37d0 commit 0806c9c

File tree

2 files changed

+444
-1
lines changed

2 files changed

+444
-1
lines changed

drivers/i2c/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ zephyr_library_sources_ifdef(CONFIG_I2C_ITE_IT8XXX2 i2c_ite_it8xxx2.c)
3737
zephyr_library_sources_ifdef(CONFIG_I2C_ITE_ENHANCE i2c_ite_enhance.c)
3838
zephyr_library_sources_ifdef(CONFIG_I2C_LITEX i2c_litex.c)
3939
zephyr_library_sources_ifdef(CONFIG_I2C_LPC11U6X i2c_lpc11u6x.c)
40-
zephyr_library_sources_ifdef(CONFIG_I2C_MAX32 i2c_max32.c)
4140
zephyr_library_sources_ifdef(CONFIG_I2C_MCHP_MSS i2c_mchp_mss.c)
4241
zephyr_library_sources_ifdef(CONFIG_I2C_MCUX i2c_mcux.c)
4342
zephyr_library_sources_ifdef(CONFIG_I2C_MCUX_FLEXCOMM i2c_mcux_flexcomm.c)
@@ -79,6 +78,11 @@ else()
7978
i2c_sam_twihs.c
8079
)
8180
endif()
81+
if(CONFIG_I2C_RTIO)
82+
zephyr_library_sources_ifdef(CONFIG_I2C_MAX32 i2c_max32_rtio.c)
83+
else()
84+
zephyr_library_sources_ifdef(CONFIG_I2C_MAX32 i2c_max32.c)
85+
endif()
8286
zephyr_library_sources_ifdef(CONFIG_I2C_SAM_TWIM i2c_sam4l_twim.c)
8387
zephyr_library_sources_ifdef(CONFIG_I2C_SAM0 i2c_sam0.c)
8488
zephyr_library_sources_ifdef(CONFIG_I2C_SBCON i2c_sbcon.c)

0 commit comments

Comments
 (0)