Home
last modified time | relevance | path

Searched +full:port +full:- +full:num (Results 1 – 25 of 102) sorted by relevance

12345

/Zephyr-latest/samples/drivers/uart/native_tty/
DREADME.rst1 .. zephyr:code-sample:: uart-native-tty
3 :relevant-api: uart_interface
5 Use native TTY driver to send and receive data between two UART-to-USB bridge dongles.
29 are in your system by running the command ``ls -l /dev/tty*``. If that is not
30 the case on your machine you can either change the ``serial-port`` properties
32 ``-uart_port`` and ``-uart_port2``.
39 .. zephyr-app-commands::
40 :zephyr-app: samples/drivers/uart/native_tty
41 :host-os: unix
49 .. code-block:: console
[all …]
/Zephyr-latest/samples/basic/threads/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
41 uint8_t num; member
46 .num = 0,
51 .num = 1,
56 const struct gpio_dt_spec *spec = &led->spec; in blink()
60 if (!device_is_ready(spec->port)) { in blink()
61 printk("Error: %s device is not ready\n", spec->port->name); in blink()
68 ret, spec->pin, led->num); in blink()
73 gpio_pin_set(spec->port, spec->pin, cnt % 2); in blink()
106 rx_data->led, rx_data->cnt); in uart_out()
/Zephyr-latest/dts/bindings/i2c/
Dite,common-i2c.yaml2 # SPDX-License-Identifier: Apache-2.0
6 include: [i2c-controller.yaml, pinctrl-device.yaml]
15 port-num:
19 - 0
20 - 1
21 - 2
22 - 3
23 - 4
24 - 5
25 description: Ordinal identifying the port
[all …]
/Zephyr-latest/dts/bindings/serial/
Dite,it8xxx2-uart.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ITE, IT8XXX2-UART node
6 compatible: "ite,it8xxx2-uart"
8 include: [uart-controller.yaml, pinctrl-device.yaml]
14 port-num:
17 description: Ordinal identifying the port
20 type: phandle-array
23 uart-dev:
28 pinctrl-0:
31 pinctrl-names:
/Zephyr-latest/samples/subsys/usb_c/sink/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
24 /* usbc.rst port data object start */
26 * @brief A structure that encapsulates Port data.
47 /* usbc.rst port data object end */
51 * - Maximum operating current 100mA
52 * - Operating current is 100mA
53 * - Unchunked Extended Messages Not Supported
54 * - No USB Suspend
55 * - Not USB Communications Capable
56 * - No capability mismatch
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_renesas_ra_ioport.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/gpio/renesas-ra-gpio-ioport.h>
19 size_t num; member
25 R_PORT0_Type *port; member
39 const struct gpio_ra_config *config = dev->config; in query_irq_info()
41 for (int i = 0; i < config->irq_info_size; i++) { in query_irq_info()
42 const struct gpio_ra_irq_info *info = &config->irq_info[i]; in query_irq_info()
44 for (int j = 0; j < info->num; j++) { in query_irq_info()
45 if (info->pins[j] == pin) { in query_irq_info()
56 struct gpio_ra_data *data = dev->data; in gpio_ra_callback_adapter()
[all …]
/Zephyr-latest/doc/build/dts/
Dbindings-intro.rst1 .. _dt-binding-compat:
8 For a detailed syntax reference, see :ref:`dt-bindings-file-syntax`.
11 properties <dt-important-props>`.
18 .. _dt-bindings-simple-example:
25 .. code-block:: devicetree
28 bar-device {
29 compatible = "foo-company,bar-device";
30 num-foos = <3>;
35 .. code-block:: yaml
39 compatible: "foo-company,bar-device"
[all …]
/Zephyr-latest/dts/arm/nxp/
Dnxp_kl25z.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
4 #include "armv6-m.dtsi"
5 #include <zephyr/dt-bindings/adc/adc.h>
6 #include <zephyr/dt-bindings/clock/kinetis_sim.h>
7 #include <zephyr/dt-bindings/clock/kinetis_mcg.h>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
9 #include <zephyr/dt-bindings/i2c/i2c.h>
13 zephyr,flash-controller = &ftfa;
17 #address-cells = <1>;
18 #size-cells = <0>;
[all …]
Dnxp_lpc51u68.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv6-m.dtsi>
8 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
9 #include <zephyr/dt-bindings/gpio/gpio.h>
10 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/reset/nxp_syscon_reset_common.h>
16 #address-cells = <1>;
17 #size-cells = <0>;
20 compatible = "arm,cortex-m0+";
27 compatible = "nxp,lpc-syscon";
[all …]
Dnxp_rt5xx_common.dtsi2 * Copyright 2022-2024 NXP
4 * SPDX-License-Identifier: Apache-2.0
8 #include <arm/armv8-m.dtsi>
9 #include <zephyr/dt-bindings/adc/adc.h>
10 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
12 #include <zephyr/dt-bindings/i2c/i2c.h>
13 #include <zephyr/dt-bindings/mipi_dsi/mipi_dsi.h>
14 #include <zephyr/dt-bindings/inputmux/inputmux_trigger_ports.h>
15 #include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
[all …]
Dnxp_mcxc_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <arm/armv6-m.dtsi>
9 #include <zephyr/dt-bindings/adc/adc.h>
10 #include <zephyr/dt-bindings/clock/kinetis_sim.h>
11 #include <zephyr/dt-bindings/clock/kinetis_mcg.h>
12 #include <zephyr/dt-bindings/gpio/gpio.h>
13 #include <zephyr/dt-bindings/i2c/i2c.h>
14 #include <zephyr/dt-bindings/pwm/pwm.h>
18 zephyr,flash-controller = &ftfa;
22 #address-cells = <1>;
[all …]
Dnxp_kw2xd.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
4 #include <arm/armv7-m.dtsi>
5 #include <zephyr/dt-bindings/adc/adc.h>
6 #include <zephyr/dt-bindings/clock/kinetis_sim.h>
7 #include <zephyr/dt-bindings/clock/kinetis_mcg.h>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
9 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <nxp/kinetis/MKW24D512VHA5-pinctrl.h>
21 zephyr,flash-controller = &ftfl;
25 #address-cells = <1>;
[all …]
Dnxp_rt6xx_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <arm/armv8-m.dtsi>
9 #include <zephyr/dt-bindings/adc/adc.h>
10 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
12 #include <zephyr/dt-bindings/i2c/i2c.h>
13 #include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
14 #include <zephyr/dt-bindings/reset/nxp_syscon_reset_common.h>
22 #address-cells = <1>;
23 #size-cells = <0>;
[all …]
Dnxp_lpc54xxx.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
9 #include <zephyr/dt-bindings/gpio/gpio.h>
10 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/reset/nxp_syscon_reset_common.h>
16 gpio-0 = &gpio0;
17 gpio-1 = &gpio1;
18 mailbox-0 = &mailbox0;
22 zephyr,flash-controller = &iap;
26 #address-cells = <1>;
[all …]
Dnxp_mcxa156.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <arm/armv8-m.dtsi>
9 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
10 #include <zephyr/dt-bindings/gpio/gpio.h>
11 #include <zephyr/dt-bindings/i2c/i2c.h>
15 #address-cells = <1>;
16 #size-cells = <0>;
19 compatible = "arm,cortex-m33f";
21 #address-cells = <1>;
22 #size-cells = <1>;
[all …]
/Zephyr-latest/dts/common/nordic/
Dnrf9280.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/adc/nrf-saadc.h>
10 #include <zephyr/dt-bindings/misc/nordic-nrf-ficr-nrf9230-engb.h>
11 #include <zephyr/dt-bindings/misc/nordic-domain-id-nrf9230.h>
12 #include <zephyr/dt-bindings/misc/nordic-owner-id-nrf9230.h>
13 #include <zephyr/dt-bindings/reserved-memory/nordic-owned-memory.h>
15 /delete-node/ &sw_pwm;
18 #address-cells = <1>;
19 #size-cells = <1>;
22 #address-cells = <1>;
[all …]
/Zephyr-latest/dts/arm/nordic/
Dnrf5340_cpunet.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv8-m.dtsi>
12 zephyr,bt-hci = &bt_hci_controller;
14 zephyr,flash-controller = &flash_controller;
18 #address-cells = <1>;
19 #size-cells = <0>;
23 compatible = "arm,cortex-m33";
25 #address-cells = <1>;
26 #size-cells = <1>;
29 compatible = "arm,armv8m-mpu";
[all …]
Dnrf52840.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv7-m.dtsi>
5 #include <zephyr/dt-bindings/adc/nrf-saadc-v3.h>
6 #include <zephyr/dt-bindings/regulator/nrf5x.h>
10 zephyr,bt-hci = &bt_hci_controller;
12 zephyr,flash-controller = &flash_controller;
16 #address-cells = <1>;
17 #size-cells = <0>;
21 compatible = "arm,cortex-m4f";
23 #address-cells = <1>;
[all …]
Dnrf52833.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
9 #include <zephyr/dt-bindings/adc/nrf-saadc-v3.h>
10 #include <zephyr/dt-bindings/regulator/nrf5x.h>
14 zephyr,bt-hci = &bt_hci_controller;
16 zephyr,flash-controller = &flash_controller;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 compatible = "arm,cortex-m4f";
27 #address-cells = <1>;
[all …]
Dnrf52820.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
9 #include <zephyr/dt-bindings/regulator/nrf5x.h>
14 zephyr,bt-hci = &bt_hci_controller;
16 zephyr,flash-controller = &flash_controller;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 compatible = "arm,cortex-m4";
27 #address-cells = <1>;
28 #size-cells = <1>;
[all …]
/Zephyr-latest/dts/arm/silabs/
Defm32hg.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv6-m.dtsi>
4 #include <zephyr/dt-bindings/gpio/gpio.h>
5 #include <zephyr/dt-bindings/i2c/i2c.h>
10 zephyr,flash-controller = &msc;
14 #address-cells = <1>;
15 #size-cells = <0>;
18 compatible = "arm,cortex-m0+";
24 compatible = "mmio-sram";
28 msc: flash-controller@400c0000 {
[all …]
Defm32_pg_1b.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
9 #include <zephyr/dt-bindings/i2c/i2c.h>
14 zephyr,flash-controller = &msc;
18 #address-cells = <1>;
19 #size-cells = <0>;
24 compatible = "mmio-sram";
28 msc: flash-controller@400e0000 {
29 compatible = "silabs,gecko-flash-controller";
[all …]
Defr32fg1p.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv7-m.dtsi>
4 #include <zephyr/dt-bindings/gpio/gpio.h>
5 #include <zephyr/dt-bindings/i2c/i2c.h>
7 #include <zephyr/dt-bindings/pwm/pwm.h>
11 zephyr,flash-controller = &msc;
15 #address-cells = <1>;
16 #size-cells = <0>;
19 compatible = "arm,cortex-m4f";
25 compatible = "mmio-sram";
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dintel_cyclonev.py3 # SPDX-License-Identifier: Apache-2.0
21 '''Runner front-end for openocd.'''
57 search_args.append('-s')
63 search_args.append('-s')
68 search_args.extend(['-s', p])
85 self.tui_arg = ['-tui'] if tui else []
86 self.halt_arg = [] if no_halt else ['-c halt']
87 self.init_arg = [] if no_init else ['-c init']
88 self.targets_arg = [] if no_targets else ['-c targets']
89 self.serial = ['-c set _ZEPHYR_BOARD_SERIAL ' + serial] if serial else []
[all …]
Dopenocd.py4 # SPDX-License-Identifier: Apache-2.0
6 # pylint: disable=duplicate-code
36 num = int(num_match.group(0))
39 num += 1
41 return num
44 '''Runner front-end for openocd.'''
61 # try to find the board support in-tree
77 search_args.append('-s')
83 search_args.append('-s')
88 search_args.extend(['-s', p])
[all …]

12345