Skip to content

Commit

Permalink
sim3u: add usart driver
Browse files Browse the repository at this point in the history
This supports polling and interrupt APIs, but not the async API.

Signed-off-by: Michael Zimmermann <[email protected]>
  • Loading branch information
M1cha committed Nov 10, 2023
1 parent fa53491 commit cea8a8d
Show file tree
Hide file tree
Showing 6 changed files with 431 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ zephyr_library_sources_ifdef(CONFIG_UART_SEDI uart_sedi.c)
zephyr_library_sources_ifdef(CONFIG_UART_BCM2711_MU uart_bcm2711.c)
zephyr_library_sources_ifdef(CONFIG_UART_INTEL_LW uart_intel_lw.c)
zephyr_library_sources_ifdef(CONFIG_UART_RA uart_ra.c)
zephyr_library_sources_ifdef(CONFIG_UART_SI32_USART uart_si32_usart.c)

zephyr_library_sources_ifdef(CONFIG_USERSPACE uart_handlers.c)

Expand Down
2 changes: 2 additions & 0 deletions drivers/serial/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,6 @@ source "drivers/serial/Kconfig.intel_lw"

source "drivers/serial/Kconfig.ra"

source "drivers/serial/Kconfig.si32"

endif # SERIAL
10 changes: 10 additions & 0 deletions drivers/serial/Kconfig.si32
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2023 GARDENA GmbH
#
# SPDX-License-Identifier: Apache-2.0

config UART_SI32_USART
bool "SI32 USART MCU serial driver"
default y
depends on DT_HAS_SILABS_SI32_USART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
Loading

0 comments on commit cea8a8d

Please sign in to comment.