2016-05-18 22:49:04 +08:00
|
|
|
# Kconfig.nrf5 - NRF5 UART configuration
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Nordic Semiconductor ASA
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-05-18 22:49:04 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig UART_NRF5
|
|
|
|
bool "Nordic Semiconductor NRF5 family processor UART driver"
|
|
|
|
default n
|
|
|
|
select SERIAL_HAS_DRIVER
|
2017-06-23 00:26:58 +08:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2016-08-26 04:20:20 +08:00
|
|
|
depends on SOC_FAMILY_NRF5
|
2016-12-08 23:03:44 +08:00
|
|
|
select GPIO_NRF5
|
2016-05-18 22:49:04 +08:00
|
|
|
help
|
|
|
|
This option enables the UART driver for Nordic Semiconductor nRF5
|
|
|
|
family processors. Note that there is only one
|
|
|
|
UART controller on nRF5 ICs.
|
|
|
|
|
|
|
|
config UART_NRF5_CLK_FREQ
|
|
|
|
int
|
2016-08-26 04:20:20 +08:00
|
|
|
default 16000000
|
2016-05-18 22:49:04 +08:00
|
|
|
depends on UART_NRF5
|
|
|
|
|
|
|
|
config UART_NRF5_FLOW_CONTROL
|
|
|
|
bool "Enable Flow Control"
|
|
|
|
default n
|
|
|
|
depends on UART_NRF5
|
|
|
|
help
|
2016-08-26 03:23:41 +08:00
|
|
|
Enable Flow Control. If selected, additionally two pins, RTS and CTS
|
|
|
|
has to be configured.
|
2016-05-18 22:49:04 +08:00
|
|
|
|
|
|
|
config UART_NRF5_GPIO_TX_PIN
|
|
|
|
int "TX Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on UART_NRF5
|
2016-06-02 02:46:14 +08:00
|
|
|
depends on GPIO_NRF5
|
2016-05-18 22:49:04 +08:00
|
|
|
help
|
|
|
|
The GPIO pin to use for TX.
|
|
|
|
|
|
|
|
config UART_NRF5_GPIO_RX_PIN
|
|
|
|
int "RX Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on UART_NRF5
|
|
|
|
depends on GPIO_NRF5
|
|
|
|
help
|
|
|
|
The GPIO pin to use for RX.
|
|
|
|
|
|
|
|
config UART_NRF5_GPIO_RTS_PIN
|
|
|
|
int "RTS Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on UART_NRF5
|
|
|
|
depends on GPIO_NRF5
|
|
|
|
depends on UART_NRF5_FLOW_CONTROL
|
|
|
|
help
|
|
|
|
The GPIO pin to use for RTS.
|
|
|
|
|
|
|
|
config UART_NRF5_GPIO_CTS_PIN
|
|
|
|
int "CTS Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on UART_NRF5
|
|
|
|
depends on GPIO_NRF5
|
|
|
|
depends on UART_NRF5_FLOW_CONTROL
|
|
|
|
help
|
|
|
|
The GPIO pin to use for CTS.
|