/Zephyr-latest/include/zephyr/drivers/uart/ |
D | serial_test.h | 4 * SPDX-License-Identifier: Apache-2.0 19 * @brief Queues data to be read by the virtual serial port. 22 * Use cases involving multiple writers virtual serial port must prevent 26 * @param dev Address of virtual serial port. 37 * @param dev Address of virtual serial port. 44 * @brief Read data written to virtual serial port. 55 * @param dev Address of virtual serial port. 64 * @brief Peek at data written to virtual serial port. 75 * @param dev Address of virtual serial port. 84 * @brief Callback called after bytes written to the virtual serial port. [all …]
|
/Zephyr-latest/samples/subsys/usb/webusb/ |
D | index.html | 4 <title>WebUSB Serial Sample Application</title> 9 var serial = {}; 14 serial.getPorts = function() { 16 return devices.map(device => new serial.Port(device)); 20 serial.requestPort = function() { 27 device => new serial.Port(device) 31 serial.Port = function(device) { 35 serial.Port.prototype.connect = function() { 60 serial.Port.prototype.disconnect = function() { 64 serial.Port.prototype.send = function(data) { [all …]
|
/Zephyr-latest/samples/subsys/usb/webusb-next/ |
D | index.html | 4 <title>WebUSB Serial Sample Application</title> 9 var serial = {}; 14 serial.getPorts = function() { 16 return devices.map(device => new serial.Port(device)); 20 serial.requestPort = function() { 27 device => new serial.Port(device) 31 serial.Port = function(device) { 35 serial.Port.prototype.connect = function() { 60 serial.Port.prototype.disconnect = function() { 64 serial.Port.prototype.send = function(data) { [all …]
|
/Zephyr-latest/drivers/serial/ |
D | Kconfig.stellaris | 1 # SPDX-License-Identifier: Apache-2.0 4 bool "Stellaris serial driver" 10 This option enables the Stellaris serial driver. 11 This specific driver can be used for the serial hardware 16 # ---------- Port 0 ---------- 19 bool "Stellaris UART Port 0" 21 This tells the driver to configure the UART port at boot, depending on 24 # ---------- Port 1 ---------- 27 bool "Stellaris UART Port 1" 29 This tells the driver to configure the UART port at boot, depending on [all …]
|
D | Kconfig.sifive | 3 # Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com> 4 # SPDX-License-Identifier: Apache-2.0 7 bool "SiFive Freedom serial driver" 14 This option enables the SiFive Freedom serial driver. 16 # ---------- Port 0 ---------- 19 bool "SIFIVE Port 0" 22 This tells the driver to configure the UART port at boot, depending on 26 int "Port 0 RX Interrupt Threshold Count" 30 Port 0 RX Threshold at which the RX FIFO interrupt triggers. 33 int "Port 0 TX Interrupt Threshold Count" [all …]
|
D | uart_native_tty.c | 2 * @brief UART Driver for interacting with host serial ports 4 * @note Driver can open and send characters to the host serial ports (such as /dev/ttyUSB0 or 14 * SPDX-License-Identifier: Apache-2.0 40 /* Serial port set from the command line. If NULL, it was not set. */ 77 bottom_cfg->baudrate = cfg->baudrate; in native_tty_conv_to_bottom_cfg() 79 switch (cfg->parity) { in native_tty_conv_to_bottom_cfg() 81 bottom_cfg->parity = NTB_PARITY_NONE; in native_tty_conv_to_bottom_cfg() 84 bottom_cfg->parity = NTB_PARITY_ODD; in native_tty_conv_to_bottom_cfg() 87 bottom_cfg->parity = NTB_PARITY_EVEN; in native_tty_conv_to_bottom_cfg() 90 return -ENOTSUP; in native_tty_conv_to_bottom_cfg() [all …]
|
/Zephyr-latest/samples/subsys/usb/cdc_acm/ |
D | README.rst | 1 .. zephyr:code-sample:: usb-cdc-acm 2 :name: USB CDC-ACM 3 :relevant-api: usbd_api _usb_device_core_api uart_interface 5 Use USB CDC-ACM driver to implement a serial port echo. 12 Received data from the serial port is echoed back to the same port 29 To see the console output of the app, open a serial port emulator and 30 attach it to the USB to TTL Serial cable. Build and flash the project: 32 .. zephyr-app-commands:: 33 :zephyr-app: samples/subsys/usb/cdc_acm 44 .. code-block:: console [all …]
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 31 Debug port is disabled, JTAG/SWD cannot be enabled. JTAG_RST# 33 or other non-JTAG alternate functions. 36 bool "Debug support via Serial wire debug" 38 JTAG port in SWD mode. I2C09 and ADC00-03 can be used. 41 bool "Debug support via Serial wire debug with tracing enabled" 43 JTAG port is enabled in SWD mode. Refer to tracing options 44 to see if ADC00-03 can be used or not. 55 bool "Debug support via Serial wire debug" 57 JTAG port in SWD mode and ETM as tracing method. [all …]
|
/Zephyr-latest/drivers/dp/ |
D | Kconfig | 3 # SPDX-License-Identifier: Apache-2.0 6 bool "Debug Port interface driver [EXPERIMENTAL]" 9 Enable Debug Port interface driver 14 module-str = dp drv 18 int "Debug Port driver initialization priority" 24 bool "Serial Wire Debug Port bit-bang driver" 29 Serial Wire Debug Port bit-bang driver.
|
/Zephyr-latest/scripts/logging/dictionary/ |
D | log_parser_uart.py | 5 # SPDX-License-Identifier: Apache-2.0 8 Log Parser for Dictionary-based Logging 21 import serial 31 argparser.add_argument("serialPort", help="Port where the logs are generated") 32 argparser.add_argument("baudrate", help="Serial Port baud rate") 33 argparser.add_argument("--debug", action="store_true", 39 """function of serial parser""" 53 # Parse the log every second from serial port 54 with serial.Serial(args.serialPort, args.baudrate) as ser:
|
/Zephyr-latest/samples/subsys/zbus/uart_bridge/ |
D | decoder.py | 3 # SPDX-License-Identifier: Apache-2.0 7 import serial 18 parser = argparse.ArgumentParser(description='Read zbus events via serial.', allow_abbrev=False) 19 parser.add_argument("port", type=str, help='The tty or COM port to be used') 40 ser = serial.Serial(args.port) 45 print(f"PUB [{channel_name}] -> {msg}") 46 except serial.serialutil.SerialException as e:
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | gd32isp.py | 1 # Copyright (c) 2021, ATL-Electronics 2 # SPDX-License-Identifier: Apache-2.0 4 '''GigaDevice ISP tool (gd32isp) runner for serial boot ROM''' 14 '''Runner front-end for gd32isp.''' 18 port=DEFAULT_GD32ISP_PORT, argument 24 self.port = port 39 parser.add_argument('--device', required=True, 43 parser.add_argument('--isp', default=DEFAULT_GD32ISP_CLI, 45 parser.add_argument('--port', default=DEFAULT_GD32ISP_PORT, 46 help='serial port to use, default is ' + [all …]
|
D | blackmagicprobe.py | 4 # SPDX-License-Identifier: Apache-2.0 17 import serial.tools.list_ports 25 # Interface descriptor for the GDB port as defined in the BMP firmware. 39 '''Guess the GDB port on Linux platforms.''' 44 for port in serial.tools.list_ports.comports(): 45 if port.interface == BMP_GDB_INTERFACE: 46 return port.device 51 f'cannot find any valid port matching {LINUX_SERIAL_GLOB}') 55 '''Guess the GDB port on Darwin platforms.''' 58 for port in serial.tools.list_ports.comports(): [all …]
|
D | bossac.py | 4 # SPDX-License-Identifier: Apache-2.0 6 '''bossac-specific runner (flash only) for Atmel SAM microcontrollers.''' 25 '''Runner front-end for bossac.''' 27 def __init__(self, cfg, bossac='bossac', port=DEFAULT_BOSSAC_PORT, argument 31 self.port = port 46 parser.add_argument('--bossac', default='bossac', 48 parser.add_argument('--bossac-port', default=DEFAULT_BOSSAC_PORT, 49 help='serial port to use, default is ' + 51 parser.add_argument('--speed', default=DEFAULT_BOSSAC_SPEED, 52 help='serial port speed to use, default is ' + [all …]
|
/Zephyr-latest/soc/microchip/mec/mec15xx/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 55 Debug port is disabled, JTAG/SWD cannot be enabled. JTAG_RST# 57 or other non-JTAG alternate functions. 60 bool "Debug support via Serial wire debug" 62 JTAG port in SWD mode. UART2 and ADC00-03 can be used. 65 bool "Debug support via Serial wire debug with tracing enabled" 67 JTAG port is enabled in SWD mode. Refer to tracing options 68 to see if ADC00-03 can be used or not. 80 bool "Debug support via Serial wire debug" 82 JTAG port in SWD mode and SWV as tracing method. [all …]
|
/Zephyr-latest/samples/drivers/uart/native_tty/boards/ |
D | native_sim.overlay | 4 compatible = "zephyr,native-tty-uart"; 5 current-speed = <115200>; 6 serial-port = "/dev/ttyUSB0"; 11 compatible = "zephyr,native-tty-uart"; 12 current-speed = <115200>; 13 serial-port = "/dev/ttyUSB1";
|
/Zephyr-latest/samples/subsys/zbus/remote_mock/ |
D | remote_mock.py | 3 # SPDX-License-Identifier: Apache-2.0 8 import serial 18 parser = argparse.ArgumentParser(description='Read zbus events via serial.', allow_abbrev=False) 19 parser.add_argument("port", type=str, help='The tty or COM port to be used') 35 f"Proxy PUB [{channels[2]['name']}] -> start measurement") 43 ser = serial.Serial(args.port) 51 f"Proxy NOTIFY: [{channel_name}] -> sensor value {int.from_bytes(msg, 'little')}")
|
/Zephyr-latest/doc/develop/flash_debug/ |
D | nordic_segger.rst | 5 Nordic nRF5x Segger J-Link 14 * Segger J-Link firmware and desktop tools 16 * Mass Storage device for drag-and-drop image flashing 17 * USB CDC ACM Serial Port bridged to the nRF5x UART peripheral 21 Segger J-Link Software Installation 24 To install the J-Link Software and documentation pack, follow the steps below: 26 #. Download the appropriate package from the `J-Link Software and documentation pack`_ website 28 #. When connecting a J-Link-enabled board such as an nRF5x DK, PDK or dongle, a 29 drive corresponding to a USB Mass Storage device as well as a serial port should come up 31 nRF5x Command-Line Tools Installation [all …]
|
/Zephyr-latest/dts/bindings/serial/ |
D | zephyr,native-tty-uart.yaml | 3 include: uart-controller.yaml 5 compatible: "zephyr,native-tty-uart" 9 serial-port: 12 Full path to the serial port device, such as "/dev/ttyUSB0" or 14 current-speed: 19 - 1200 20 - 1800 21 - 2400 22 - 4800 23 - 9600 [all …]
|
/Zephyr-latest/boards/aspeed/ast1030_evb/doc/ |
D | index.rst | 13 - ARM Cortex-M4F Processor 14 - 768 KB on-chip SRAM for instruction and data memory 15 - 1 MB on-chip Flash memory for boot ROM and data storage 16 - SPI interface 17 - UART interface 18 - I2C/I3C interface 19 - FAN PWM interface 20 - ADC interface 21 - JTAG interface 22 - USB interface [all …]
|
/Zephyr-latest/samples/boards/st/power_mgmt/serial_wakeup/ |
D | README.rst | 1 .. zephyr:code-sample:: stm32_pm_serial_wakeup 2 :name: Serial wakeup 3 :relevant-api: subsys_pm_device 5 Wake up on serial activity on STM32. 10 This sample is a minimum application to demonstrate serial wakeup functionality 13 .. _stm32-pm-serial-wakeup-sample-requirements: 20 in core sleep states, as LPTIM (:dtcompatible:`st,stm32-lptim`). 22 2. The serial port used by the shell should be configured, using device tree, to 25 - Clocked by an oscillator available in Stop mode (LSE, LSI) or an oscillator capable 27 - Matching oscillator sources should be enabled [all …]
|
/Zephyr-latest/dts/bindings/test/ |
D | vnd,serial.yaml | 1 description: Test serial port 3 compatible: "vnd,serial" 5 include: uart-controller.yaml 8 baud-rate: 11 buffer-size:
|
/Zephyr-latest/soc/st/stm32/common/ |
D | pm_debug_swj.c | 4 * SPDX-License-Identifier: Apache-2.0 17 * Serial Wire / JTAG port pins are enabled as part of SoC default configuration. 26 /* Set Serial Wire / JTAG port pins to analog mode */ in swj_to_analog() 37 * to avoid potential conflicts with devices accessing SWJ-DG pins for
|
/Zephyr-latest/boards/nuvoton/npcm400_evb/doc/ |
D | index.rst | 13 - ARM Cortex-M4F Processor 14 - Core clock up to 100 MHz 15 - 1MB Integrated Flash 16 - 32KB cache for XIP and Data 17 - 768 KB RAM and 64 KB boot ROM 18 - ADC & GPIO headers 19 - UART0 and UART1 20 - I2C/I3C 21 - RMII 22 - USB2.0 Device [all …]
|
/Zephyr-latest/boards/qemu/nios2/doc/ |
D | index.rst | 8 This configuration provides support for an Altera Nios-II CPU and these devices: 25 +--------------+------------+----------------------+ 28 | IIC | on-chip | Internal interrupt | 30 +--------------+------------+----------------------+ 31 | NS16550 | on-chip | serial port | 33 +--------------+------------+----------------------+ 34 | TIMER | on-chip | system clock | 35 +--------------+------------+----------------------+ 42 ------------ 46 Serial Port [all …]
|