1# SPDX-License-Identifier: Apache-2.0 2 3zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/w1.h) 4 5zephyr_library() 6 7zephyr_sources_ifdef(CONFIG_USERSPACE w1_handlers.c) 8zephyr_library_sources_ifdef(CONFIG_W1_SHELL w1_shell.c) 9zephyr_library_sources(w1_common.c) 10 11# drivers implementing link functions (read, write, reset) 12zephyr_library_sources_ifdef(CONFIG_W1_DS2482_800 w1_ds2482-800.c w1_ds2482-800_channel.c) 13zephyr_library_sources_ifdef(CONFIG_W1_DS2484 w1_ds2484.c) 14zephyr_library_sources_ifdef(CONFIG_W1_DS2485 w1_ds2485.c) 15zephyr_library_sources_ifdef(CONFIG_W1_DS2477_85_COMMON w1_ds2477_85_common.c) 16zephyr_library_sources_ifdef(CONFIG_W1_MAX32 w1_max32.c) 17zephyr_library_sources_ifdef(CONFIG_W1_TEST w1_test.c) 18zephyr_library_sources_ifdef(CONFIG_W1_ZEPHYR_GPIO w1_zephyr_gpio.c) 19zephyr_library_sources_ifdef(CONFIG_W1_ZEPHYR_SERIAL w1_zephyr_serial.c) 20 21# network functions: 22if(CONFIG_W1_NET) 23# network functions should be callable from user as well as supervisor mode: 24remove_definitions(-D__ZEPHYR_SUPERVISOR__) 25zephyr_library_sources(w1_net.c) 26endif() #CONFIG_W1_NET 27