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 |
|---|---|---|---|---|---|---|---|---|
```unknown
config REGULATOR_NPM1300
bool "nPM1300 PMIC regulator driver"
default y
depends on DT_HAS_NORDIC_NPM1300_REGULATOR_ENABLED
select I2C
select MFD
help
Enable the Nordic nPM1300 PMIC regulator driver
if REGULATOR_NPM1300
config REGULATOR_NPM1300_COMMON_INIT_PRIORITY
int "nPM1300 regulator driver i... | /content/code_sandbox/drivers/regulator/Kconfig.npm1300 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 190 |
```c
/*
*/
#define DT_DRV_COMPAT nxp_vref
#include <errno.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/dt-bindings/regulator/nxp_vref.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/sys/util.h>
#include <fsl_device_registers.h>
static const struct linear_range utri... | /content/code_sandbox/drivers/regulator/regulator_nxp_vref.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,639 |
```unknown
config REGULATOR_RPI_PICO
bool "RaspberryPi Pico regulator driver"
default y
depends on DT_HAS_RASPBERRYPI_CORE_SUPPLY_REGULATOR_ENABLED
help
Enable support for the RaspberryPi Pico regulator.
if REGULATOR_RPI_PICO
config REGULATOR_RPI_PICO_INIT_PRIORITY
int "RaspberryPi Pico regulator driver init... | /content/code_sandbox/drivers/regulator/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```unknown
# Hidden option for turning on the dummy driver for vnd,i2c devices
# used in testing.
config I2C_TEST
def_bool DT_HAS_VND_I2C_ENABLED
depends on DT_HAS_VND_I2C_ENABLED
``` | /content/code_sandbox/drivers/i2c/Kconfig.test | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```c
/*
*/
#define DT_DRV_COMPAT adi_adp5360_regulator
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/regulator.h>
#include <zephyr/dt-bindings/regulator/adp5360.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/sys/util.h>
/* ADP5360 regulator related registers */
#define ADP53... | /content/code_sandbox/drivers/regulator/regulator_adp5360.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,787 |
```c
/*
* an affiliate of Cypress Semiconductor Corporation
*
*/
/**
* @brief I2C driver for Infineon XMC MCU family.
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_i2c
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_infineon_xmc4, CONFIG_I2C_LOG_LEVEL);
#include <zephyr/drivers/i2c.h>
#include <zephyr/driv... | /content/code_sandbox/drivers/i2c/i2c_ifx_xmc4.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,427 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_NRFX_TWI_COMMON_H_
#define ZEPHYR_DRIVERS_I2C_I2C_NRFX_TWI_COMMON_H_
#include <zephyr/pm/device.h>
#include <nrfx_twi.h>
#ifdef __cplusplus
extern "C" {
#endif
#define I2C_NRFX_TWI_INVALID_FREQUENCY ((nrf_twi_frequency_t)-1)
#define I2C_NRFX_TWI_FREQUENCY(bit... | /content/code_sandbox/drivers/i2c/i2c_nrfx_twi_common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 564 |
```unknown
# I2C configuration options
menuconfig I2C_MCUX_FLEXCOMM
bool "MCUX FLEXCOMM I2C driver"
default y
depends on DT_HAS_NXP_LPC_I2C_ENABLED
select PINCTRL
select RESET
help
Enable the mcux flexcomm i2c driver.
config I2C_NXP_TRANSFER_TIMEOUT
int "Transfer timeout [ms]"
default 0
depends on I2C_MC... | /content/code_sandbox/drivers/i2c/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 170 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_i2c
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pin... | /content/code_sandbox/drivers/i2c/i2c_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,685 |
```c
/*
*
* Based on the i2c_mcux_lpi2c.c driver, which is:
*
*/
#define DT_DRV_COMPAT openisa_rv32m1_lpi2c
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/irq.h>
#include <fsl_lpi2c.h>
#include <zephyr/logging/log.h>
#include <soc.h>
#include <zephyr/drivers/pinctrl.h>
... | /content/code_sandbox/drivers/i2c/i2c_rv32m1_lpi2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,433 |
```unknown
config I2C_SBCON
bool "I2C driver for ARM's SBCon two-wire serial bus interface"
default y
depends on DT_HAS_ARM_VERSATILE_I2C_ENABLED
select I2C_BITBANG
``` | /content/code_sandbox/drivers/i2c/Kconfig.sbcon | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
# Ambiq SDK I2C
#
#
#
menuconfig I2C_AMBIQ
bool "AMBIQ I2C driver"
default y
depends on DT_HAS_AMBIQ_I2C_ENABLED
select AMBIQ_HAL
select AMBIQ_HAL_USE_I2C
help
Enable driver for Ambiq I2C.
if I2C_AMBIQ
config I2C_AMBIQ_DMA
bool "AMBIQ APOLLO I2C DMA Support"
help
Enable DMA for Ambiq I2C.
c... | /content/code_sandbox/drivers/i2c/Kconfig.ambiq | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 163 |
```unknown
config I2C_LPC11U6X
bool "LPC11U6X I2C driver"
default y
depends on DT_HAS_NXP_LPC11U6X_I2C_ENABLED
help
Enable I2C support on the LPC11U6X SoCs
``` | /content/code_sandbox/drivers/i2c/Kconfig.lpc11u6x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```c
/*
*
*/
/**
* @file
* @brief Software driven 'bit-banging' library for I2C
*
* This code implements the I2C single master protocol in software by directly
* manipulating the levels of the SCL and SDA lines of an I2C bus. It supports
* the Standard-mode and Fast-mode speeds and doesn't support optional
* ... | /content/code_sandbox/drivers/i2c/i2c_bitbang.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,339 |
```c
/*
*
*
* I2C Driver for: STM32F1, STM32F2, STM32F4 and STM32L1
*
*/
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <stm32_ll_i2c.h>
#include <errno.h>
#include <zephyr/dr... | /content/code_sandbox/drivers/i2c/i2c_ll_stm32_v1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,617 |
```unknown
config I2C_LITEX
bool "LiteX I2C driver"
default y
depends on DT_HAS_LITEX_I2C_ENABLED
select I2C_BITBANG
help
Enable support for Litex I2C driver
``` | /content/code_sandbox/drivers/i2c/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_i2c
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(... | /content/code_sandbox/drivers/i2c/i2c_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,348 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_sedi_i2c
#include <stdint.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <sedi_driver_i2c.h>
#include <zephyr/pm/device.h>
#define I2C_SEDI_TIMEOUT_MS (1000)
struct i2c_sedi_context {
DEVICE_MMIO_RAM;
int sedi_device;
struct k_sem *sem;
struct k... | /content/code_sandbox/drivers/i2c/i2c_sedi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,938 |
```c
/*
*
*/
#define DT_DRV_COMPAT altr_nios2_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <zephyr/sys/util.h>
#include <altera_common.h>
#include "altera_avalon_i2c.h"
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/log... | /content/code_sandbox/drivers/i2c/i2c_nios2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,561 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_ra_iic
#include <math.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util.h>
#include "r_iic_master.h"
#include <errno.h>
#include... | /content/code_sandbox/drivers/i2c/i2c_renesas_ra_iic.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,062 |
```unknown
config I2C_CC13XX_CC26XX
bool "TI SimpleLink CC13xx / CC26xx I2C driver"
default y
depends on DT_HAS_TI_CC13XX_CC26XX_I2C_ENABLED
help
Enable support for I2C on the TI SimpleLink CC13xx / CC26xx series.
``` | /content/code_sandbox/drivers/i2c/Kconfig.cc13xx_cc26xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```unknown
menuconfig I2C_STM32
bool "STM32 I2C driver"
default y
depends on DT_HAS_ST_STM32_I2C_V1_ENABLED || DT_HAS_ST_STM32_I2C_V2_ENABLED
help
Enable I2C support on the STM32 SoCs
if I2C_STM32
config I2C_STM32_V1
bool
default y
depends on DT_HAS_ST_STM32_I2C_V1_ENABLED
select USE_STM32_LL_I2C
select ... | /content/code_sandbox/drivers/i2c/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 510 |
```objective-c
/*
*
* Driver for the Xilinx AXI IIC Bus Interface.
* This is an FPGA logic core as described by Xilinx document PG090.
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_XILINX_AXI_H_
#define ZEPHYR_DRIVERS_I2C_I2C_XILINX_AXI_H_
#include <zephyr/sys/util_macro.h>
/* Register offsets */
enum xilinx_axi_i2c_registe... | /content/code_sandbox/drivers/i2c/i2c_xilinx_axi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,086 |
```unknown
config I2C_GPIO
bool "GPIO bit banging I2C support"
default y
depends on DT_HAS_GPIO_I2C_ENABLED
select I2C_BITBANG
help
Enable software driven (bit banging) I2C support using GPIO pins
``` | /content/code_sandbox/drivers/i2c/Kconfig.gpio | 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/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <nrfx_twi.h>
#include "i2c_nrfx_twi_common.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(i2c_nrfx_twi);
int i2c_nrfx_twi_init(const struct device *dev)
{
const struct i2c_nrfx_twi_config *c... | /content/code_sandbox/drivers/i2c/i2c_nrfx_twi_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,250 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <fsl_i2c.h>
#include <fsl_clock.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG... | /content/code_sandbox/drivers/i2c/i2c_mcux.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,829 |
```unknown
menuconfig I2C_TCA954X
bool "I2C addressable switch"
default y
depends on DT_HAS_TI_TCA9546A_ENABLED || DT_HAS_TI_TCA9548A_ENABLED
help
Enable TCA954x series I2C bus switch
if I2C_TCA954X
config I2C_TCA954X_ROOT_INIT_PRIO
int "TCA954x root driver init priority"
default I2C_INIT_PRIORITY
help
... | /content/code_sandbox/drivers/i2c/Kconfig.tca954x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 175 |
```c
/*
*
*/
#define DT_DRV_COMPAT arm_versatile_i2c
/**
* @file
* @brief Driver for ARM's SBCon 2-wire serial bus interface
*
* SBCon is a simple device which allows directly setting and getting the
* hardware state of two-bit serial interfaces like I2C.
*/
#include <zephyr/device.h>
#include <errno.h>
#inc... | /content/code_sandbox/drivers/i2c/i2c_sbcon.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,150 |
```unknown
# sam twihs I2C support
config I2C_SAM_TWIHS
bool "Atmel SAM (TWIHS) I2C driver"
default y
depends on DT_HAS_ATMEL_SAM_I2C_TWIHS_ENABLED
select HAS_I2C_RTIO
help
Enable Atmel SAM MCU Family (TWIHS) I2C bus driver.
``` | /content/code_sandbox/drivers/i2c/Kconfig.sam_twihs | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```unknown
menuconfig I2C_MAX32
bool "Analog Devices MAX32 I2C driver"
default y
depends on DT_HAS_ADI_MAX32_I2C_ENABLED
select PINCTRL
help
i2c driver for max32 family.
if I2C_MAX32
config I2C_MAX32_INTERRUPT
bool "Interrupt support for MAX32 I2C driver"
default y
help
Enable interrupt support for MAX... | /content/code_sandbox/drivers/i2c/Kconfig.max32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 161 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_NPCX_CONTROLLER_H_
#define ZEPHYR_DRIVERS_I2C_I2C_NPCX_CONTROLLER_H_
#include <zephyr/device.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Lock the mutex of npcx i2c controller.
*
* @param i2c_dev Pointer to the device structure for i2c controller ... | /content/code_sandbox/drivers/i2c/i2c_npcx_controller.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 938 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <string.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_i2c_configure(const struct device *dev,
uint32_t dev_config)
{
K_OOPS(K_SYSCALL_DRIVER_I2C(dev, configure));
return z_impl_i2c_configure((const struct device *)dev, dev... | /content/code_sandbox/drivers/i2c/i2c_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 786 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include <stdint.h>
LOG_MODULE_REGISTER(tca954x, CONFIG_I2C_LOG_LEVEL);
struct tca954x_root_config {
struct i2c_dt_spec... | /content/code_sandbox/drivers/i2c/i2c_tca954x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,651 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_SC18IM704_H_
#define ZEPHYR_DRIVERS_I2C_I2C_SC18IM704_H_
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define SC18IM704_CMD_STOP 0x50
#define SC18IM704_CMD_I2C_START 0x53
#define SC18IM704_CMD_READ_REG 0x52
#define SC18IM704_CMD_WRITE_REG ... | /content/code_sandbox/drivers/i2c/i2c_sc18im704.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 739 |
```c
/*
*
* Based on i2c_tca9656a.c
*
*/
#define DT_DRV_COMPAT gpio_i2c_switch
#define GPIO_I2C_TOGGLE_DELAY_US 1
#define GPIO_I2C_LOCK_TIMEOUT_US (GPIO_I2C_TOGGLE_DELAY_US * 2 + 100)
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/i2c.h>
#include <... | /content/code_sandbox/drivers/i2c/gpio_i2c_switch.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 703 |
```unknown
config I2C_XILINX_AXI
bool "Xilinx AXI I2C driver"
default y
depends on DT_HAS_XLNX_XPS_IIC_2_00_A_ENABLED || DT_HAS_XLNX_XPS_IIC_2_1_ENABLED
select EVENTS
help
Enable the Xilinx AXI IIC Bus Interface driver.
This is an FPGA logic core as described by Xilinx document PG090.
``` | /content/code_sandbox/drivers/i2c/Kconfig.xilinx_axi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```unknown
# ESP32 I2C configuration options
config I2C_ESP32
bool "ESP32 I2C driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_I2C_ENABLED
select GPIO_ESP32
help
Enables the ESP32 I2C driver
``` | /content/code_sandbox/drivers/i2c/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_i2c
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <esp32/rom/gpio.h>
#include <soc/gpio_sig_map.h>
#include <hal/i2c_ll.h>
#include <hal/i2c_hal.h>
#include <hal/gpio_hal.h>
#include <clk_ctrl_os.h>
#include <soc.h>
#include <errno.h... | /content/code_sandbox/drivers/i2c/i2c_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,905 |
```unknown
# Renesas RA Family
config RENESAS_RA_I2C_IIC
bool "Renesas RA I2C IIC Master"
default y
depends on DT_HAS_RENESAS_RA_IIC_ENABLED
select USE_RA_FSP_I2C_IIC
help
Enable Renesas RA I2C IIC Driver.
``` | /content/code_sandbox/drivers/i2c/Kconfig.renesas_ra | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```c
/*
*
*
* I2C Driver for: STM32F0, STM32F3, STM32F7, STM32L0, STM32L4, STM32WB and
* STM32WL
*
*/
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <stm32_ll_i2c.h>
#include... | /content/code_sandbox/drivers/i2c/i2c_ll_stm32_v2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,647 |
```unknown
config I2C_EMUL
bool "I2C emulator"
default y
depends on DT_HAS_ZEPHYR_I2C_EMUL_CONTROLLER_ENABLED
depends on EMUL
help
Enable the I2C emulator driver. This is a fake driver in that it
does not talk to real hardware. Instead it talks to emulation
drivers that pretend to be devices on the emula... | /content/code_sandbox/drivers/i2c/Kconfig.i2c_emul | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```c
/*
*
* Driver for the Xilinx AXI IIC Bus Interface.
* This is an FPGA logic core as described by Xilinx document PG090.
*/
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(i2c_xilinx_axi, CONFIG_I2C_LOG... | /content/code_sandbox/drivers/i2c/i2c_xilinx_axi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,003 |
```unknown
config I2C_SC18IM704
bool "NXP SC18IM704 I2C controller driver"
default y
depends on DT_HAS_NXP_SC18IM704_I2C_ENABLED
select UART_USE_RUNTIME_CONFIGURE
help
Enables NXP SC18IM704 I2C controller driver
if I2C_SC18IM704
config I2C_SC18IM704_INIT_PRIORITY
int "SC18IM704 I2C init priority"
default 5... | /content/code_sandbox/drivers/i2c/Kconfig.sc18im704 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 177 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_max32_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control/adi_max32_clock_control.h>
#include <zephyr/irq.h>
#if defined(CONFIG_I2C_MAX32_DMA)
#include <zephyr/drivers/dma.h>
#endif /* CONFIG_I2C_MA... | /content/code_sandbox/drivers/i2c/i2c_max32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,626 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(mcux_fle... | /content/code_sandbox/drivers/i2c/i2c_mcux_flexcomm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,047 |
```unknown
# NUMAKER I2C driver configuration options
config I2C_NUMAKER
bool "Nuvoton NuMaker I2C driver"
default y
select HAS_NUMAKER_I2C
depends on DT_HAS_NUVOTON_NUMAKER_I2C_ENABLED
help
This option enables I2C driver for Nuvoton NuMaker family of
processors.
Say y if you wish to enable NuMaker I2C.... | /content/code_sandbox/drivers/i2c/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```unknown
config I2C_SIFIVE
bool "Sifive I2C driver"
default y
depends on DT_HAS_SIFIVE_I2C0_ENABLED
help
Enable I2C support on SiFive Freedom
``` | /content/code_sandbox/drivers/i2c/Kconfig.sifive | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
# Renesas R-Car Gen3 I2C configuration options
config I2C_RCAR
bool "Renesas R-Car I2C Driver"
default y
depends on DT_HAS_RENESAS_RCAR_I2C_ENABLED
help
Enable Renesas R-Car I2C Driver.
``` | /content/code_sandbox/drivers/i2c/Kconfig.rcar | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```unknown
#
#
#
config I2C_SEDI
bool "Intel SEDI I2C Driver"
default y
depends on DT_HAS_INTEL_SEDI_I2C_ENABLED
help
This option enables the Intel SEDI I2C driver.
This driver is simply a shim driver built upon the SEDI
bare metal I2C driver in the hal-intel module
``` | /content/code_sandbox/drivers/i2c/Kconfig.sedi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_LPC11U6X_H_
#define ZEPHYR_DRIVERS_I2C_I2C_LPC11U6X_H_
#include <zephyr/drivers/pinctrl.h>
#define PINCTRL_STATE_FAST_PLUS PINCTRL_STATE_PRIV_START
#define LPC11U6X_I2C_CONTROL_AA (1 << 2)
#define LPC11U6X_I2C_CONTROL_SI (1 << 3)
#define LP... | /content/code_sandbox/drivers/i2c/i2c_lpc11u6x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,085 |
```c
/*
*
*/
#include <zephyr/pm/policy.h>
#define DT_DRV_COMPAT nuvoton_npcx_i2c_ctrl
/**
* @file
* @brief Nuvoton NPCX smb/i2c module (controller) driver
*
* This file contains the driver of SMB module (controller) which provides full
* support for a two-wire SMBus/I2C synchronous serial interface. The follo... | /content/code_sandbox/drivers/i2c/i2c_npcx_controller.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,838 |
```c
/*
*
*/
/*
* This is not a real I2C driver. It is used to instantiate struct
* devices for the "vnd,i2c" devicetree compatible used in test code.
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#define DT_DRV_COMPAT vnd_i2c
static int vnd_i2c_configure(const struct device *dev,
uint3... | /content/code_sandbox/drivers/i2c/i2c_test.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 247 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <nrfx_twim.h>
#include <zephyr/sys/util.h>
#include <zephyr/linker/devicetree_regions.h>
#include <z... | /content/code_sandbox/drivers/i2c/i2c_nrfx_twim.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,232 |
```unknown
config I2C_ITE_IT8XXX2
bool "ITE IT8XXX2 I2C driver"
default y
depends on DT_HAS_ITE_IT8XXX2_I2C_ENABLED
help
Enable I2C support on it8xxx2_evb.
Supported Speeds: 100kHz, 400kHz and 1MHz.
This driver supports repeated start.
if I2C_ITE_IT8XXX2
config I2C_IT8XXX2_FIFO_MODE
bool "IT8XXX2 I2C F... | /content/code_sandbox/drivers/i2c/Kconfig.it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 563 |
```unknown
# Kconfig Andes ATCIIC100 configuration option
#
#
#
config I2C_ANDES_ATCIIC100
bool "Andes ATCIIC100 I2C driver"
default y
depends on DT_HAS_ANDESTECH_ATCIIC100_ENABLED
help
Enable driver for the Andes ATCIIC100 I2C controller.
``` | /content/code_sandbox/drivers/i2c/Kconfig.andes_atciic100 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```c
/*
*
*/
#define DT_DRV_COMPAT gd_gd32_i2c
#include <errno.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/gd32.h>
#include <zephyr/kernel.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/i2c.h>
... | /content/code_sandbox/drivers/i2c/i2c_gd32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,056 |
```objective-c
/* dw_i2c.h - header for Design Ware I2C operations */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_DW_H_
#define ZEPHYR_DRIVERS_I2C_I2C_DW_H_
#include <zephyr/drivers/i2c.h>
#include <stdbool.h>
#define DT_DRV_COMPAT snps_designware_i2c
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(pcie)
BUILD_ASSERT(IS_ENABLED(CO... | /content/code_sandbox/drivers/i2c/i2c_dw.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,420 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_i2c
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_cc13xx_cc... | /content/code_sandbox/drivers/i2c/i2c_cc13xx_cc26xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,281 |
```c
/* dw_i2c.c - I2C file for Design Ware */
/*
*
*/
#include <stddef.h>
#include <zephyr/types.h>
#include <stdlib.h>
#include <stdbool.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/pm/device.h>
#include <zephyr/arch/cpu.h>
#include <string.h>
#if define... | /content/code_sandbox/drivers/i2c/i2c_dw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,680 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_lpi2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c/rtio.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/kernel.h>
#include <zephyr/irq.h>
#include <fsl_lpi2c.h>
#include <zephyr/drivers/pinctrl.h>
#ifdef CONFIG_I2C_MCUX_LP... | /content/code_sandbox/drivers/i2c/i2c_mcux_lpi2c_rtio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,383 |
```objective-c
/* i2c_dw_registers.h - array access for I2C Design Ware registers */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_DW_REGISTERS_H_
#define ZEPHYR_DRIVERS_I2C_I2C_DW_REGISTERS_H_
#ifdef __cplusplus
extern "C" {
#endif
/* IC_CON bits */
union ic_con_register {
uint32_t raw;
struct {
uint... | /content/code_sandbox/drivers/i2c/i2c_dw_registers.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,647 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam0_i2c
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(i... | /content/code_sandbox/drivers/i2c/i2c_sam0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,061 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_i2c_twi
/** @file
* @brief I2C bus (TWI) driver for Atmel SAM MCU family.
*
* Limitations:
* - Only I2C Master Mode with 7 bit addressing is currently supported.
* - No reentrancy support.
*/
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <stdbool.h>... | /content/code_sandbox/drivers/i2c/i2c_sam_twi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,024 |
```c
/*
*
*/
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/pm/policy.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <stm32_ll_i2c.h>
#in... | /content/code_sandbox/drivers/i2c/i2c_ll_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,013 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_PRIV_H_
#define ZEPHYR_DRIVERS_I2C_I2C_PRIV_H_
#include <zephyr/drivers/i2c.h>
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/logging/log.h>
#ifdef __cplusplus
extern "C" {
#endif
static inline uint32_t i2c_map_dt_bitrate(uint32_t bitrate)
{
switch ... | /content/code_sandbox/drivers/i2c/i2c-priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 265 |
```unknown
config I2C_SMARTBOND
bool "Renesas SmartBond(tm) I2C driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_I2C_ENABLED
help
Enable I2C driver for Renesas SmartBond(tm) DA1469x series MCU.
``` | /content/code_sandbox/drivers/i2c/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
# Microchip PolarFire SoC Icicle Kit I2C configuration options
config I2C_MCHP_MSS
bool "Microchip PolarFire SoC I2C driver"
default y
depends on DT_HAS_MICROCHIP_MPFS_I2C_ENABLED
help
Enable PolarFire SoC Icicle Kit I2C driver.
``` | /content/code_sandbox/drivers/i2c/Kconfig.mchp_mss | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_rcar_i2c
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/renesas_cpg_mssr.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.... | /content/code_sandbox/drivers/i2c/i2c_rcar.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,622 |
```unknown
config I2C_GD32
bool "GigaDevice GD32 I2C driver"
default y
depends on DT_HAS_GD_GD32_I2C_ENABLED
help
Enables GigaDevice GD32 I2C driver
``` | /content/code_sandbox/drivers/i2c/Kconfig.gd32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_sc18im704_i2c
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_sc18im, CO... | /content/code_sandbox/drivers/i2c/i2c_sc18im704.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,521 |
```c
/*
*
*/
#define DT_DRV_COMPAT ene_kb1200_i2c
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <errno.h>
#include <reg/fsmbm.h>
struct i2c_kb1200_config {
struct fsmbm_regs *fsmbm;
const struct pinctrl_dev_config *pcfg;
};
struct i2c_kb1200_data {
stru... | /content/code_sandbox/drivers/i2c/i2c_ene_kb1200.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,524 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_i2c
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_litex, CONFIG_I2C_LOG_LEVEL);
#include "i2c-priv.h"
#include "i2c_bitbang.h"
#include <soc.h>
#define SCL_BIT_POS 0
#define SDA_DIR_BIT_P... | /content/code_sandbox/drivers/i2c/i2c_litex.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,298 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc11u6x_i2c
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/irq.h>
#include "i2c_lpc11u6x.h"
#define DEV_BASE(dev) (((struct lpc11u6x_i2c_config *)(dev->config))->base)
static void lpc11u6x_i2c_set_bus_sp... | /content/code_sandbox/drivers/i2c/i2c_lpc11u6x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,353 |
```unknown
# Microchip XEC I2C configuration options
config I2C_XEC
bool "XEC Microchip I2C driver"
default y
depends on DT_HAS_MICROCHIP_XEC_I2C_ENABLED
help
Enable the Microchip XEC I2C driver.
config I2C_XEC_V2
bool "XEC Microchip I2C driver"
default y
depends on DT_HAS_MICROCHIP_XEC_I2C_V2_ENABLED
hel... | /content/code_sandbox/drivers/i2c/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 118 |
```unknown
config I2C_IPROC
bool "Broadcom iProc I2C controller"
default y
depends on DT_HAS_BRCM_IPROC_I2C_ENABLED
help
Enable support for Broadcom iProc I2C controller.
``` | /content/code_sandbox/drivers/i2c/Kconfig.bcm_iproc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```objective-c
/*
*
*
*/
#ifndef ZEPHYR_DRIVERS_I2C_I2C_LL_STM32_H_
#define ZEPHYR_DRIVERS_I2C_I2C_LL_STM32_H_
#include <zephyr/drivers/i2c/stm32.h>
#ifdef CONFIG_I2C_STM32_BUS_RECOVERY
#include <zephyr/drivers/gpio.h>
#endif /* CONFIG_I2C_STM32_BUS_RECOVERY */
typedef void (*irq_config_func_t)(const struct devi... | /content/code_sandbox/drivers/i2c/i2c_ll_stm32.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 873 |
```unknown
# NPCX I2C driver configuration options
config I2C_NPCX
bool "Nuvoton NPCX embedded controller (EC) I2C driver"
default y
depends on DT_HAS_NUVOTON_NPCX_I2C_PORT_ENABLED
help
This option enables the I2C driver for NPCX family of
processors.
Say y if you wish to use I2C modules on NPCX MCU.
co... | /content/code_sandbox/drivers/i2c/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 163 |
```unknown
menuconfig I2C_DW
bool "Design Ware I2C support"
default y
depends on DT_HAS_SNPS_DESIGNWARE_I2C_ENABLED
help
Enable the Design Ware I2C driver
config I2C_DW_CLOCK_SPEED
int "Set the clock speed for I2C"
depends on I2C_DW
default 32
config I2C_DW_LPSS_DMA
bool "Use I2C integrated DMA for asynch... | /content/code_sandbox/drivers/i2c/Kconfig.dw | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 202 |
```c
/*
*
*/
#define DT_DRV_COMPAT ambiq_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#include <zephyr/pm/device_runtime.h>
#include <am_mcu_apollo.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/pinctrl.h... | /content/code_sandbox/drivers/i2c/i2c_ambiq.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,846 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <nrfx_twi.h>
#include "i2c_nrfx_twi_common.h"
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(i2c_nrfx_twi, CO... | /content/code_sandbox/drivers/i2c/i2c_nrfx_twi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,640 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_enhance_i2c
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/policy.h>
#include <errno.h>
#include <soc.h>
#include <soc_dt.h>
#include <zephyr/sys/util.h... | /content/code_sandbox/drivers/i2c/i2c_ite_enhance.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14,245 |
```objective-c
/*
*
*/
/**
* @brief Functions for setting and getting the state of the I2C lines.
*
* These need to be implemented by the user of this library.
*/
struct i2c_bitbang_io {
/* Set the state of the SCL line (zero/non-zero value) */
void (*set_scl)(void *io_context, int state);
/* Set the state of... | /content/code_sandbox/drivers/i2c/i2c_bitbang.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 538 |
```c
/*
* Logging of I2C messages
*
*
*/
#include <stdio.h>
#include <zephyr/drivers/i2c.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c);
#if defined(CONFIG_I2C_CALLBACK) && defined(CONFIG_POLL)
void z_i2c_transfer_signal_cb(const struct device *dev,
int resul... | /content/code_sandbox/drivers/i2c/i2c_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 636 |
```c
/*
*
*/
#define DT_DRV_COMPAT telink_b91_i2c
#include "i2c.h"
#include "clock.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_telink);
#include <zephyr/drivers/i2c.h>
#include "i2c-priv.h"
#include <zephyr/drivers/pinctrl.h>
/* I2C configuration structure */
struct i2c_b91_cfg {
uint32_t bitrate... | /content/code_sandbox/drivers/i2c/i2c_b91.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,232 |
```unknown
# nrfx I2C support
menuconfig I2C_NRFX
bool "nRF TWI nrfx drivers"
default y
depends on SOC_FAMILY_NORDIC_NRF
depends on MULTITHREADING
select PINCTRL
help
Enable support for nrfx TWI drivers for nRF MCU series.
if I2C_NRFX
config I2C_NRFX_TWI
def_bool y
depends on DT_HAS_NORDIC_NRF_TWI_ENABLE... | /content/code_sandbox/drivers/i2c/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 495 |
```c
/*
*
*/
/* The logic here is adapted from SimpleLink SDK's I2CCC32XX.c module. */
#define DT_DRV_COMPAT ti_cc32xx_i2c
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
/* Driverlib includes */
#include <inc/hw_memmap.h>
#include... | /content/code_sandbox/drivers/i2c/i2c_cc32xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,230 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_it8xxx2_i2c
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <errno.h>
#include <ilm.h>
#include <soc.h>
#include <soc_dt.h>
#include <zephyr/dt-bindings/i2c/it8xxx2... | /content/code_sandbox/drivers/i2c/i2c_ite_it8xxx2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12,388 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_i2c_port
/**
* @file
* @brief Nuvoton NPCX smb/i2c port driver
*
* This file contains the driver of SMBus/I2C buses (ports) which provides
* pin-muxing for each i2c io-pads. In order to support "SMBus Multi-Bus"
* feature, please refer the diagram below, the dri... | /content/code_sandbox/drivers/i2c/i2c_npcx_port.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,814 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_i2c_v2
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/... | /content/code_sandbox/drivers/i2c/i2c_mchp_xec_v2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,756 |
```c
/*
*
*/
#define DT_DRV_COMPAT fsl_imx21_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <soc.h>
#include <i2c_imx.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(i2c_imx);
#include "i2c-priv.h"
#d... | /content/code_sandbox/drivers/i2c/i2c_imx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,978 |
```c
/*
* This driver creates fake I2C buses which can contain emulated devices,
* implemented by a separate emulation driver. The API between this driver and
* its emulators is defined by struct i2c_emul_driver_api.
*
*
*/
#define DT_DRV_COMPAT zephyr_i2c_emul_controller
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
... | /content/code_sandbox/drivers/i2c/i2c_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,694 |
```c
/*
* an affiliate of Cypress Semiconductor Corporation
*
*/
/**
* @brief I2C driver for Infineon CAT1 MCU family.
*/
#define DT_DRV_COMPAT infineon_cat1_i2c
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <cyhal_i2c.h>
#include <cyhal_utils_impl.h>
#include <cyhal_utils_impl.h>... | /content/code_sandbox/drivers/i2c/i2c_ifx_cat1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,646 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_i2c_twihs
/** @file
* @brief I2C bus (TWIHS) driver for Atmel SAM MCU family.
*
* Only I2C Master Mode with 7 bit addressing is currently supported.
*/
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#includ... | /content/code_sandbox/drivers/i2c/i2c_sam_twihs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,928 |
```c
/*
*
*/
#define DT_DRV_COMPAT brcm_iproc_i2c
#include <errno.h>
#include <stdint.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
LOG_MODULE_REGISTER(iproc_i2c);
#include "i2c-priv.h"
/* Registers */
#define CFG_OFFSET ... | /content/code_sandbox/drivers/i2c/i2c_bcm_iproc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,451 |
```unknown
# I2C configuration options
#
# I2C options
#
menuconfig I2C
bool "Inter-Integrated Circuit (I2C) bus drivers"
help
Enable I2C Driver Configuration
if I2C
config I2C_SHELL
bool "I2C Shell"
depends on SHELL
help
Enable I2C Shell.
The I2C shell supports scanning, bus recovery, I2C read and w... | /content/code_sandbox/drivers/i2c/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,870 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_smartbond_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <DA1469xAB.h>
#include <da1469x_pd.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/logging/... | /content/code_sandbox/drivers/i2c/i2c_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,790 |
```objective-c
/*
*
*/
/**
* @file I2C driver for AndesTech atciic100 IP
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/sys_io.h>
#define I2C_MAX_COUNT 256
#define BURST_CMD_COUNT 1
#define RED_IDR ... | /content/code_sandbox/drivers/i2c/i2c_andes_atciic100.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,280 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_i2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <em_cmu.h>
#include <em_i2c.h>
#include <em_gpio.h>
#include <soc.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#in... | /content/code_sandbox/drivers/i2c/i2c_gecko.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,434 |
```c
/*
*
*/
#define DT_DRV_COMPAT gpio_i2c
/**
* @file
* @brief Driver for software driven I2C using GPIO lines
*
* This driver implements an I2C interface by driving two GPIO lines under
* software control.
*
* The GPIO pins used must be configured (through devicetree and pinmux) with
* suitable flags, i.... | /content/code_sandbox/drivers/i2c/i2c_gpio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,535 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_i2c_twihs
/** @file
* @brief I2C bus (TWIHS) driver for Atmel SAM MCU family.
*
* Only I2C Controller Mode with 7 bit addressing is currently supported.
*/
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#inc... | /content/code_sandbox/drivers/i2c/i2c_sam_twihs_rtio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,252 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.