text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ #include "analog.h" #include "clock.h" #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/irq.h> #include <zephyr/drivers/interrupt_controller/riscv_plic.h> /* Driver dts compatibility: telink,b91_uart */ #define DT_DRV_COMPAT telink_b91_u...
/content/code_sandbox/drivers/serial/uart_b91.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,317
```c /* * * * This driver implements input/output API for Xen domain through the * Xen consoleio interface. This should be used only for Zephyr as initial * domain (Dom0). For unprivileged domains regular ring buffer HVC driver * should be used (uart_hvc_xen.c), this console will not be available. */ #include <...
/content/code_sandbox/drivers/serial/uart_hvc_xen_consoleio.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
368
```c /** * @brief "Bottom" of native tty uart driver * */ #include "uart_native_tty_bottom.h" #include <errno.h> #include <stdio.h> #include <string.h> #include <fcntl.h> #include <poll.h> #include <termios.h> #include <unistd.h> #include <nsi_tracing.h> #define WARN(...) nsi_print_warning(__VA_ARGS__) #define ...
/content/code_sandbox/drivers/serial/uart_native_tty_bottom.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,943
```c /* * * Based on uart_mcux_lpuart.c, which is: * */ #define DT_DRV_COMPAT xlnx_xps_uartlite_1_00_a #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> #include <zephyr/kernel.h> #include <zephyr/sys/sys_io.h> /* AXI UART Lite v2 registers offsets (See Xilinx PG142 for details)...
/content/code_sandbox/drivers/serial/uart_xlnx_uartlite.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,232
```unknown # Gecko SDK UART config UART_GECKO bool "Gecko UART/USART driver" default y depends on DT_HAS_SILABS_GECKO_UART_ENABLED || DT_HAS_SILABS_GECKO_USART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select SOC_GECKO_USART select PINCTRL if SOC_FAMILY_SILABS_S1 help Enable the Geck...
/content/code_sandbox/drivers/serial/Kconfig.gecko
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
87
```c /* * */ #define DT_DRV_COMPAT gaisler_apbuart #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> #include <zephyr/sys/time_units.h> #include <errno.h> /* APBUART registers * * Offset | Name | Description * ------ | ------ | ---------------------------------------- * 0x0000 | data | UART data reg...
/content/code_sandbox/drivers/serial/uart_apbuart.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,379
```c /* * */ #define DT_DRV_COMPAT silabs_gecko_leuart #include <errno.h> #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> #include <em_leuart.h> #include <em_gpio.h> #include <em_cmu.h> #include <soc.h> #define LEUART_PREFIX cmuClock_LEUART #define CLOCK_ID_PRFX2(prefix, suffix) prefix##suffix #define CLO...
/content/code_sandbox/drivers/serial/leuart_gecko.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,225
```unknown # TI CC13xx / CC26xx UART configuration options config UART_CC13XX_CC26XX bool "TI SimpleLink CC13xx / CC26xx UART driver" default y depends on DT_HAS_TI_CC13XX_CC26XX_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable the TI SimpleLink CC13xx / CC26xx UART driver. ...
/content/code_sandbox/drivers/serial/Kconfig.cc13xx_cc26xx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84
```unknown # Mi-V UART configuration option config UART_MIV bool "Mi-V serial driver" default y depends on DT_HAS_MICROCHIP_COREUART_ENABLED select SERIAL_HAS_DRIVER help This option enables the Mi-V serial driver. ```
/content/code_sandbox/drivers/serial/Kconfig.miv
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```unknown # STM32 UART configuration config UART_STM32 bool "STM32 MCU serial driver" default y depends on DT_HAS_ST_STM32_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT # the ASYNC implementation requires a DMA controller select SERIAL_SUPPORT_ASYNC \ if DT_HAS_ST_STM32_DMA_V1_ENABLE...
/content/code_sandbox/drivers/serial/Kconfig.stm32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
317
```c /* * */ #define DT_DRV_COMPAT ite_it8xxx2_uart #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/uart.h> #include <zephyr/kernel.h> #include <zephyr/pm/device.h> #include <zephyr/pm/policy.h> #include <soc.h> #include <zephyr/logging/log.h...
/content/code_sandbox/drivers/serial/uart_ite_it8xxx2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,587
```c /* * */ #define DT_DRV_COMPAT nxp_lpc11u6x_uart #include <cmsis_core.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/irq.h> #include "uart_lpc11u6x.h" #if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay) static int lpc11u6x_uart0_poll_in(const struct device *dev, u...
/content/code_sandbox/drivers/serial/uart_lpc11u6x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,983
```c /* * */ #define DT_DRV_COMPAT brcm_bcm2711_aux_uart /** * @brief BCM2711 Miniuart Serial Driver * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <stdbool.h> #include <zephyr/sys/__assert.h> #include <zephyr/init.h> #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> #define BCM27...
/content/code_sandbox/drivers/serial/uart_bcm2711.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,687
```c /* stellarisUartDrv.c - Stellaris UART driver */ #define DT_DRV_COMPAT ti_stellaris_uart /* * */ /** * @brief Driver for Stellaris UART * * Driver for Stellaris UART found namely on TI LM3S6965 board. It is similar to * an 16550 in functionality, but is not register-compatible. * It is also register-comp...
/content/code_sandbox/drivers/serial/uart_stellaris.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,622
```c /* * * Author: Saravanan Sekar <saravanan@linumiz.com> */ #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/uart.h> #include <NuMicro.h> #include <string.h> #define DT_DRV_COMPAT nuvoton_numicro_uart struct uart_numicro_config { UART_T *uart; uint32_t id_rst; uint32_t id_clk; const struct pinc...
/content/code_sandbox/drivers/serial/uart_numicro.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,373
```unknown # Gecko SDK LEUART config LEUART_GECKO bool "Gecko leuart driver" default y depends on DT_HAS_SILABS_GECKO_LEUART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select SOC_GECKO_LEUART help Enable the Gecko leuart driver. ```
/content/code_sandbox/drivers/serial/Kconfig.leuart_gecko
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```c /* * */ #define DT_DRV_COMPAT quicklogic_usbserialport_s3b #include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <eoss3_dev.h> #include "uart_ql_usbserialport_s3b.h" /* * code is a modified version of usbserial driver from path_to_url * freertos_gateware/src/eoss3_hal_fpga_usbserial.c * fre...
/content/code_sandbox/drivers/serial/uart_ql_usbserialport_s3b.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
505
```c /* * */ #include "uart_rzt2m.h" #include "zephyr/spinlock.h" #include "zephyr/sys/printk.h" #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/sys/util.h> #include <zephyr/irq.h> #include <stdint.h> #include <zephyr/logging/log.h> #include <soc.h> #define DT_DRV_COMPAT renesa...
/content/code_sandbox/drivers/serial/uart_rzt2m.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,819
```c /* * */ #define DT_DRV_COMPAT nxp_kinetis_uart #include <errno.h> #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/irq.h> #include <fsl_uart.h> #include <soc.h> #include <zephyr/pm/device.h> #include <zephyr/drivers/pinctrl.h> struct uart_m...
/content/code_sandbox/drivers/serial/uart_mcux.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,337
```unknown config UART_NXP_S32_LINFLEXD bool "LINFlexD UART driver for NXP S32 family processors" default y depends on DT_HAS_NXP_S32_LINFLEXD_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT help Enable the LINFlexD UART driver for NXP...
/content/code_sandbox/drivers/serial/Kconfig.nxp_s32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
204
```c /* * */ #define DT_DRV_COMPAT renesas_smartbond_uart #include <errno.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/pm/device.h> #include <zephyr/pm/policy.h> #include <zephyr/pm/device_runtime.h> #include <zephyr/kernel.h> #include <ze...
/content/code_sandbox/drivers/serial/uart_smartbond.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,461
```unknown # MAX32 UART configuration config UART_MAX32 bool "MAX32 MCU serial driver" default y depends on DT_HAS_ADI_MAX32_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select PINCTRL help This option enables the UART driver for MAX32 family of processors. Say y if you wish t...
/content/code_sandbox/drivers/serial/Kconfig.max32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
82
```c /* * */ #define DT_DRV_COMPAT renesas_rcar_scif #include <errno.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control/renesas_cpg_mssr.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr...
/content/code_sandbox/drivers/serial/uart_rcar.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,340
```unknown config UART_CDNS bool "Serial driver for Cadence UART IP6528" default y depends on DT_HAS_CDNS_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the serial driver for Cadence UART IP6528. ```
/content/code_sandbox/drivers/serial/Kconfig.cdns
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/sys/atomic.h> #include <zephyr/bluetooth/services/nus.h> #define DT_DRV_COMPAT zephyr_nus_uart #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(uart_nus, CONFIG_UART_LOG_LEVEL); K_THREA...
/content/code_sandbox/drivers/serial/uart_bt.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,627
```unknown config UART_ESP32 bool "ESP32 UART driver" default y depends on DT_HAS_ESPRESSIF_ESP32_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select SERIAL_SUPPORT_ASYNC if (SOC_SERIES_ESP32C3 || SOC_SERIES_ESP32C6 || SOC_SERIES_ESP32S3) select GPIO_ESP32 help Enable the ESP32 UAR...
/content/code_sandbox/drivers/serial/Kconfig.esp32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
332
```c /* * */ #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/misc/pio_rpi_pico/pio_rpi_pico.h> #include <hardware/pio.h> #include <hardware/clocks.h> #define DT_DRV_COMPAT raspberrypi_pico_uart_pio #define CYCLES_PER_BIT 8 #define SIDESET_BIT_COUNT 2 struct pio_uart...
/content/code_sandbox/drivers/serial/uart_rpi_pico_pio.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,855
```c /* * */ #define DT_DRV_COMPAT ti_cc13xx_cc26xx_uart #include <zephyr/device.h> #include <errno.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/atomic.h> #include <zephyr/pm/device.h> #include <zephyr/pm/policy.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <driverlib...
/content/code_sandbox/drivers/serial/uart_cc13xx_cc26xx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,992
```unknown # MCUXpresso SDK IUART config UART_MCUX_IUART bool "MCUX IUART driver" default y depends on DT_HAS_NXP_IMX_IUART_ENABLED depends on CLOCK_CONTROL select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable the MCUX IUART driver. ```
/content/code_sandbox/drivers/serial/Kconfig.mcux_iuart
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
67
```c /** * @brief UART Driver for interacting with host serial ports * * @note Driver can open and send characters to the host serial ports (such as /dev/ttyUSB0 or * /dev/ttyACM0). Only polling Uart API is implemented. Driver can be configured via devicetree, * command line options or at runtime. * * To learn ...
/content/code_sandbox/drivers/serial/uart_native_tty.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,409
```c /* * */ #define DT_DRV_COMPAT ti_msp432p4xx_uart /* See www.ti.com/lit/pdf/slau356f, Chapter 22, for MSP432P4XX UART info. */ /* include driverlib/gpio.h (from the msp432p4xx SDK) before Z's uart.h so * that the definition of BIT is not overridden */ #include <driverlib/gpio.h> #include <zephyr/drivers/uart...
/content/code_sandbox/drivers/serial/uart_msp432p4xx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,706
```unknown config UART_RENESAS_RA bool "Renesas RA Series UART Driver" default y depends on DT_HAS_RENESAS_RA_UART_SCI_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable Renesas RA series UART driver. config UART_SCI_RA bool "Renesas RA SCI UART" default y depends on DT_HAS_RENES...
/content/code_sandbox/drivers/serial/Kconfig.renesas_ra
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
175
```unknown config UART_RZT2M bool "Renesas RZ/T2M UART Driver" default y depends on DT_HAS_RENESAS_RZT2M_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select PINCTRL help Enable Renesas RZ/T2M UART Driver. ```
/content/code_sandbox/drivers/serial/Kconfig.rzt2m
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```c /* * an affiliate of Cypress Semiconductor Corporation * */ /** * @brief UART driver for Infineon CAT1 MCU family. * * Note: * - Uart ASYNC functionality is not implemented in current * version of Uart CAT1 driver. */ #define DT_DRV_COMPAT infineon_cat1_uart #include <zephyr/drivers/uart.h> #include ...
/content/code_sandbox/drivers/serial/uart_ifx_cat1.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,208
```c /* * Author: Parthiban Nallathambi <parthiban@linumiz.com> * */ #define DT_DRV_COMPAT infineon_xmc4xxx_uart #include <xmc_uart.h> #include <zephyr/drivers/dma.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/uart.h> #include <zephyr/sys/util.h> #include <zephyr/irq.h> #define MAX_FIFO_SIZE 64 ...
/content/code_sandbox/drivers/serial/uart_xmc4xxx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,444
```c /* */ #define DT_DRV_COMPAT gd_gd32_usart #include <errno.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control/gd32.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/reset.h> #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> #include <gd32_usart.h> /* Unify...
/content/code_sandbox/drivers/serial/usart_gd32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,550
```unknown menuconfig UART_INTEL_LW bool "Intel Lightweight UART driver" depends on DT_HAS_INTEL_LW_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable the Intel Lightweight UART driver, that can be built into Intel NiosV CPU designs. if UART_INTEL_LW config UART_INTEL_LW_EOP b...
/content/code_sandbox/drivers/serial/Kconfig.intel_lw
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
223
```c /* * */ /** * @brief Driver for Nordic Semiconductor nRF UARTE */ #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <zephyr/irq.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/serial/uart_async_to_irq.h> #include <zephyr/pm/device.h> #include <zephyr/drivers/pinctrl.h> #include <z...
/content/code_sandbox/drivers/serial/uart_nrfx_uarte2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,587
```unknown # QuickLogic USBserialport_S3B configuration option config UART_QUICKLOGIC_USBSERIALPORT_S3B bool "QuickLogic USBserialport_S3B serial driver" default y depends on DT_HAS_QUICKLOGIC_USBSERIALPORT_S3B_ENABLED select SERIAL_HAS_DRIVER select PINCTRL help This option enables the QuickLogic USBserialp...
/content/code_sandbox/drivers/serial/Kconfig.ql_usbserialport_s3b
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
90
```c /* * */ #include <string.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/serial/uart_async_rx.h> static uint8_t inc(struct uart_async_rx *rx_data, uint8_t val) { return (val + 1) & (rx_data->config->buf_cnt - 1); } static struct uart_async_rx_buf *get_buf(struct uart_async_rx *rx_data, uint8_t i...
/content/code_sandbox/drivers/serial/uart_async_rx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,154
```c /* * */ /** * @brief UART driver for Intel FPGA UART Core IP * Reference : Embedded Peripherals IP User Guide : 12. JTAG UART Core * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/drivers/uart.h> #include <zephyr/sys/sys_io.h> #include <zephyr/sys/__assert.h> #define DT_DRV_C...
/content/code_sandbox/drivers/serial/uart_altera_jtag.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,579
```unknown config UART_ALTERA bool "ALTERA UART driver" depends on DT_HAS_ALTR_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable the Altera UART driver, that can be built into Intel NiosV CPU designs. config UART_ALTERA_EOP bool "ALTERA UART end of packet feature" depends on ...
/content/code_sandbox/drivers/serial/Kconfig.altera
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
207
```c /* * */ #define DT_DRV_COMPAT nuvoton_npcx_uart #include <zephyr/sys/__assert.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/kernel.h> #include <zephyr/pm/device.h> #include <zephyr/pm/policy.h>...
/content/code_sandbox/drivers/serial/uart_npcx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,444
```c /* * */ /** * @brief Microchip XEC UART Serial Driver * * This is the driver for the Microchip XEC MCU UART. It is NS16550 compatible. * */ #define DT_DRV_COMPAT microchip_xec_uart #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/types.h> #include <soc.h> #incl...
/content/code_sandbox/drivers/serial/uart_mchp_xec.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,010
```unknown # NPCX UART driver configuration options config UART_NUMAKER bool "Nuvoton NUMAKER MCU serial driver" default y select SERIAL_HAS_DRIVER select HAS_NUMAKER_UART select SERIAL_SUPPORT_INTERRUPT depends on DT_HAS_NUVOTON_NUMAKER_UART_ENABLED help This option enables the UART driver for Nuvoton Numa...
/content/code_sandbox/drivers/serial/Kconfig.numaker
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
97
```unknown # SiFive Freedom UART configuration option menuconfig UART_SIFIVE bool "SiFive Freedom serial driver" default y depends on DT_HAS_SIFIVE_UART0_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the SiFive Freedom serial driver. # ---------- Port 0 ----------...
/content/code_sandbox/drivers/serial/Kconfig.sifive
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
392
```unknown # Renesas R-Car UART configuration options config UART_RCAR bool "Renesas R-Car UART Driver" default y depends on DT_HAS_RENESAS_RCAR_SCIF_ENABLED || DT_HAS_RENESAS_RCAR_HSCIF_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable Renesas R-Car UART Driver. ```
/content/code_sandbox/drivers/serial/Kconfig.rcar
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```c /* * */ #include <zephyr/arch/arm64/hypercall.h> #include <zephyr/xen/console.h> #include <zephyr/xen/events.h> #include <zephyr/xen/generic.h> #include <zephyr/xen/hvm.h> #include <zephyr/xen/public/io/console.h> #include <zephyr/xen/public/sched.h> #include <zephyr/xen/public/xen.h> #include <zephyr/device.h...
/content/code_sandbox/drivers/serial/uart_hvc_xen.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,026
```c /* * */ #define DT_DRV_COMPAT nxp_lpc_usart /** @file * @brief UART driver for MCUX Flexcomm USART. */ #include <errno.h> #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/irq.h> #include <fsl_usart.h> #include <soc.h> #include <fsl_device...
/content/code_sandbox/drivers/serial/uart_mcux_flexcomm.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,588
```c /* * */ #define DT_DRV_COMPAT espressif_esp32_usb_serial #include <hal/usb_serial_jtag_ll.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <errno.h> #include <soc.h> #include <zephyr/drivers/uart.h> #if defined(CONFIG_SOC_SERIES_ESP32C3) || defined(CONFIG_SOC_SERIES_ESP32C6) #include <zephyr/...
/content/code_sandbox/drivers/serial/serial_esp32_usb.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,054
```c /* */ #define DT_DRV_COMPAT renesas_ra8_uart_sci_b #include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/sys/util.h> #include <zephyr/irq.h> #include <soc.h> #include "r_sci_b_uart.h" #include "r_dtc.h" #include "r_transfer_api.h" #include <zephyr/logg...
/content/code_sandbox/drivers/serial/uart_renesas_ra8_sci_b.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,689
```c /* */ #define DT_DRV_COMPAT atmel_sam_uart /** @file * @brief UART driver for Atmel SAM MCU family. */ #include <errno.h> #include <zephyr/sys/__assert.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <soc.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr...
/content/code_sandbox/drivers/serial/uart_sam.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,423
```unknown # # config UART_SEDI bool "Intel SEDI UART driver" default y depends on DT_HAS_INTEL_SEDI_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the Intel SEDI UART driver. This driver is simply a shim driver built upon the SEDI bare metal UART driver i...
/content/code_sandbox/drivers/serial/Kconfig.sedi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```c /* * */ #define DT_DRV_COMPAT nuvoton_numaker_uart #include <string.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/reset.h> #include <zephyr/irq.h> #include <zephyr/logging/log.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control/clock_control_numaker.h> #include <z...
/content/code_sandbox/drivers/serial/uart_numaker.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,348
```unknown # Atmel SAM UART configuration options config UART_SAM bool "Atmel SAM MCU family UART driver" default y depends on DT_HAS_ATMEL_SAM_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the UARTx driver for Atmel SAM MCUs. ```
/content/code_sandbox/drivers/serial/Kconfig.uart_sam
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
67
```c /* * */ #define DT_DRV_COMPAT st_stm32_uart /** * @brief Driver for UART port on STM32 family processor. * @note LPUART and U(S)ART have the same base and * majority of operations are performed the same way. * Please validate for newly added series. */ #include <zephyr/kernel.h> #include <...
/content/code_sandbox/drivers/serial/uart_stm32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19,413
```c /* * */ /** * @brief Driver for Nordic Semiconductor nRF UARTE */ #include <zephyr/drivers/uart.h> #include <zephyr/pm/device.h> #include <hal/nrf_uarte.h> #include <nrfx_timer.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <soc.h> #include <helpers/nrfx_gppi.h> #include <zephyr/linker/d...
/content/code_sandbox/drivers/serial/uart_nrfx_uarte.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
17,938
```unknown config UART_ITE_IT8XXX2 bool "ITE IT8XXX2 UART driver" default y select UART_NS16550_ITE_HIGH_SPEED_BAUDRATE depends on DT_HAS_ITE_IT8XXX2_UART_ENABLED help IT8XXX2 uses shared ns16550.c driver which does not provide a power management callback, so create driver to handle IT8XXX2 specific UART...
/content/code_sandbox/drivers/serial/Kconfig.it8xxx2
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
196
```unknown # # NUVOTON UART configuration # # Author: Saravanan Sekar <saravanan@linumiz.com> config UART_NUMICRO bool "NUVOTON MCU serial driver" default y depends on DT_HAS_NUVOTON_NUMICRO_UART_ENABLED select SERIAL_HAS_DRIVER select HAS_NUMICRO_UART help This option enables the UART driver for Nuvoton Numi...
/content/code_sandbox/drivers/serial/Kconfig.numicro
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
109
```unknown # Virtual UART HOSTLINK driver option config UART_HOSTLINK bool "ARC HOSTLINK UART driver" default y depends on ARC depends on DT_HAS_SNPS_HOSTLINK_UART_ENABLED select SERIAL_HAS_DRIVER help This option enables access to HOSTLINK channel as UART device. ```
/content/code_sandbox/drivers/serial/Kconfig.hostlink
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
63
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_PL011_RASPBERRYPI_PICO_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_PL011_RASPBERRYPI_PICO_H_ #define RASPBERRYPI_PICO_UART_CLOCK_CTLR_SUBSYS_CELL clk_id #define RASPBERRYPI_PICO_UART_DEFINE(n) \ static i...
/content/code_sandbox/drivers/serial/uart_pl011_raspberrypi_pico.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
181
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> /* Register offsets within the UART device register space. */ #define UART_INTR_STATE_REG_OFFSET 0x0 #define UART_INTR_ENABLE_REG_OFFSET 0x4 #define UART_CTRL_REG_OFFSET 0x10 #define UART_ST...
/content/code_sandbox/drivers/serial/uart_opentitan.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
922
```unknown config UART_BT bool "UART over NUS Bluetooth LE" depends on BT_ZEPHYR_NUS depends on DT_HAS_ZEPHYR_NUS_UART_ENABLED select UART_INTERRUPT_DRIVEN select RING_BUFFER select EXPERIMENTAL help Enable the UART over NUS Bluetooth driver, which can be used to pipe serial data over Bluetooth LE GATT us...
/content/code_sandbox/drivers/serial/Kconfig.bt
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
180
```c /* * */ /** * @brief UART driver for Intel FPGA UART Core IP * Reference : Embedded Peripherals IP User Guide : 11. UART Core * Limitations: * 1. User should consider to always use polling mode, as IP core does not have fifo. * So IP can only send/receive 1 character at a time. * 2. CTS and RTS is pure...
/content/code_sandbox/drivers/serial/uart_altera.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7,718
```c /* ns16550.c - NS16550D serial driver */ #define DT_DRV_COMPAT ns16550 /* * */ /** * @brief NS16550 Serial Driver * * This is the driver for the Intel NS16550 UART Chip used on the PC 386. * It uses the SCCs in asynchronous mode only. * * Before individual UART port can be used, uart_ns16550_port_init()...
/content/code_sandbox/drivers/serial/uart_ns16550.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16,549
```c /* * */ #define DT_DRV_COMPAT nxp_s32_linflexd #include <soc.h> #include <zephyr/irq.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> #include <Linflexd_Uart_Ip.h> #include <Linflexd_Uart_Ip_Irq.h> #include "uart_nxp_s32_linflexd.h" static int uart_nxp_s32_err_check(const struct device...
/content/code_sandbox/drivers/serial/uart_nxp_s32_linflexd.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,327
```unknown # MCUXpresso SDK LPSCI config UART_MCUX_LPSCI bool "MCUX LPSCI driver" default y depends on DT_HAS_NXP_KINETIS_LPSCI_ENABLED depends on CLOCK_CONTROL select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help Enable the MCUX LPSCI driver. ```
/content/code_sandbox/drivers/serial/Kconfig.mcux_lpsci
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```unknown # Xilinx UART configuration config UART_XLNX_PS bool "Xilinx Zynq 7000/ZynqMP serial driver" default y depends on DT_HAS_XLNX_XUARTPS_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the UART driver for Xilinx MPSoC platforms. config UART_XLNX_UARTLITE bo...
/content/code_sandbox/drivers/serial/Kconfig.xlnx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
139
```c /* * */ #define DT_DRV_COMPAT microchip_coreuart #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/drivers/uart.h> /* UART REGISTERS DEFINITIONS */ /* TX register */ #define TXDATA_REG_OFFSET 0x0 #define TXDATA_OFFSET 0x0 #define TXDATA_MASK 0xFF #define TXDATA_SHIFT 0 /*...
/content/code_sandbox/drivers/serial/uart_miv.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,837
```c /* * */ #define DT_DRV_COMPAT zephyr_native_posix_uart #include <stdbool.h> #include <zephyr/drivers/uart.h> #include <zephyr/kernel.h> #include "cmdline.h" /* native_posix command line options header */ #include "posix_native_task.h" #include "uart_native_ptty_bottom.h" #include "nsi_host_trampolines.h" /*...
/content/code_sandbox/drivers/serial/uart_native_ptty.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,813
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_RZT2M_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_RZT2M_H_ #include <stdint.h> #define MAX_FIFO_DEPTH 16 #define RDR(base) ((volatile uint32_t *)(base)) #define TDR(base) ((volatile uint32_t *)(base + 0x04)) #define CCR0(base) ((volatile uint32_t *)(ba...
/content/code_sandbox/drivers/serial/uart_rzt2m.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,437
```c /* * */ #define DT_DRV_COMPAT ti_cc32xx_uart #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/pinctrl.h> /* Driverlib includes */ #include <inc/hw_types.h> #include <driverlib/rom.h> #include <driverlib/rom_map.h> #include <driverlib/prcm.h> #in...
/content/code_sandbox/drivers/serial/uart_cc32xx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,631
```unknown # Xen hypervisor console via UART setup # # config UART_XEN_HVC bool "Xen hypervisor DomU console UART driver" default y depends on DT_HAS_XEN_HVC_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT depends on XEN && !XEN_DOM0 && !XEN_DOM0LESS help Enable Xen ring buffer based hy...
/content/code_sandbox/drivers/serial/Kconfig.xen
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
367
```c /* * */ #define DT_DRV_COMPAT arm_pl011 #define SBSA_COMPAT arm_sbsa_uart #include <string.h> #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/init.h> #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/sys/device_mmio.h> #include <zephyr/sys/barrier.h> #include...
/content/code_sandbox/drivers/serial/uart_pl011.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,452
```c /* * */ #include <errno.h> #include <zephyr/drivers/uart.h> #include <zephyr/irq.h> #include <em_usart.h> #include <em_cmu.h> #include <soc.h> #ifdef CONFIG_PINCTRL #include <zephyr/drivers/pinctrl.h> #else #include <em_gpio.h> #endif /* CONFIG_PINCTRL */ #if DT_NODE_HAS_PROP(id, peripheral_id) #define USART_...
/content/code_sandbox/drivers/serial/uart_gecko.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,355
```c /* * */ #define DT_DRV_COMPAT nxp_kinetis_lpsci #include <errno.h> #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/pinctrl.h> #include <fsl_lpsci.h> #include <soc.h> #include <zephyr/irq.h> struct mcux_lpsci_config { UART0_Type *b...
/content/code_sandbox/drivers/serial/uart_mcux_lpsci.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,664
```unknown config UART_SMARTBOND bool "Renesas SmartBond(tm) UART driver" default y depends on DT_HAS_RENESAS_SMARTBOND_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select UART_INTERRUPT_DRIVEN if PM_DEVICE help Enable UART driver for Renesas SmartBond(tm) DA1469x series MCU. ```
/content/code_sandbox/drivers/serial/Kconfig.smartbond
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_PL011_AMBIQ_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_PL011_AMBIQ_H_ #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/pm/device.h> #include <zephyr/pm/policy.h> #include "uart_pl011_registers.h" #include <am_mcu_apollo.h> #define PWRCTRL_...
/content/code_sandbox/drivers/serial/uart_pl011_ambiq.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,816
```unknown config USART_GD32 bool "GD32 serial driver" default y depends on DT_HAS_GD_GD32_USART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select USE_GD32_USART help This option enables the USART driver for GD32 SoC family. ```
/content/code_sandbox/drivers/serial/Kconfig.gd32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```unknown # Emulated UART configuration options config UART_EMUL bool "Emulated UART driver [EXPERIMENTAL]" default y depends on DT_HAS_ZEPHYR_UART_EMUL_ENABLED depends on EMUL select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select SERIAL_SUPPORT_ASYNC select RING_BUFFER select EXPERIMENTAL help ...
/content/code_sandbox/drivers/serial/Kconfig.emul
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
175
```unknown # Virtual UART RTT driver option menuconfig UART_RTT bool "UART RTT driver" default y depends on DT_HAS_SEGGER_RTT_UART_ENABLED depends on USE_SEGGER_RTT select SEGGER_RTT_CUSTOM_LOCKING select SERIAL_SUPPORT_ASYNC help This option enables access RTT channel as UART device. if UART_RTT config U...
/content/code_sandbox/drivers/serial/Kconfig.rtt
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
448
```c /* * */ #undef _XOPEN_SOURCE /* Note: This is used only for interaction with the host C library, and is therefore exempt of * coding guidelines rule A.4&5 which applies to the embedded code using embedded libraries */ #define _XOPEN_SOURCE 600 #include <stdbool.h> #include <errno.h> #include <stddef.h> #incl...
/content/code_sandbox/drivers/serial/uart_native_ptty_bottom.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,768
```objective-c /** * @brief "Bottom" of native tty uart driver * * When built with the native_simulator this will be built in the runner context, * that is, with the host C library, and with the host include paths. * */ #ifndef DRIVERS_SERIAL_UART_NATIVE_TTY_BOTTOM_H #define DRIVERS_SERIAL_UART_NATIVE_TTY_BOTTOM...
/content/code_sandbox/drivers/serial/uart_native_tty_bottom.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
507
```unknown config UART_BCM2711_MU bool "bcm2711_mu" default y depends on DT_HAS_BRCM_BCM2711_AUX_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help bcm2711_mu Low Power Serial Port. ```
/content/code_sandbox/drivers/serial/Kconfig.bcm2711
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
59
```c /* * */ #define DT_DRV_COMPAT arm_cmsdk_uart /** * @brief Driver for UART on ARM CMSDK APB UART. * * UART has two wires for RX and TX, and does not provide CTS or RTS. */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/drivers/clock_control/arm_clock_control.h> #include <zephyr/sy...
/content/code_sandbox/drivers/serial/uart_cmsdk_apb.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,392
```unknown # Microchip XEC UART configuration options config UART_XEC bool "Microchip XEC family UART driver" default y depends on DT_HAS_MICROCHIP_XEC_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the UARTx driver for Microchip XEC MCUs. if UART_XEC config ...
/content/code_sandbox/drivers/serial/Kconfig.xec
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
132
```c /* * */ #define DT_DRV_COMPAT renesas_ra_uart_sci #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/interrupt_controller/intc_ra_icu.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/irq.h> #include <zephyr/spinlock.h> #include <zephyr/logging/log.h> LO...
/content/code_sandbox/drivers/serial/uart_renesas_ra.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,686
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_QL_USBSERIALPORT_S3B_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_QL_USBSERIALPORT_S3B_H_ #include <stdint.h> #define USBSERIAL_TX_FIFOSIZE (512) #define USBSERIAL_RX_FIFOSIZE (512) /* USB-Serial FIFO status values */ #define USBSERIAL_RX_FIFO_EMPTY (0x00...
/content/code_sandbox/drivers/serial/uart_ql_usbserialport_s3b.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
876
```unknown menuconfig UART_PL011 bool "ARM PL011 UART Driver" default y depends on DT_HAS_ARM_PL011_ENABLED || DT_HAS_ARM_SBSA_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select PINCTRL if SOC_EOS_S3 select PINCTRL if DT_HAS_AMBIQ_UART_ENABLED select PINCTRL if DT_HAS_RASPBERRYPI_PICO...
/content/code_sandbox/drivers/serial/Kconfig.pl011
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
184
```c /* * */ #include <zephyr/drivers/uart.h> #include <zephyr/kernel.h> #include <SEGGER_RTT.h> #define DT_DRV_COMPAT segger_rtt_uart extern struct k_mutex rtt_term_mutex; struct uart_rtt_config { void *up_buffer; size_t up_size; void *down_buffer; size_t down_size; uint8_t channel; }; struct uart_rtt_data...
/content/code_sandbox/drivers/serial/uart_rtt.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,589
```unknown # NPCX UART driver configuration options DT_UART_NPCX:=$(dt_nodelabel_path,uart1) config UART_NPCX bool "Nuvoton NPCX embedded controller (EC) serial driver" default y depends on DT_HAS_NUVOTON_NPCX_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the...
/content/code_sandbox/drivers/serial/Kconfig.npcx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
204
```c /* * */ #define DT_DRV_COMPAT nxp_imx_uart /** * @brief Driver for UART on NXP IMX family processor. * * For full serial function, use the USART controller. * */ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/sys/__assert.h> #include <soc.h> #include <zephyr/init.h> #include <ze...
/content/code_sandbox/drivers/serial/uart_imx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,309
```unknown config UART_OPENTITAN bool "OpenTitan UART" default y depends on DT_HAS_LOWRISC_OPENTITAN_UART_ENABLED depends on !SERIAL_SUPPORT_INTERRUPT select SERIAL_HAS_DRIVER help Enable OpenTitan UART serial driver ```
/content/code_sandbox/drivers/serial/Kconfig.opentitan
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```c /* * */ #define DT_DRV_COMPAT espressif_esp32_uart /* Include esp-idf headers first to avoid redefining BIT() macro */ /* TODO: include w/o prefix */ #ifdef CONFIG_SOC_SERIES_ESP32 #include <esp32/rom/ets_sys.h> #include <esp32/rom/gpio.h> #include <soc/dport_reg.h> #elif defined(CONFIG_SOC_SERIES_ESP32S2) #in...
/content/code_sandbox/drivers/serial/uart_esp32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,360
```objective-c /* */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_CDNS_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_CDNS_H_ #include <zephyr/arch/cpu.h> #include <zephyr/drivers/uart.h> #include <zephyr/kernel.h> enum csr_parity_val { EVEN_PARITY_VAL, ODD_PARITY_VAL, SPACE_PARITY_VAL, MARK_PARITY_VAL, NO_PARITY_VAL }; /* @bri...
/content/code_sandbox/drivers/serial/uart_cdns.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,388
```c /* * */ #define DT_DRV_COMPAT nxp_imx_iuart #include <zephyr/device.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/irq.h> #include <errno.h> #include <fsl_uart.h> #include <zephyr/drivers/pinctrl.h> struct mcux_iuart_config { UART_Type *base; const struct devi...
/content/code_sandbox/drivers/serial/uart_mcux_iuart.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,718
```unknown menuconfig UART_STELLARIS bool "Stellaris serial driver" default y depends on DT_HAS_TI_STELLARIS_UART_ENABLED select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT help This option enables the Stellaris serial driver. This specific driver can be used for the serial hardware available at t...
/content/code_sandbox/drivers/serial/Kconfig.stellaris
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
252
```objective-c /* * * * "Bottom" of native ptty uart driver * When built with the native_simulator this will be built in the runner context, * that is, with the host C library, and with the host include paths. */ #ifndef DRIVERS_SERIAL_UART_NATIVE_PTTY_BOTTOM_H #define DRIVERS_SERIAL_UART_NATIVE_PTTY_BOTTOM_H #...
/content/code_sandbox/drivers/serial/uart_native_ptty_bottom.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
210
```unknown # nrfx UART configuration menuconfig UART_NRFX bool "nRF UART nrfx drivers" default y select SERIAL_HAS_DRIVER select SERIAL_SUPPORT_INTERRUPT select SERIAL_SUPPORT_ASYNC select PINCTRL depends on DT_HAS_NORDIC_NRF_UART_ENABLED || DT_HAS_NORDIC_NRF_UARTE_ENABLED help Enable support for nrfx UART...
/content/code_sandbox/drivers/serial/Kconfig.nrfx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,312
```c /** @file * @brief Pipe UART driver * * A pipe UART driver allowing application to handle all aspects of received * protocol data. */ /* * */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(uart_pipe); #include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/drivers/uart_pipe.h>...
/content/code_sandbox/drivers/serial/uart_pipe.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
549