fc86d0c3bc
Extract a helper function for handling an SMB alert, as every SMBus implementation will have to loop through the peripheral address which might have triggered the alert. Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
14 lines
430 B
CMake
14 lines
430 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/smbus.h)
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources(smbus_utils.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_SMBUS_SHELL smbus_shell.c)
|
|
zephyr_library_sources_ifdef(CONFIG_SMBUS_INTEL_PCH intel_pch_smbus.c)
|
|
zephyr_library_sources_ifdef(CONFIG_SMBUS_STM32 smbus_stm32.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE smbus_handlers.c)
|