1# 1-Wire configuration options 2 3# Copyright (c) 2022 Thomas Stranger 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig W1 7 bool 8 prompt "1-Wire bus drivers" 9 select CRC 10 help 11 Enable 1-Wire Drivers 12 13if W1 14 15module = W1 16module-str = W1 17source "subsys/logging/Kconfig.template.log_config" 18 19config W1_INIT_PRIORITY 20 int 21 default 65 22 prompt "Init priority" 23 help 24 1-Wire device driver initialization priority. 25 26config W1_SHELL 27 bool "1-Wire Shell" 28 depends on SHELL 29 help 30 Enable 1-Wire Shell for testing. 31 32config W1_SHELL_BUFFER_SIZE 33 int 34 default 16 35 depends on W1_SHELL 36 prompt "1-Wire Shell buffer size" 37 help 38 Size of the send and receive buffer in bytes. 39 To be able to write more than 8 bytes make 40 sure to also increase SHELL_ARGC_MAX accordingly. 41 42rsource "Kconfig.ds2482-800" 43rsource "Kconfig.ds2484" 44rsource "Kconfig.ds2477_85" 45rsource "Kconfig.ds2485" 46rsource "Kconfig.max32" 47rsource "Kconfig.test" 48rsource "Kconfig.zephyr_gpio" 49rsource "Kconfig.zephyr_serial" 50 51config W1_NET 52 bool "1-Wire network layer" 53 default y 54 help 55 Enable 1-wire network layer 56 57config W1_NET_FORCE_MULTIDROP_ADDRESSING 58 bool "Force 1-Wire multidrop addressing" 59 depends on W1_NET 60 help 61 This option will ignore the number of 1-Wire 62 slave devices defined in the DTS. Specifically, 63 this option avoids the SKIP ROM command, 64 which is otherwise used in case of a single 65 1-Wire slave on the bus. In most cases, enabling 66 this option is not needed, yet it is essential 67 if multiple 1-Wire devices unspecified in the 68 DTS are interfaced. 69 70endif # W1 71