/Zephyr-latest/samples/modules/tflite-micro/magic_wand/renode/ |
D | litex-vexriscv-tflite.robot | 2 # SPDX-License-Identifier: Apache-2.0 7 ... Execute Command include @${CURDIR}/LiteX_I2C_Zephyr.cs 55 Execute Command using sysbus 57 Execute Command mach create 58 Execute Command machine LoadPlatformDescription @${CURDIR}/litex-vexriscv-tflite.repl 60 Execute Command showAnalyzer uart Antmicro.Renode.Analyzers.LoggingUartAnalyzer 62 …Execute Command sysbus LoadELF @${CURDIR}/../tensorflow/tensorflow/lite/micro/tools/make… 73 Execute Command using sysbus 75 Execute Command mach create 76 Execute Command machine LoadPlatformDescription @${CURDIR}/litex-vexriscv-tflite.repl [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | Kconfig.it8xxx2 | 2 # SPDX-License-Identifier: Apache-2.0 5 bool "ITE IT8XXX2 I2C driver" 10 Enable I2C support on it8xxx2_evb. 17 bool "IT8XXX2 I2C FIFO mode" 21 the time between each byte to improve the I2C bus clock 22 stretching during I2C transaction. 23 The I2C controller supports two 32-bytes FIFOs, 25 I2C FIFO mode of it8xxx2 can support I2C APIs including: 31 bool "ITE IT8XXX2 I2C enhance driver" 36 This option can enable the enhance I2C [all …]
|
D | i2c_sifive.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/drivers/i2c.h> 18 #include "i2c-priv.h" 22 #define I2C_REG(config, reg) ((mem_addr_t) ((config)->base + reg)) 36 /* Command on write, status on read */ 73 const struct i2c_sifive_cfg *config = dev->config; in i2c_sifive_busy() 82 const struct i2c_sifive_cfg *config = dev->config; in i2c_sifive_send_addr() 83 uint8_t command = 0U; in i2c_sifive_send_addr() local 93 command = SF_CMD_WRITE | SF_CMD_START; in i2c_sifive_send_addr() 95 /* Write the command register to start the transfer */ in i2c_sifive_send_addr() [all …]
|
D | i2c_ite_enhance.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/i2c.h> 23 #include "i2c-priv.h" 34 #define I2C_CQ_MODE_TX_MAX_PAYLOAD_SIZE (CONFIG_I2C_CQ_MODE_MAX_PAYLOAD_SIZE - 5) 39 * R/W (Read/ Write) decides the I2C read or write direction. 43 /* P (STOP) is the I2C STOP condition. */ 71 /* I2C alternate configuration */ 96 /* Command queue tx payload. */ 98 /* Command queue rx payload. */ 128 /* operation freq of i2c */ [all …]
|
D | i2c_esp32.c | 5 * SPDX-License-Identifier: Apache-2.0 10 /* Include esp-idf headers first to avoid redefining BIT() macro */ 22 #include <zephyr/drivers/i2c.h> 31 #include "i2c-priv.h" 44 #define I2C_CLOCK_INVALID (-1) 47 I2C_STATUS_READ, /* read status for current master command */ 48 I2C_STATUS_WRITE, /* write status for current master command */ 49 I2C_STATUS_IDLE, /* idle status for current master command */ 50 I2C_STATUS_ACK_ERROR, /* ack error status for current master command */ 51 I2C_STATUS_DONE, /* I2C command done */ [all …]
|
D | i2c_sam4l_twim.c | 3 * Copyright (c) 2020-2023 Gerson Fernando Budke <nandojve@gmail.com> 5 * SPDX-License-Identifier: Apache-2.0 11 * @brief I2C bus (TWIM) driver for Atmel SAM4L MCU family. 13 * I2C Master Mode with 7/10 bit addressing is currently supported. 24 #include <zephyr/drivers/i2c.h> 33 #include "i2c-priv.h" 35 /** I2C bus speed [Hz] in Standard Mode */ 37 /** I2C bus speed [Hz] in Fast Mode */ 39 /** I2C bus speed [Hz] in Fast Plus Mode */ 41 /** I2C bus speed [Hz] in High Speed Mode */ [all …]
|
/Zephyr-latest/dts/bindings/auxdisplay/ |
D | sparkfun,serlcd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 14 command-delay-ms = <10>; 15 special-command-delay-ms = <50>; 21 include: [auxdisplay-device.yaml, i2c-device.yaml] 28 - 16 29 - 20 35 - 2 36 - 4 38 command-delay-ms: 42 Delay in milliseconds (defaults to 10ms if not set) after a normal command was sent. [all …]
|
/Zephyr-latest/doc/develop/debug/ |
D | index.rst | 11 This section is a quick hands-on reference to start debugging your 46 .. code-block:: bash 48 qemu -s -S <image> 54 * ``-S`` Do not start CPU at startup; rather, you must type 'c' in the 56 * ``-s`` Shorthand for :literal:`-gdb tcp::1234`: open a GDB server on 60 Running QEMU via :command:`ninja` 65 .. code-block:: console 70 :makevar:`${QEMU_PIPE}` via CMake, typically :file:`qemu-fifo` within the build 71 directory. You may monitor this file during the run with :command:`tail -f 72 qemu-fifo`. [all …]
|
/Zephyr-latest/drivers/sensor/renesas/isl29035/ |
D | isl29035.c | 1 /* sensor_isl29035.c - driver for ISL29035 light sensor */ 6 * SPDX-License-Identifier: Apache-2.0 13 #include <zephyr/drivers/i2c.h> 25 struct isl29035_driver_data *drv_data = dev->data; in isl29035_sample_fetch() 26 const struct isl29035_config *config = dev->config; in isl29035_sample_fetch() 31 if (i2c_reg_read_byte_dt(&config->i2c, in isl29035_sample_fetch() 33 return -EIO; in isl29035_sample_fetch() 36 if (i2c_reg_read_byte_dt(&config->i2c, ISL29035_DATA_LSB_REG, in isl29035_sample_fetch() 38 return -EIO; in isl29035_sample_fetch() 41 drv_data->data_sample = (msb << 8) + lsb; in isl29035_sample_fetch() [all …]
|
/Zephyr-latest/drivers/smbus/ |
D | smbus_stm32.c | 3 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/drivers/i2c.h> 9 #include <zephyr/drivers/i2c/stm32.h> 37 struct smbus_stm32_data *data = dev->data; in smbus_stm32_smbalert_isr() 39 k_work_submit(&data->smbalert_work); in smbus_stm32_smbalert_isr() 45 const struct device *dev = data->dev; in smbus_stm32_smbalert_work() 47 LOG_DBG("%s: got SMB alert", dev->name); in smbus_stm32_smbalert_work() 49 smbus_loop_alert_devices(dev, &data->smbalert_callbacks); in smbus_stm32_smbalert_work() 54 struct smbus_stm32_data *data = dev->data; in smbus_stm32_smbalert_set_cb() 56 return smbus_callback_set(&data->smbalert_callbacks, cb); in smbus_stm32_smbalert_set_cb() [all …]
|
/Zephyr-latest/tests/drivers/build_all/auxdisplay/ |
D | i2c_devices.overlay | 3 * SPDX-License-Identifier: Apache-2.0 8 #address-cells = <1>; 9 #size-cells = <1>; 13 gpio-controller; 15 #gpio-cells = <0x2>; 19 test_i2c: i2c@11112222 { 20 #address-cells = <1>; 21 #size-cells = <0>; 22 compatible = "vnd,i2c"; 25 clock-frequency = <100000>; [all …]
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_ataes132a.c | 4 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/drivers/i2c.h> 48 struct ataes132a_device_data *data = dev->data; in ataes132a_send_command() 49 const struct ataes132a_device_config *cfg = dev->config; in ataes132a_send_command() 57 LOG_ERR("command too large for command buffer"); in ataes132a_send_command() 58 return -EDOM; in ataes132a_send_command() 61 /* If there is a command in progress, idle wait until it is available. in ataes132a_send_command() 65 read_reg_i2c(&cfg->i2c, ATAES_STATUS_REG, &status); in ataes132a_send_command() 69 read_reg_i2c(&cfg->i2c, ATAES_STATUS_REG, &status); in ataes132a_send_command() 72 data->command_buffer[0] = count; in ataes132a_send_command() [all …]
|
/Zephyr-latest/drivers/fuel_gauge/bq27z746/ |
D | bq27z746.c | 5 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/drivers/i2c.h> 28 const struct bq27z746_config *cfg = dev->config; in bq27z746_read16() 29 const int status = i2c_burst_read_dt(&cfg->i2c, reg, i2c_data, sizeof(i2c_data)); in bq27z746_read16() 43 const struct bq27z746_config *cfg = dev->config; in bq27z746_write16() 48 return i2c_write_dt(&cfg->i2c, buf, sizeof(buf)); in bq27z746_write16() 54 return -EINVAL; in bq27z746_read_mac() 58 const struct bq27z746_config *cfg = dev->config; in bq27z746_read_mac() 69 * 0..1: The command (for verification) in bq27z746_read_mac() 71 * 34: Checksum calculated as (uint8_t)(0xFF - (sum of all command and data bytes)) in bq27z746_read_mac() [all …]
|
D | emul_bq27z746.c | 5 * SPDX-License-Identifier: Apache-2.0 18 #include <zephyr/drivers/i2c.h> 34 /** I2C address of emulator */ 43 const struct bq27z746_emul_data *data = target->data; in emul_bq27z746_read_altmac() 48 return -EIO; in emul_bq27z746_read_altmac() 55 * 0..1: The command (for verification) in emul_bq27z746_read_altmac() 57 * 34: Checksum calculated as (uint8_t)(0xFF - (sum of all command and data bytes)) in emul_bq27z746_read_altmac() 58 * 35: Length including command, checksum and length (e.g. data length + 4) in emul_bq27z746_read_altmac() 61 /* Put the command in the first two byte */ in emul_bq27z746_read_altmac() 62 sys_put_le16(data->mac_cmd, buf); in emul_bq27z746_read_altmac() [all …]
|
/Zephyr-latest/tests/boards/mec15xxevb_assy6853/i2c_api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/drivers/i2c.h> 11 /* command to configure port direction of NXP PCA95xx */ 18 * @brief Test i2c api by communicating with pca95xx 20 * - get i2c mainline device 21 * - write data into pca95xx 22 * - read data from pca95xx 23 * - check read data whether correct 25 ZTEST(i2c, test_i2c_pca95xx) in ZTEST() argument 31 /* get i2c device */ in ZTEST() [all …]
|
/Zephyr-latest/tests/boards/mec172xevb_assy6906/i2c_api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/drivers/i2c.h> 11 /* command to configure port direction of NXP PCA95xx */ 18 * @brief Test i2c api by communicating with pca95xx 20 * - get i2c mainline device 21 * - write data into pca95xx 22 * - read data from pca95xx 23 * - check read data whether correct 31 /* get i2c device */ in ZTEST() 32 const struct i2c_dt_spec i2c = I2C_DT_SPEC_GET(DT_COMPAT_GET_ANY_STATUS_OKAY(nxp_pca95xx)); in ZTEST() local [all …]
|
/Zephyr-latest/dts/bindings/pwm/ |
D | nxp,pca9685.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: NXP PCA9685 16-channel, 12-bit PWM Fm+ I2C-bus LED controller 6 compatible: "nxp,pca9685-pwm" 8 include: [pwm-controller.yaml, i2c-device.yaml, base.yaml] 14 open-drain: 17 The 16 LEDn outputs are configured with an open-drain structure. 20 och-on-ack: 24 command. 32 "#pwm-cells": 35 pwm-cells: [all …]
|
/Zephyr-latest/drivers/sensor/honeywell/mpr/ |
D | mpr.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/i2c.h> 12 /* MPR output measurement command */ 36 struct i2c_dt_spec i2c; member
|
/Zephyr-latest/drivers/led/ |
D | lp5562.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * The LP5562 is a 4-channel LED driver that communicates over I2C. The four 23 * - Set the brightness. 24 * - Fade the brightness over time. 25 * - Loop parts of the program or the whole program. 26 * - Add delays. 27 * - Synchronize between the engines. 33 #include <zephyr/drivers/i2c.h> 69 * The wait command has six bits for the number of steps (max 63) with up to 134 * programmed for custom lighting patterns in order to reduce the I2C traffic [all …]
|
/Zephyr-latest/drivers/display/ |
D | ssd1306.c | 4 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/drivers/i2c.h> 31 struct i2c_dt_spec i2c; member 37 bool command); 67 #if (DT_HAS_COMPAT_ON_BUS_STATUS_OKAY(solomon_ssd1306fb, i2c) || \ 68 DT_HAS_COMPAT_ON_BUS_STATUS_OKAY(sinowealth_sh1106, i2c)) 71 const struct ssd1306_config *config = dev->config; in ssd1306_bus_ready_i2c() 73 return i2c_is_ready_dt(&config->bus.i2c); in ssd1306_bus_ready_i2c() 76 static int ssd1306_write_bus_i2c(const struct device *dev, uint8_t *buf, size_t len, bool command) in ssd1306_write_bus_i2c() argument 78 const struct ssd1306_config *config = dev->config; in ssd1306_write_bus_i2c() [all …]
|
/Zephyr-latest/soc/nxp/imx/imx6sx/ |
D | soc.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/rdc/imx_rdc.h> 94 /* Set access to I2C-1 for M4 core */ in SOC_RdcInit() 98 /* Set access to I2C-2 for M4 core */ in SOC_RdcInit() 102 /* Set access to I2C-3 for M4 core */ in SOC_RdcInit() 106 /* Set access to I2C-4 for M4 core */ in SOC_RdcInit() 111 /* Set access to PWM-1 for M4 core */ in SOC_RdcInit() 115 /* Set access to PWM-2 for M4 core */ in SOC_RdcInit() 119 /* Set access to PWM-3 for M4 core */ in SOC_RdcInit() 123 /* Set access to PWM-4 for M4 core */ in SOC_RdcInit() [all …]
|
/Zephyr-latest/drivers/sensor/renesas/hs300x/ |
D | hs300x.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/i2c.h> 32 const struct hs300x_config *cfg = dev->config; in hs300x_read_sample() 36 rc = i2c_read_dt(&cfg->bus, rx_buf, sizeof(rx_buf)); in hs300x_read_sample() 44 return -EIO; in hs300x_read_sample() 58 struct hs300x_data *data = dev->data; in hs300x_sample_fetch() 59 const struct hs300x_config *cfg = dev->config; in hs300x_sample_fetch() 65 return -ENOTSUP; in hs300x_sample_fetch() 69 * By default, the sensor should be factory-programmed to operate in Sleep Mode. in hs300x_sample_fetch() 70 * A Measurement Request (MR) command is required to exit the sensor in hs300x_sample_fetch() [all …]
|
/Zephyr-latest/drivers/w1/ |
D | w1_ds2477_85_common.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/i2c.h> 24 /* 1-Wire specific commands */ 34 /* i2c command overhead len */ 45 /* 1-Wire specific commands */ 55 /* I2C communication result bytes */ 63 /* primitive commands, executable via the script command */ 101 /* upper limit of 1-wire command length supported(in bytes) */ 103 /* limit of 1-wire command len is 126 bytes, but currently not used: */ 111 /* default 1-wire timing parameters (cfg. value==6) */ [all …]
|
/Zephyr-latest/boards/01space/esp32c3_042_oled/doc/ |
D | index.rst | 6 ESP32C3 0.42 OLED is a mini development board based on the `Espressif ESP32-C3`_ 7 RISC-V WiFi/Bluetooth dual-mode chip. 14 This board is based on the ESP32-C3-FH4 with WiFi and BLE support. 17 * RISC-V SoC @ 160MHz with 4MB flash and 400kB RAM 19 * 0.42-inch OLED over I2C 20 * Qwiic I2C connector 23 * On-chip USB-UART converter 31 The ESP32-C3 does not have native USB, it has an on-chip USB-serial converter 39 +-----------+------------+------------------+ 42 | PMP | on-chip | arch/riscv | [all …]
|
/Zephyr-latest/boards/kincony/kincony_kc868_a32/doc/ |
D | index.rst | 6 Kincony KC868-A32 is a home automation relay module based on the 7 Espressif ESP-WROOM-32 module with all its inherent capabilities 8 (Wi-Fi, Bluetooth, etc.) 12 - 32 digital optoisolated inputs “dry contact” 13 - 4 analog inputs 0-5 V 14 - 32 relays 220 V, 10 A (COM, NO, NC) 15 - RS485 interface 16 - I2C connector 17 - Connector GSM/HMI 18 - Ethernet LAN8270A [all …]
|