1# Configuration options for the Zephyr serial 1-Wire Master driver
2
3# Copyright (c) 2022 Thomas Stranger
4# SPDX-License-Identifier: Apache-2.0
5
6config W1_ZEPHYR_SERIAL
7	bool "1-wire Serial"
8	select SERIAL
9	default y
10	depends on DT_HAS_ZEPHYR_W1_SERIAL_ENABLED
11	select UART_USE_RUNTIME_CONFIGURE
12	help
13	  This option enables the Zephyr serial 1-Wire master driver.
14
15	  The bus reset, and bit read and write operations are executed
16	  via bytes read and write operations on top of the Zephyr
17	  serial driver interface.
18
19if W1_ZEPHYR_SERIAL
20
21config W1_ZEPHYR_SERIAL_BIT_TIMEOUT
22	int "Bit read timeout in us"
23	default 380
24	help
25	  The bit read timeout specifies how long the driver tries to read the
26	  uart byte (1-wire standard speed data bit).
27	  For serial drivers where poll_out does not block until the transfer is
28	  complete, it must at least be greater than 87us (10bits / 115.2 kBd).
29
30endif # W1_ZEPHYR_SERIAL
31