Skip to content

Commit 4fcf8e0

Browse files
nordic-krchcarlescufi
authored andcommitted
modules: hal_nordic: nrfx: Add new UARTE options to Kconfig
Add Kconfig options to new configuration flags for nrfx_uarte. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent a0382bd commit 4fcf8e0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

modules/hal_nordic/nrfx/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,27 @@ config NRFX_UARTE3
573573
depends on $(dt_nodelabel_has_compat,uart3,$(DT_COMPAT_NORDIC_NRF_UARTE))
574574
select NRFX_UARTE
575575

576+
config NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
577+
bool "UARTE GPIO configuration support"
578+
depends on NRFX_UARTE
579+
580+
config NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG
581+
bool "UARTE PSEL configuration support"
582+
depends on NRFX_UARTE
583+
584+
config NRFX_UARTE_CONFIG_TX_LINK
585+
bool "UARTE TX transfer linking support"
586+
depends on NRFX_UARTE
587+
588+
config NRFX_UARTE_CONFIG_RX_CACHE_ENABLED
589+
bool "UARTE RX caching support"
590+
default y if $(dt_nodelabel_has_compat,ram3x,$(DT_COMPAT_MMIO_SRAM))
591+
depends on NRFX_UARTE
592+
help
593+
Feature might be enabled on platforms which has limitations regarding addresses
594+
to which receiver can write data. If enabled then internal driver buffers
595+
(cache buffers) are used for DMA transfers and data is copied to the user buffer.
596+
576597
config NRFX_USBREG
577598
bool "USBREG driver"
578599
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBREG))

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,18 @@
563563
#ifdef CONFIG_NRFX_UARTE3
564564
#define NRFX_UARTE3_ENABLED 1
565565
#endif
566+
#ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
567+
#define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 1
568+
#endif
569+
#ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG
570+
#define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 1
571+
#endif
572+
#ifdef CONFIG_NRFX_UARTE_CONFIG_TX_LINK
573+
#define NRFX_UARTE_CONFIG_TX_LINK 1
574+
#endif
575+
#ifdef CONFIG_NRFX_UARTE_CONFIG_RX_CACHE_ENABLED
576+
#define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1
577+
#endif
566578

567579
#ifdef CONFIG_NRFX_USBREG
568580
#define NRFX_USBREG_ENABLED 1

0 commit comments

Comments
 (0)