2021-07-19 00:41:20 +08:00
|
|
|
# Configuration options for the Zephyr serial 1-Wire Master driver
|
|
|
|
|
|
|
|
# Copyright (c) 2022 Thomas Stranger
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config W1_ZEPHYR_SERIAL
|
|
|
|
bool "1-wire Serial"
|
2022-08-13 05:57:07 +08:00
|
|
|
select SERIAL
|
2022-07-22 20:22:15 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ZEPHYR_W1_SERIAL_ENABLED
|
2021-07-19 00:41:20 +08:00
|
|
|
help
|
|
|
|
This option enables the Zephyr serial 1-Wire master driver.
|
|
|
|
|
|
|
|
The bus reset, and bit read and write operations are executed
|
|
|
|
via bytes read and write operations on top of the Zephyr
|
|
|
|
serial driver interface.
|
|
|
|
|
|
|
|
if W1_ZEPHYR_SERIAL
|
|
|
|
|
|
|
|
config W1_ZEPHYR_SERIAL_BIT_TIMEOUT
|
|
|
|
int "Bit read timeout in us"
|
|
|
|
default 380
|
|
|
|
help
|
|
|
|
The bit read timeout specifies how long the driver tries to read the
|
|
|
|
uart byte (1-wire standard speed data bit).
|
|
|
|
For serial drivers where poll_out does not block until the transfer is
|
|
|
|
complete, it must at least be greater than 87us (10bits / 115.2 kBd).
|
|
|
|
|
|
|
|
endif # W1_ZEPHYR_SERIAL
|