mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-11 19:55:22 +00:00
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
91 lines
1.9 KiB
Plaintext
91 lines
1.9 KiB
Plaintext
# Kconfig.nrf5 - NRF5 UART configuration
|
|
#
|
|
# Copyright (c) 2016 Nordic Semiconductor ASA
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig UART_NRF5
|
|
bool "Nordic Semiconductor NRF5 family processor UART driver"
|
|
default n
|
|
select SERIAL_HAS_DRIVER
|
|
depends on SOC_FAMILY_NRF5
|
|
select GPIO_NRF5
|
|
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_NAME
|
|
string "Device Name for Nordic Semiconductor nRF5 UART"
|
|
default "UART_0"
|
|
depends on UART_NRF5
|
|
help
|
|
This is the device name for UART, and is included in the device
|
|
struct.
|
|
|
|
config UART_NRF5_IRQ_PRI
|
|
int "UART Interrupt Priority (Interrupt support)"
|
|
range 0 1 if SOC_SERIES_NRF51X
|
|
range 0 5 if SOC_SERIES_NRF52X
|
|
default 1
|
|
depends on UART_NRF5
|
|
depends on UART_INTERRUPT_DRIVEN
|
|
help
|
|
The interrupt priority for UART port.
|
|
|
|
config UART_NRF5_BAUD_RATE
|
|
int "Baud Rate"
|
|
range 1200 1000000
|
|
default 115200
|
|
depends on UART_NRF5
|
|
help
|
|
The baud rate for UART port to be set to at boot.
|
|
|
|
config UART_NRF5_CLK_FREQ
|
|
int
|
|
default 16000000
|
|
depends on UART_NRF5
|
|
|
|
config UART_NRF5_FLOW_CONTROL
|
|
bool "Enable Flow Control"
|
|
default n
|
|
depends on UART_NRF5
|
|
help
|
|
Enable Flow Control. If selected, additionally two pins, RTS and CTS
|
|
has to be configured.
|
|
|
|
config UART_NRF5_GPIO_TX_PIN
|
|
int "TX Pin Number"
|
|
range 0 31
|
|
depends on UART_NRF5
|
|
depends on GPIO_NRF5
|
|
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.
|