Commit 3c938965 authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Dan Kalowsky
Browse files

Revert "drivers: serial: nrfx_uarte: Deprecate CONFIG_UART_x_NRF_HW_ASYNC"

parent eb996924
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/serial/Kconfig.nrfx: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ config UART_NRFX_UARTE_ENHANCED_RX
	bool "Enhanced RX handling"
	depends on UART_ASYNC_API
	depends on UART_NRFX_UARTE_LEGACY_SHIM
	default y
	default y if !(UART_0_NRF_HW_ASYNC || UART_1_NRF_HW_ASYNC || UART_2_NRF_HW_ASYNC)
	help
	  Enable RX handling mode which is switching buffers on timeout. This is an
	  enhancement compared to other two modes (default and hardware assisted).
+1 −6
Changes for drivers/serial/Kconfig.nrfx_uart_instance: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -49,23 +49,18 @@ config UART_$(nrfx_uart_num)_NRF_TX_BUFFER_SIZE
	  particular SoC.

config UART_$(nrfx_uart_num)_NRF_HW_ASYNC
	bool "[DEPRECATED] Use hardware RX byte counting"
	bool "Use hardware RX byte counting"
	depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
	depends on UART_ASYNC_API
	depends on UART_NRFX_UARTE_LEGACY_SHIM
	depends on !UART_NRFX_UARTE_ENHANCED_RX
	depends on HAS_HW_NRF_PPI || HAS_HW_NRF_DPPIC
	select NRFX_GPPI
	select DEPRECATED
	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.

	  This options is deprecated. Use UART_NRFX_UARTE_ENHANCED_RX which supports
	  reliable byte counting without additional HW resources (TIMER and (D)PPI).

config UART_$(nrfx_uart_num)_NRF_ASYNC_LOW_POWER
	bool "Low power mode"
	depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
+3 −0
Changes for samples/net/cellular_modem/boards/nrf9160dk_nrf52840.conf: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n
# Enable HW RX byte counting. This especially matters at higher baud rates.
CONFIG_UART_1_NRF_HW_ASYNC=y
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=1

# Align with the Serial LTE Modem (SLM) application.
CONFIG_MODEM_CELLULAR_UART_BUFFER_SIZES=6000
+3 −0
Changes for samples/net/cellular_modem/boards/nrf9160dk_nrf9160_ns.conf: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n
# Enable HW RX byte counting. This especially matters at higher baud rates.
CONFIG_UART_1_NRF_HW_ASYNC=y
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=1

# Align with the Serial LTE Modem (SLM) application.
CONFIG_MODEM_CELLULAR_UART_BUFFER_SIZES=6000
+2 −0
Changes for tests/drivers/uart/uart_async_api/boards/nrf5340bsim_nrf5340_cpuapp.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=1
CONFIG_UART_NRFX_UARTE_ENHANCED_RX=y
Loading