2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-05-25 00:27:04 +02:00
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/uart.h)
|
|
|
|
|
2018-05-24 07:03:37 +02:00
|
|
|
zephyr_library()
|
2022-04-04 10:18:49 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ALTERA_JTAG uart_altera_jtag.c)
|
2023-01-16 04:18:54 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ALTERA uart_altera.c)
|
2021-07-09 10:46:07 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_TELINK_B91 uart_b91.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_IMX uart_imx.c)
|
2021-10-21 09:05:50 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ITE_IT8XXX2 uart_ite_it8xxx2.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_CC13XX_CC26XX uart_cc13xx_cc26xx.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_CC32XX uart_cc32xx.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_CMSDK_APB uart_cmsdk_apb.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ESP32 uart_esp32.c)
|
2022-03-21 22:02:19 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_SERIAL_ESP32_USB serial_esp32_usb.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_SIFIVE uart_sifive.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_GECKO uart_gecko.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_LEUART_GECKO leuart_gecko.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_LPC11U6X uart_lpc11u6x.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MCUX uart_mcux.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MCUX_FLEXCOMM uart_mcux_flexcomm.c)
|
2019-07-27 08:46:35 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MCUX_IUART uart_mcux_iuart.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MCUX_LPUART uart_mcux_lpuart.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MCUX_LPSCI uart_mcux_lpsci.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MIV uart_miv.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MSP432P4XX uart_msp432p4xx.c)
|
2021-04-21 20:22:21 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NS16550 uart_ns16550.c)
|
2023-07-20 09:59:21 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NRFX_UART uart_nrfx_uart.c)
|
2024-01-17 11:54:10 +01:00
|
|
|
if (CONFIG_UART_NRFX_UARTE)
|
|
|
|
if (CONFIG_UART_NRFX_UARTE_LEGACY_SHIM)
|
|
|
|
zephyr_library_sources(uart_nrfx_uarte.c)
|
|
|
|
else()
|
|
|
|
zephyr_library_sources(uart_nrfx_uarte2.c)
|
|
|
|
endif()
|
|
|
|
endif()
|
2021-07-20 08:25:53 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NUMICRO uart_numicro.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_SAM uart_sam.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USART_SAM usart_sam.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_STELLARIS uart_stellaris.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_STM32 uart_stm32.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_SAM0 uart_sam0.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_PSOC6 uart_psoc6.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_PL011 uart_pl011.c)
|
2022-06-06 17:02:36 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_QUICKLOGIC_USBSERIALPORT_S3B uart_ql_usbserialport_s3b.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RV32M1_LPUART uart_rv32m1_lpuart.c)
|
2023-03-05 22:14:13 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RPI_PICO_PIO uart_rpi_pico_pio.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_LITEUART uart_liteuart.c)
|
2019-07-15 18:47:43 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RTT_DRIVER uart_rtt.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XLNX_PS uart_xlnx_ps.c)
|
2020-07-29 00:14:22 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XLNX_UARTLITE uart_xlnx_uartlite.c)
|
2020-07-31 13:52:40 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XMC4XXX uart_xmc4xxx.c)
|
2020-07-02 12:15:14 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NPCX uart_npcx.c)
|
2020-10-16 20:57:50 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_APBUART uart_apbuart.c)
|
2021-01-01 06:25:38 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_USB_CDC_ACM ${ZEPHYR_BASE}/misc/empty_file.c)
|
2021-05-06 12:32:25 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RCAR uart_rcar.c)
|
2021-08-05 17:15:48 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XEC uart_mchp_xec.c)
|
2021-08-23 21:43:01 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NEORV32 uart_neorv32.c)
|
2021-09-17 22:16:30 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_USART_GD32 usart_gd32.c)
|
2021-07-02 10:31:56 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XEN_HVC uart_hvc_xen.c)
|
2021-10-07 16:58:42 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XEN_HVC_CONSOLEIO uart_hvc_xen_consoleio.c)
|
2022-03-25 11:19:24 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_INFINEON_CAT1 uart_ifx_cat1.c)
|
2021-09-01 12:15:16 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_PIPE uart_pipe.c)
|
2022-05-09 22:29:27 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_SMARTBOND uart_smartbond.c)
|
2022-12-27 15:17:35 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NXP_S32_LINFLEXD uart_nxp_s32_linflexd.c)
|
2022-09-22 19:21:35 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_CDNS uart_cdns.c)
|
2023-01-14 00:21:10 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_OPENTITAN uart_opentitan.c)
|
2023-03-10 17:07:16 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_HOSTLINK uart_hostlink.c)
|
2023-03-15 11:01:54 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_EMUL uart_emul.c)
|
2023-04-10 13:55:54 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NUMAKER uart_numaker.c)
|
2023-03-20 19:10:57 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_EFINIX_SAPPIHIRE uart_efinix_sapphire.c)
|
2023-04-03 19:49:42 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_SEDI uart_sedi.c)
|
2023-09-28 08:46:18 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_BCM2711_MU uart_bcm2711.c)
|
2023-06-08 09:24:15 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_INTEL_LW uart_intel_lw.c)
|
2024-01-24 16:07:08 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RENESAS_RA uart_renesas_ra.c)
|
2024-03-15 03:46:28 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ENE_KB1200 uart_ene_kb1200.c)
|
2023-08-10 14:49:35 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RZT2M uart_rzt2m.c)
|
2018-03-28 12:06:12 +02:00
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE uart_handlers.c)
|
2018-09-22 19:19:59 +02:00
|
|
|
|
|
|
|
if(CONFIG_UART_NATIVE_POSIX)
|
|
|
|
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
|
2023-07-05 16:41:31 +02:00
|
|
|
zephyr_library_sources(uart_native_ptty.c)
|
|
|
|
if (CONFIG_NATIVE_APPLICATION)
|
|
|
|
zephyr_library_sources(uart_native_ptty_bottom.c)
|
|
|
|
else()
|
|
|
|
target_sources(native_simulator INTERFACE uart_native_ptty_bottom.c)
|
|
|
|
endif()
|
2018-09-22 19:19:59 +02:00
|
|
|
endif()
|
2021-07-08 17:15:52 +02:00
|
|
|
|
2023-05-28 09:46:53 +02:00
|
|
|
if(CONFIG_UART_NATIVE_TTY)
|
|
|
|
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
|
|
|
|
zephyr_library_sources(uart_native_tty.c)
|
2023-07-11 22:33:12 +02:00
|
|
|
if (CONFIG_NATIVE_APPLICATION)
|
|
|
|
zephyr_library_sources(uart_native_tty_bottom.c)
|
|
|
|
else()
|
|
|
|
target_sources(native_simulator INTERFACE uart_native_tty_bottom.c)
|
|
|
|
endif()
|
2023-05-28 09:46:53 +02:00
|
|
|
endif()
|
|
|
|
|
2024-03-06 19:12:51 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_BT uart_bt.c)
|
|
|
|
|
2021-07-08 17:15:52 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_SERIAL_TEST serial_test.c)
|
2023-10-16 07:29:41 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ASYNC_RX_HELPER uart_async_rx.c)
|
2023-11-08 13:33:57 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ASYNC_TO_INT_DRIVEN_API uart_async_to_irq.c)
|