103 lines
5.4 KiB
CMake
103 lines
5.4 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/uart.h)
|
|
|
|
zephyr_library()
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ALTERA_JTAG uart_altera_jtag.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ALTERA uart_altera.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_TELINK_B91 uart_b91.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_IMX uart_imx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ITE_IT8XXX2 uart_ite_it8xxx2.c)
|
|
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)
|
|
zephyr_library_sources_ifdef(CONFIG_SERIAL_ESP32_USB serial_esp32_usb.c)
|
|
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)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_MCUX_IUART uart_mcux_iuart.c)
|
|
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)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NS16550 uart_ns16550.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NRFX_UART uart_nrfx_uart.c)
|
|
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()
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NUMICRO uart_numicro.c)
|
|
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)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_QUICKLOGIC_USBSERIALPORT_S3B uart_ql_usbserialport_s3b.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RV32M1_LPUART uart_rv32m1_lpuart.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RPI_PICO uart_rpi_pico.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RPI_PICO_PIO uart_rpi_pico_pio.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_LITEUART uart_liteuart.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RTT_DRIVER uart_rtt.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XLNX_PS uart_xlnx_ps.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XLNX_UARTLITE uart_xlnx_uartlite.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XMC4XXX uart_xmc4xxx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NPCX uart_npcx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_APBUART uart_apbuart.c)
|
|
zephyr_library_sources_ifdef(CONFIG_USB_CDC_ACM ${ZEPHYR_BASE}/misc/empty_file.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RCAR uart_rcar.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XEC uart_mchp_xec.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NEORV32 uart_neorv32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_USART_GD32 usart_gd32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XEN_HVC uart_hvc_xen.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_XEN_HVC_CONSOLEIO uart_hvc_xen_consoleio.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_INFINEON_CAT1 uart_ifx_cat1.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_PIPE uart_pipe.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_SMARTBOND uart_smartbond.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NXP_S32_LINFLEXD uart_nxp_s32_linflexd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_CDNS uart_cdns.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_OPENTITAN uart_opentitan.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_HOSTLINK uart_hostlink.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_EMUL uart_emul.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_NUMAKER uart_numaker.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_EFINIX_SAPPIHIRE uart_efinix_sapphire.c)
|
|
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_RENESAS_RA uart_renesas_ra.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_RZT2M uart_rzt2m.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE uart_handlers.c)
|
|
|
|
if(CONFIG_UART_NATIVE_POSIX)
|
|
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
|
|
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()
|
|
endif()
|
|
|
|
if(CONFIG_UART_NATIVE_TTY)
|
|
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
|
|
zephyr_library_sources(uart_native_tty.c)
|
|
if (CONFIG_NATIVE_APPLICATION)
|
|
zephyr_library_sources(uart_native_tty_bottom.c)
|
|
else()
|
|
target_sources(native_simulator INTERFACE uart_native_tty_bottom.c)
|
|
endif()
|
|
endif()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_SERIAL_TEST serial_test.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ASYNC_RX_HELPER uart_async_rx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_UART_ASYNC_TO_INT_DRIVEN_API uart_async_to_irq.c)
|