7e80c74f95
Modifying configuration to enable with gd32vf103 - Add usart definition to devicetree. - Define USART_STAT as alias of USART_STAT0 if not defined it. - Enable USART if SOC_SERIES_RISCV_GIGADEVICE_GD32VF103. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
16 lines
505 B
Plaintext
16 lines
505 B
Plaintext
# Copyright (c) 2021 ATL Electronics
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
DT_COMPAT_GIGADEVICE_GD32_USART := gd,gd32-usart
|
|
|
|
config USART_GD32
|
|
bool "GD32 serial driver"
|
|
default $(dt_compat_enabled,$(DT_COMPAT_GIGADEVICE_GD32_USART))
|
|
depends on (SOC_FAMILY_GD32 || SOC_SERIES_GD32VF103)
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
select USE_GD32_USART
|
|
help
|
|
This option enables the USART driver for GD32 SoC family.
|