soc: st: stm32: stm32u0x: add soc configs for i2c shared irq
check if two or three I2C instances with same irq are enabled at same time then enable shared_interrupt handler. Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
This commit is contained in:
parent
72bfcc67cf
commit
4a1f39b9d3
|
@ -7,4 +7,13 @@ if SOC_SERIES_STM32U0X
|
|||
|
||||
rsource "Kconfig.defconfig.stm32u0*"
|
||||
|
||||
if I2C_STM32
|
||||
|
||||
config SHARED_INTERRUPTS
|
||||
default y if $(dt_nodelabel_enabled,i2c2) && $(dt_nodelabel_enabled,i2c3)
|
||||
default y if $(dt_nodelabel_enabled,i2c2) && $(dt_nodelabel_enabled,i2c4)
|
||||
default y if $(dt_nodelabel_enabled,i2c3) && $(dt_nodelabel_enabled,i2c4)
|
||||
|
||||
endif # I2C_STM32
|
||||
|
||||
endif # SOC_SERIES_STM32U0X
|
||||
|
|
Loading…
Reference in New Issue