#nRF UART(E) instance configuration # Copyright (c) 2023 Nordic Semiconductor ASA # SPDX-License-Identifier: Apache-2.0 config UART_$(nrfx_uart_num)_INTERRUPT_DRIVEN bool "Interrupt support on port $(nrfx_uart_num)" depends on UART_INTERRUPT_DRIVEN default y help This option enables UART interrupt support on port $(nrfx_uart_num). config UART_$(nrfx_uart_num)_ASYNC bool "Asynchronous API support on port $(nrfx_uart_num)" depends on UART_ASYNC_API && !UART_$(nrfx_uart_num)_INTERRUPT_DRIVEN default y help This option enables UART Asynchronous API support on port $(nrfx_uart_num). config UART_$(nrfx_uart_num)_COUNT_BYTES_WITH_TIMER bool depends on $(dt_nodelabel_has_prop,uart$(nrfx_uart_num),timer) depends on HAS_HW_NRF_UARTE$(nrfx_uart_num) default y imply UARTE_NRFX_UARTE_COUNT_BYTES_WITH_TIMER config UART_$(nrfx_uart_num)_ENHANCED_POLL_OUT bool "Efficient poll out on port $(nrfx_uart_num)" depends on !$(dt_nodelabel_bool_prop,uart$(nrfx_uart_num),endtx-stoptx-supported) default y depends on HAS_HW_NRF_UARTE$(nrfx_uart_num) depends on HAS_HW_NRF_PPI || HAS_HW_NRF_DPPIC select NRFX_GPPI help When enabled, polling out does not trigger interrupt which stops TX. Feature uses a PPI channel. config UART_$(nrfx_uart_num)_NRF_PARITY_BIT bool "Parity bit" help Enable parity bit. config UART_$(nrfx_uart_num)_NRF_TX_BUFFER_SIZE int "Size of RAM buffer" depends on HAS_HW_NRF_UARTE$(nrfx_uart_num) range 1 $(UINT16_MAX) default 32 help Size of the transmit buffer for API function: fifo_fill. This value is limited by range of TXD.MAXCNT register for particular SoC. config UART_$(nrfx_uart_num)_NRF_HW_ASYNC bool "Use hardware RX byte counting" depends on HAS_HW_NRF_UARTE$(nrfx_uart_num) depends on UART_ASYNC_API depends on HAS_HW_NRF_PPI || HAS_HW_NRF_DPPIC select NRFX_GPPI help If default driver uses interrupts to count incoming bytes, it is possible that with higher speeds and/or high cpu load some data can be lost. It is recommended to use hardware byte counting in such scenarios. Hardware RX byte counting requires timer instance and one PPI channel. config UART_$(nrfx_uart_num)_NRF_ASYNC_LOW_POWER bool "Low power mode" depends on HAS_HW_NRF_UARTE$(nrfx_uart_num) depends on UART_ASYNC_API default y if !PM_DEVICE help When enabled, UARTE is enabled before each TX or RX usage and disabled when not used. Disabling UARTE while in idle allows to achieve lowest power consumption. It is only feasible if receiver is not always on. This option is irrelevant when device power management (PM) is enabled because then device state is controlled by the PM actions. config UART_$(nrfx_uart_num)_NRF_HW_ASYNC_TIMER int "Timer instance" depends on UART_$(nrfx_uart_num)_NRF_HW_ASYNC