2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - serial driver configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
|
|
|
|
2015-08-12 11:22:49 +08:00
|
|
|
menuconfig SERIAL
|
|
|
|
bool
|
|
|
|
prompt "Serial Drivers"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable options for serial drivers.
|
2015-05-21 00:40:39 +08:00
|
|
|
|
2015-08-12 11:22:49 +08:00
|
|
|
if SERIAL
|
2015-05-26 22:25:55 +08:00
|
|
|
|
2015-08-13 01:33:56 +08:00
|
|
|
config SERIAL_HAS_DRIVER
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This is an option to be enabled by individual serial driver
|
|
|
|
to signal that there is a serial driver. This is being used
|
|
|
|
by other drivers which are dependent on serial.
|
|
|
|
|
2015-12-11 05:29:57 +08:00
|
|
|
config UART_INTERRUPT_DRIVEN
|
|
|
|
bool
|
|
|
|
prompt "Enable UART Interrupt support"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables interrupt support for UART allowing console
|
|
|
|
input and other UART based drivers.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "UART IRQ Trigger Condition"
|
|
|
|
default UART_IRQ_RISING_EDGE
|
|
|
|
depends on UART_INTERRUPT_DRIVEN
|
2015-06-20 21:52:12 +08:00
|
|
|
|
2015-12-11 05:29:57 +08:00
|
|
|
config UART_IRQ_FALLING_EDGE
|
|
|
|
bool "Falling Edge"
|
2015-06-20 21:52:12 +08:00
|
|
|
help
|
2015-12-11 05:29:57 +08:00
|
|
|
This option signifies that the UART uses falling edge interrupt.
|
2015-06-20 21:52:12 +08:00
|
|
|
|
2015-12-11 05:29:57 +08:00
|
|
|
config UART_IRQ_RISING_EDGE
|
|
|
|
bool "Rising Edge"
|
2015-06-20 21:52:12 +08:00
|
|
|
help
|
2015-12-11 05:29:57 +08:00
|
|
|
This option signifies that the UART uses rising edge interrupt.
|
2015-06-20 21:52:12 +08:00
|
|
|
|
2015-12-11 05:29:57 +08:00
|
|
|
config UART_IRQ_LEVEL_HIGH
|
|
|
|
bool "Level High"
|
2015-09-04 21:25:55 +08:00
|
|
|
help
|
2015-12-11 05:29:57 +08:00
|
|
|
This option signifies that the UART uses level high interrupt.
|
|
|
|
|
|
|
|
config UART_IRQ_LEVEL_LOW
|
|
|
|
bool "Level Low"
|
|
|
|
help
|
|
|
|
This option signifies that the UART uses level low interrupt.
|
|
|
|
|
|
|
|
endchoice
|
2015-06-20 21:52:12 +08:00
|
|
|
|
2015-12-02 00:42:19 +08:00
|
|
|
source "drivers/serial/Kconfig.ns16550"
|
2015-08-06 03:13:36 +08:00
|
|
|
|
2015-12-02 00:42:19 +08:00
|
|
|
source "drivers/serial/Kconfig.k20"
|
2015-03-19 06:24:43 +08:00
|
|
|
|
2015-12-02 00:42:19 +08:00
|
|
|
source "drivers/serial/Kconfig.stellaris"
|
2015-05-26 22:25:55 +08:00
|
|
|
|
2015-12-02 00:42:19 +08:00
|
|
|
source "drivers/serial/Kconfig.nsim"
|
|
|
|
|
2015-08-12 11:22:49 +08:00
|
|
|
endif
|