zephyr/drivers/serial/Kconfig.uart_sam
Ulf Magnusson bd6e04411e kconfig: Clean up header comments and make them consistent
Use this short header style in all Kconfig files:

    # <description>

    # <copyright>
    # <license>

    ...

Also change all <description>s from

    # Kconfig[.extension] - Foo-related options

to just

    # Foo-related options

It's clear enough that it's about Kconfig.

The <description> cleanup was done with this command, along with some
manual cleanup (big letter at the start, etc.)

    git ls-files '*Kconfig*' | \
        xargs sed -i -E '1 s/#\s*Kconfig[\w.-]*\s*-\s*/# /'

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-11-04 17:31:27 -05:00

102 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.
if UART_SAM_PORT_1
choice UART_SAME70_PORT_1_PIN_TX
prompt "TX pin"
depends on SOC_SERIES_SAME70
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
endif # UART_SAM_PORT_1
# ---------- 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
if UART_SAM_PORT_3
choice UART_SAME70_PORT_3_PIN_TX
prompt "TX pin"
depends on SOC_SERIES_SAME70
config UART_SAM_PORT_3_PIN_TX_PD30
bool "PD30"
config UART_SAM_PORT_3_PIN_TX_PD31
bool "PD31"
endchoice
endif # UART_SAM_PORT_3
# ---------- Port 4 ----------
config UART_SAM_PORT_4
bool "Enable UART4"
depends on UART_SAM
help
Enable UART4 at boot
if UART_SAM_PORT_4
choice UART_SAME70_PORT_4_PIN_TX
prompt "TX pin"
depends on SOC_SERIES_SAME70
config UART_SAM_PORT_4_PIN_TX_PD3
bool "PD3"
config UART_SAM_PORT_4_PIN_TX_PD19
bool "PD19"
endchoice
endif # UART_SAM_PORT_4