mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 07:12:31 +00:00
Same deal as in commit eddd98f811
("kconfig: Replace some single-symbol
'if's with 'depends on'"), for the remaining cases outside defconfig
files. See that commit for an explanation.
Will do the defconfigs separately in case there are any complaints
there.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
93 lines
1.7 KiB
Plaintext
93 lines
1.7 KiB
Plaintext
# Atmel SAM UART configuration options
|
|
|
|
# Copyright (c) 2017 Piotr Mienkowski
|
|
# Copyright (c) 2018 Justin Watson
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig UART_SAM
|
|
bool "Atmel SAM MCU family UART driver"
|
|
depends on SOC_FAMILY_SAM
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
help
|
|
This option enables the UARTx driver for Atmel SAM MCUs.
|
|
|
|
# ---------- Port 0 ----------
|
|
|
|
config UART_SAM_PORT_0
|
|
bool "Enable UART0"
|
|
depends on UART_SAM
|
|
help
|
|
Enable UART0 at boot.
|
|
|
|
# ---------- Port 1 ----------
|
|
|
|
config UART_SAM_PORT_1
|
|
bool "Enable UART1"
|
|
depends on UART_SAM
|
|
help
|
|
Enable UART1 at boot.
|
|
|
|
choice UART_SAME70_PORT_1_PIN_TX
|
|
prompt "TX pin"
|
|
depends on SOC_SERIES_SAME70
|
|
depends on UART_SAM_PORT_1
|
|
|
|
config UART_SAM_PORT_1_PIN_TX_PA4
|
|
bool "PA4"
|
|
|
|
config UART_SAM_PORT_1_PIN_TX_PA6
|
|
bool "PA6"
|
|
|
|
config UART_SAM_PORT_1_PIN_TX_PD26
|
|
bool "PD26"
|
|
endchoice
|
|
|
|
# ---------- Port 2 ----------
|
|
|
|
config UART_SAM_PORT_2
|
|
bool "Enable UART2"
|
|
depends on UART_SAM
|
|
help
|
|
Enable UART2 at boot
|
|
|
|
# ---------- Port 3 ----------
|
|
|
|
config UART_SAM_PORT_3
|
|
bool "Enable UART3"
|
|
depends on UART_SAM
|
|
help
|
|
Enable UART3 at boot
|
|
|
|
choice UART_SAME70_PORT_3_PIN_TX
|
|
prompt "TX pin"
|
|
depends on SOC_SERIES_SAME70
|
|
depends on UART_SAM_PORT_3
|
|
|
|
config UART_SAM_PORT_3_PIN_TX_PD30
|
|
bool "PD30"
|
|
|
|
config UART_SAM_PORT_3_PIN_TX_PD31
|
|
bool "PD31"
|
|
endchoice
|
|
|
|
# ---------- Port 4 ----------
|
|
|
|
config UART_SAM_PORT_4
|
|
bool "Enable UART4"
|
|
depends on UART_SAM
|
|
help
|
|
Enable UART4 at boot
|
|
|
|
choice UART_SAME70_PORT_4_PIN_TX
|
|
prompt "TX pin"
|
|
depends on SOC_SERIES_SAME70
|
|
depends on UART_SAM_PORT_4
|
|
|
|
config UART_SAM_PORT_4_PIN_TX_PD3
|
|
bool "PD3"
|
|
|
|
config UART_SAM_PORT_4_PIN_TX_PD19
|
|
bool "PD19"
|
|
endchoice
|