2019-11-01 20:45:29 +08:00
|
|
|
# Atmel SAM SERCOM configuration options
|
|
|
|
|
2017-11-18 18:59:08 +08:00
|
|
|
# Copyright (c) 2017 Google LLC.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-08-29 00:39:18 +08:00
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
|
|
DT_COMPAT_ATMEL_SAM0_DMAC := atmel,sam0-dmac
|
|
|
|
|
2019-10-22 07:04:04 +08:00
|
|
|
config UART_SAM0
|
2017-11-18 18:59:08 +08:00
|
|
|
bool "Atmel SAM0 series SERCOM USART driver"
|
2019-03-22 23:23:04 +08:00
|
|
|
default y
|
2017-11-18 18:59:08 +08:00
|
|
|
depends on SOC_FAMILY_SAM0
|
|
|
|
select SERIAL_HAS_DRIVER
|
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2019-06-03 20:06:38 +08:00
|
|
|
# the ASYNC implementation requires a DMA controller
|
2019-08-29 00:39:18 +08:00
|
|
|
select SERIAL_SUPPORT_ASYNC if $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM0_DMAC))
|
2019-03-24 22:23:32 +08:00
|
|
|
select DMA if UART_ASYNC_API
|
2017-11-18 18:59:08 +08:00
|
|
|
help
|
|
|
|
This option enables the SERCOMx USART driver for Atmel SAM0 MCUs.
|