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
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_lpi2c
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/kernel.h>
#include <zephyr/irq.h>
#include <fsl_lpi2c.h>
#if CONFIG_NXP_LP_FLEXCOMM
#include <zephyr/drivers/mfd/nxp_lp_flexcomm.h>
#endif
#include <zephyr/... | /content/code_sandbox/drivers/i2c/i2c_mcux_lpi2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,190 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c/rtio.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>
... | /content/code_sandbox/drivers/i2c/i2c_nrfx_twi_rtio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,044 |
```c
/*
*
*/
#include <errno.h>
#include <string.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/irq.h>
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/irq.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/sys/atomic.h>
#in... | /content/code_sandbox/drivers/i2c/i2c_mchp_mss.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,451 |
```unknown
# Infineon XMC4 I2C configuration options
# an affiliate of Cypress Semiconductor Corporation
#
menuconfig I2C_INFINEON_XMC4
bool "Infineon XMC4 I2C driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_I2C_ENABLED
help
This option enables the I2C driver for Infineon XMC4 family.
config I2C_INFINEON... | /content/code_sandbox/drivers/i2c/Kconfig.ifx_xmc4 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 149 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/shell/shell.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_shell, CONFIG_LOG_DEFAULT_LEVEL);
#define MAX_BYTES_FOR_REGISTER_INDEX 4
#defin... | /content/code_sandbox/drivers/i2c/i2c_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,114 |
```unknown
# Infineon CAT1 I2C configuration options
# an affiliate of Cypress Semiconductor Corporation
#
config I2C_INFINEON_CAT1
bool "Infineon CAT1 I2C driver"
default y
depends on DT_HAS_INFINEON_CAT1_I2C_ENABLED
select USE_INFINEON_I2C
help
This option enables the I2C driver for Infineon CAT1 family.
c... | /content/code_sandbox/drivers/i2c/Kconfig.ifx_cat1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 203 |
```c
/*
*
*/
#define DT_DRV_COMPAT sifive_i2c0
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_sifive);
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <soc.h>
#include <zephyr/sys/sys_io.h>
#include "i2c-priv.h"
/* Macros */
#define I2C_REG(con... | /content/code_sandbox/drivers/i2c/i2c_sifive.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,371 |
```unknown
menuconfig I2C_SAM0
bool "SAM0 series I2C SERCOM driver"
default y
depends on DT_HAS_ATMEL_SAM0_I2C_ENABLED
help
Enable the SAM0 series SERCOM I2C driver.
config I2C_SAM0_DMA_DRIVEN
bool "DMA support for SAM0 I2C devices"
depends on I2C_SAM0
select DMA
help
This enables DMA driven transaction... | /content/code_sandbox/drivers/i2c/Kconfig.sam0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c/rtio.h>
#include <zephyr/rtio/rtio.h>
#include <zephyr/sys/mpsc_lockfree.h>
#include <zephyr/sys/__assert.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(i2c_rtio);
const struct rtio_iodev_api i2... | /content/code_sandbox/drivers/i2c/i2c_rtio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,646 |
```c
/*
*
*/
/**
* @file I2C driver for AndesTech atciic100 IP
*/
#include <string.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/irq.h>
#include "i2c_andes_atciic100.h"
#define DT_DRV_COMPAT andestech_atciic100
typedef void (*atciic100_dt_init_func_t)(void);
struct i2c_atciic100_config {
uint32_t base... | /content/code_sandbox/drivers/i2c/i2c_andes_atciic100.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,428 |
```unknown
config I2C_ENE_KB1200
bool "ENE KB1200 I2C driver"
default y
depends on DT_HAS_ENE_KB1200_I2C_ENABLED
select PINCTRL
help
Enable the ENE KB1200 I2C driver.
``` | /content/code_sandbox/drivers/i2c/Kconfig.ene | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
config I2C_TELINK_B91
bool "Telink Semiconductor B91 I2C driver"
default y
depends on DT_HAS_TELINK_B91_I2C_ENABLED
help
Enables Telink B91 I2C driver.
``` | /content/code_sandbox/drivers/i2c/Kconfig.b91 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
# I2C EEPROM Target configuration options
config I2C_EEPROM_TARGET
bool "I2C Target EEPROM driver"
help
Enable virtual I2C Target EEPROM driver
config I2C_EEPROM_TARGET_RUNTIME_ADDR
bool "Set I2C Target EEPROM Address at Runtime"
depends on I2C_EEPROM_TARGET
help
Enable changing virtual I2C Tar... | /content/code_sandbox/drivers/i2c/target/Kconfig.eeprom | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_i2c_target_eeprom
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <string.h>
#include <zephyr/drivers/i2c/target/eeprom.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_... | /content/code_sandbox/drivers/i2c/target/eeprom_target.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,967 |
```unknown
# I2C Target configuration options
#
# I2C options
#
menuconfig I2C_TARGET
bool "I2C Target Drivers"
help
Enable I2C Target Driver Configuration
if I2C_TARGET
config I2C_TARGET_INIT_PRIORITY
int "Init priority"
default 60
help
I2C Target device driver initialization priority.
config I2C_TARGE... | /content/code_sandbox/drivers/i2c/target/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 138 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_i2c_twim
/** @file
* @brief I2C bus (TWIM) driver for Atmel SAM4L MCU family.
*
* I2C Master Mode with 7/10 bit addressing is currently supported.
* Very long transfers are allowed using NCMDR register. DMA is not
* yet supported.
*/
#include <errno.h>
#include <z... | /content/code_sandbox/drivers/i2c/i2c_sam4l_twim.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,321 |
```c
/*
*
*/
#define DT_DRV_COMPAT linaro_ivshmem_ipm
#include <stdint.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/drivers/virtualization/ivshmem.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ipm_ivshmem, CONFIG_IPM_LOG_LEVEL);
K_THREAD_STACK_DEFINE(i... | /content/code_sandbox/drivers/ipm/ipm_ivshmem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,032 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_sedi_ipm
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ipm_sedi, CONFIG_IPM_LOG_LEVEL);
#include "ipm_sedi.h"
extern void sedi_ipc_isr(IN sedi_ipc_t i... | /content/code_sandbox/drivers/ipm/ipm_sedi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,324 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_mu
#include <errno.h>
#include <string.h>
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/irq.h>
#include <zephyr/sys/barrier.h>
#ifdef CONFIG_HAS_MCUX
/* MCUX HAL uses a different header file than the i.MX HAL for this IP bloc... | /content/code_sandbox/drivers/ipm/ipm_imx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,877 |
```c
/*
*
*/
#define DT_DRV_COMPAT nordic_nrf_ipc
#include <string.h>
#include <zephyr/drivers/ipm.h>
#include <nrfx_ipc.h>
#include "ipm_nrfx_ipc.h"
#define LOG_LEVEL CONFIG_IPM_LOG_LEVEL
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(ipm_nrfx_ipc);
struct ipm_nrf_data {
ipm_callbac... | /content/code_sandbox/drivers/ipm/ipm_nrfx_ipc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,936 |
```unknown
config IPM_STM32_IPCC
bool "STM32 IPCC controller"
default y
depends on DT_HAS_ST_STM32_IPCC_MAILBOX_ENABLED
select USE_STM32_LL_IPCC
help
Driver for stm32 IPCC mailboxes
config IPM_STM32_IPCC_PROCID
int "STM32 IPCC Processor ID"
default 2
range 1 2
depends on IPM_STM32_IPCC
help
use to def... | /content/code_sandbox/drivers/ipm/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```unknown
# nRF IPM driver channel configuration
menu "IPM Message Channel [$(nrfx_ipc_num)] configuration"
config IPM_MSG_CH_$(nrfx_ipc_num)_ENABLE
bool "IPM Message Channel $(nrfx_ipc_num)"
config IPM_MSG_CH_$(nrfx_ipc_num)_RX
bool "IPM Message RX Channel"
depends on IPM_MSG_CH_$(nrfx_ipc_num)_ENABLE
config ... | /content/code_sandbox/drivers/ipm/Kconfig.nrfx_ipc_channel | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```c
/*
*
*/
#define DT_DRV_COMPAT xlnx_zynqmp_ipi_mailbox
#include "ipm_xlnx_ipi.h"
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/irq.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ipm_xlnx_ipi, CONFIG_IPM_LOG_LEVEL);
#define XLNX_IPI_MAX_BUF_SIZE_BYTES 3... | /content/code_sandbox/drivers/ipm/ipm_xlnx_ipi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,426 |
```c
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/ipm.h>
#include <adsp_memory.h>
#include <adsp_shim.h>
#include <intel_adsp_ipc.h>
#include <mem_window.h>
#include <zephyr/cache.h>
/* Matches SOF_IPC_MSG_MAX_SIZE, though in practice nothing anywhere
* near that big is ever sent. Should maybe consider ma... | /content/code_sandbox/drivers/ipm/ipm_cavs_host.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,683 |
```unknown
config IPM_SEDI
bool "Intel SEDI IPM Driver"
default y if DT_HAS_INTEL_SEDI_IPM_ENABLED
select IPM_CALLBACK_ASYNC
help
This option enables the Intel SEDI IPM(IPC) driver.
This driver is simply a shim driver built upon the SEDI
bare metal IPC driver in the hal-intel module
``` | /content/code_sandbox/drivers/ipm/Kconfig.sedi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```objective-c
/*
*
*/
#ifndef __DRIVERS_IPM_SEDI_H
#define __DRIVERS_IPM_SEDI_H
#ifdef __cplusplus
extern "C" {
#endif
#include "sedi_driver_common.h"
#include "sedi_driver_ipc.h"
#include <zephyr/sys/atomic.h>
/*
* bit 31 indicates whether message is valid, and could generate interrupt
* while set/clear
*/
#de... | /content/code_sandbox/drivers/ipm/ipm_sedi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 251 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IPM_IPM_MHU_H_
#define ZEPHYR_DRIVERS_IPM_IPM_MHU_H_
#include <zephyr/kernel.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/device.h>
#ifdef __cplusplus
extern "C" {
#endif
#define IPM_MHU_MAX_DATA_SIZE 1
#define IPM_MHU_MAX_ID_VAL 0
#define SSE_200_CPU_ID_UNIT... | /content/code_sandbox/drivers/ipm/ipm_mhu.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 642 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_hsem_mailbox
#include <zephyr/device.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include "stm32_hsem.h"
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REG... | /content/code_sandbox/drivers/ipm/ipm_stm32_hsem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,778 |
```unknown
config IPM_CALLBACK_ASYNC
bool "Deliver callbacks asynchronously"
default y if IPM_CAVS_HOST
help
When selected, the driver supports "asynchronous" command
delivery. Commands will stay active after the ISR returns,
until the application expressly "completes" the command
later.
config IPM_CA... | /content/code_sandbox/drivers/ipm/Kconfig.intel_adsp | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 430 |
```c
/*
*
*/
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/ipm.h>
static inline int z_vrfy_ipm_send(const struct device *dev, int wait,
uint32_t id,
const void *data, int size)
{
K_OOPS(K_SYSCALL_DRIVER_IPM(dev, send));
K_OOPS(K_SYSCALL_MEMORY_READ(data, size));
return z_impl_... | /content/code_sandbox/drivers/ipm/ipm_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 335 |
```unknown
# nRF IPM driver configuration
if IPM_NRFX
nrfx_ipc_num = 0
rsource "Kconfig.nrfx_ipc_channel"
nrfx_ipc_num = 1
rsource "Kconfig.nrfx_ipc_channel"
nrfx_ipc_num = 2
rsource "Kconfig.nrfx_ipc_channel"
nrfx_ipc_num = 3
rsource "Kconfig.nrfx_ipc_channel"
nrfx_ipc_num = 4
rsource "Kconfig.nrfx_ipc_channel"
nrf... | /content/code_sandbox/drivers/ipm/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 342 |
```objective-c
/*
*
*/
#include <nrfx_ipc.h>
#define NRFX_IPC_ID_MAX_VALUE IPC_CONF_NUM
/*
* Group IPC signals, events and channels into message channels.
* Message channels are one-way connections between cores.
*
* For example Message Channel 0 is configured as TX on core 0
* and as RX on core 1:
*
* [C0... | /content/code_sandbox/drivers/ipm/ipm_nrfx_ipc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 705 |
```unknown
config IPM_MCUX
bool "MCUX IPM driver"
default y
depends on DT_HAS_NXP_LPC_MAILBOX_ENABLED
select RESET
help
Driver for MCUX mailbox
config IPM_IMX
bool "IMX IPM driver"
default y
depends on DT_HAS_NXP_IMX_MU_ENABLED
help
Driver for NXP i.MX messaging unit
if IPM_IMX
choice
prompt "IMX IP... | /content/code_sandbox/drivers/ipm/Kconfig.imx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 427 |
```unknown
menuconfig IPM
bool "Inter-Processor Mailbox (IPM) drivers"
help
Include interrupt-based inter-processor mailboxes
drivers in system configuration
if IPM
config IPM_MHU
bool "IPM MHU driver"
default y
depends on DT_HAS_ARM_MHU_ENABLED
help
Driver for SSE 200 MHU (Message Handling Unit)
con... | /content/code_sandbox/drivers/ipm/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 458 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_mailbox
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
#include <fsl_mailbox.h>
#include <fsl_clock.h>
#include <soc.h>
#include <zephyr/irq.h>
#include <zephyr/sys/barrier.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/sys/util_macro.... | /content/code_sandbox/drivers/ipm/ipm_mcux.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,508 |
```c
/*
*
*/
#define DT_DRV_COMPAT arm_mhu
#include <errno.h>
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/irq.h>
#include "ipm_mhu.h"
#define IPM_MHU_REGS(dev) \
((volatile struct ipm_mhu_reg_map_t *) \
(((const struct ipm_mhu_device_config * const)(dev)->config)->base))
static enum ipm_mhu_cp... | /content/code_sandbox/drivers/ipm/ipm_mhu.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,573 |
```unknown
if IPM_IVSHMEM
config IPM_IVSHMEM_EVENT_LOOP_STACK_SIZE
int "Stack size in bytes of IVSHMEM IPM Event loop task"
default 8192
help
Adjust the stack size, in bytes of the ivshmem event loop task.
config IPM_IVSHMEM_EVENT_LOOP_PRIO
int "Priority of IVSHMEM IPM Event loop task"
default 2
help
Adj... | /content/code_sandbox/drivers/ipm/Kconfig.ivshmem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 105 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_ipcc_mailbox
#include <zephyr/drivers/clock_control.h>
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/drivers/ipm.h>
#include <soc.h>
#include <stm32_ll_ipcc.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/logging/log.h>... | /content/code_sandbox/drivers/ipm/ipm_stm32_ipcc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,897 |
```objective-c
/*
*
*/
#ifndef _IPM_XLNX_IPI_H_
#define _IPM_XLNX_IPI_H_
/* IPI Channel ID bits */
#define IPI_CH0_BIT 0
#define IPI_CH1_BIT 8
#define IPI_CH2_BIT 9
#define IPI_CH3_BIT 16
#define IPI_CH4_BIT 17
#define IPI_CH5_BIT 18
#define IPI_CH6_BIT 19
#define IPI_CH7_BIT 24
#define IPI_CH8_BIT 25
#def... | /content/code_sandbox/drivers/ipm/ipm_xlnx_ipi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 223 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/i2s.h>
static inline int z_vrfy_i2s_configure(const struct device *dev,
enum i2s_dir dir,
const struct i2s_config *cfg_ptr)
{
struct i2s_config config;
int ret = -EINVAL;
if (K_SY... | /content/code_sandbox/drivers/i2s/i2s_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 849 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_ipm
#include "soc/dport_reg.h"
#include "soc/gpio_periph.h"
#include <stdint.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/drivers/interrupt_controller/intc_esp32.h>
#include <soc.h>
#include <zephyr/sys/atomic.h... | /content/code_sandbox/drivers/ipm/ipm_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,277 |
```unknown
#
#
#
menuconfig I2S_LITEX
bool "Litex I2S driver"
default y
depends on DT_HAS_LITEX_I2S_ENABLED
help
Enable Litex Inter Sound (I2S) bus driver.
if I2S_LITEX
config I2S_LITEX_RX_BLOCK_COUNT
int "RX queue length"
default 500
config I2S_LITEX_TX_BLOCK_COUNT
int "TX queue length"
default 500
conf... | /content/code_sandbox/drivers/i2s/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 151 |
```unknown
# MCUX I2S driver configuration options
menuconfig I2S_MCUX_SAI
bool "NXP MCUX I2S controller driver"
default y
depends on DT_HAS_NXP_MCUX_I2S_ENABLED
select DMA
select PINCTRL
help
Enable I2S support on the I.MX family of processors.
if I2S_MCUX_SAI
config I2S_RX_BLOCK_COUNT
int "RX queue leng... | /content/code_sandbox/drivers/i2s/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 169 |
```unknown
# STM32 I2S driver configuration options
menuconfig I2S_STM32
bool "STM32 MCU I2S controller driver"
default y
depends on DT_HAS_ST_STM32_I2S_ENABLED
select CACHE_MANAGEMENT if CPU_HAS_DCACHE
select DMA
help
Enable I2S support on the STM32 family of processors.
(Tested on the STM32F4 & STM32H7 ... | /content/code_sandbox/drivers/i2s/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/drivers/i2s.h>
int z_impl_i2s_buf_read(const struct device *dev, void *buf, size_t *size)
{
void *mem_block;
int ret;
ret = i2s_read((const struct device *)dev, &mem_block, size);
if (!ret) {
const struct i2s_config *rx_cfg;
rx_... | /content/code_sandbox/drivers/i2s/i2s_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 340 |
```c
/*
*
*/
#include <string.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <soc.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/__assert.h>
#include "i2s_litex.h"
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(i2s_litex);
... | /content/code_sandbox/drivers/i2s/i2s_litex.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,052 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_ssc
/** @file
* @brief I2S bus (SSC) driver for Atmel SAM MCU family.
*
* Limitations:
* - TX and RX path share a common bit clock divider and as a result they cannot
* be configured independently. If RX and TX path are set to different bit
* clock frequencies ... | /content/code_sandbox/drivers/i2s/i2s_sam_ssc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,161 |
```objective-c
/*
* All rights reserved.
*
*/
#ifndef ZEPHYR_DRIVERS_I2S_MCUX_H_
#define ZEPHYR_DRIVERS_I2S_MCUX_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <zephyr/device.h>
#include <fsl_sai.h>
#include <fsl_edma.h>
#define SAI_WORD_SIZE_BITS_MIN 8
#define SAI_WORD_SIZE_BITS_MAX 32
#define SAI_WORD_PE... | /content/code_sandbox/drivers/i2s/i2s_mcux_sai.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 135 |
```c
/*
* All rights reserved.
*
*/
/** @file
* @brief I2S bus (SAI) driver for NXP i.MX RT series.
*/
#include <errno.h>
#include <string.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/i2... | /content/code_sandbox/drivers/i2s/i2s_mcux_sai.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,693 |
```unknown
# Atmel SAM I2S bus driver configuration options
menuconfig I2S_SAM_SSC
bool "Atmel SAM MCU family I2S (SSC) Bus Driver"
default y
depends on DT_HAS_ATMEL_SAM_SSC_ENABLED
select DMA
help
Enable Inter Sound (I2S) bus driver for Atmel SAM MCU family based on
Synchronous Serial Controller (SSC) mod... | /content/code_sandbox/drivers/i2s/Kconfig.sam_ssc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 332 |
```unknown
menuconfig I2S_NRFX
bool "nRF I2S nrfx driver"
default y
depends on DT_HAS_NORDIC_NRF_I2S_ENABLED
select NRFX_I2S0 if HAS_HW_NRF_I2S0
select NRFX_I2S20 if HAS_HW_NRF_I2S20
select PINCTRL
help
Enable support for nrfx I2S driver for nRF MCU series.
if I2S_NRFX
config I2S_NRFX_RX_BLOCK_COUNT
int "... | /content/code_sandbox/drivers/i2s/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_i2s
#include <string.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/drivers/dma/dma_stm32.h>
#include <soc.h>
#include <stm32_ll_rcc.h>
#include <stm32_ll_spi.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <z... | /content/code_sandbox/drivers/i2s/i2s_ll_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,379 |
```unknown
# I2S (Inter-IC Sound) driver configuration options
#
# I2S Drivers
#
menuconfig I2S
bool "Inter-IC Sound (I2S) bus drivers"
help
Enable support for the I2S (Inter-IC Sound) hardware bus.
if I2S
config I2S_INIT_PRIORITY
int "Init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
Device driver... | /content/code_sandbox/drivers/i2s/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 138 |
```unknown
config I2S_MCUX_FLEXCOMM
bool "MCUX FLEXCOMM I2S driver"
default y
depends on DT_HAS_NXP_LPC_I2S_ENABLED
select DMA
help
Enable support for mcux flexcomm i2s driver.
if I2S_MCUX_FLEXCOMM
config I2S_MCUX_FLEXCOMM_RX_BLOCK_COUNT
int "RX queue length"
default 4
config I2S_MCUX_FLEXCOMM_TX_BLOCK_CO... | /content/code_sandbox/drivers/i2s/Kconfig.mcux_flexcomm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```objective-c
/*
*
*/
#ifndef _STM32_I2S_H_
#define _STM32_I2S_H_
struct queue_item {
void *mem_block;
size_t size;
};
/* Minimal ring buffer implementation */
struct ring_buf {
struct queue_item *buf;
uint16_t len;
uint16_t head;
uint16_t tail;
};
/* Device constant configuration parameters */
struct i2s_... | /content/code_sandbox/drivers/i2s/i2s_ll_stm32.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 411 |
```c
/*
*
*/
#include <stdlib.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <nrfx_i2s.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(i2s_nrfx, CONFIG_I2S_LOG_LEVEL);
struct... | /content/code_sandbox/drivers/i2s/i2s_nrfx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,033 |
```objective-c
/*
*
*/
#ifndef _I2S_LITEI2S__H
#define _I2S_LITEI2S__H
#include <zephyr/device.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
/* i2s configuration mask*/
#define I2S_CONF_FORMAT_OFFSET 0
#define I2S_CONF_SAMPLE_WIDTH_OFFSET 2
#define I2S_CONF_LRCK_FREQ_... | /content/code_sandbox/drivers/i2s/i2s_litex.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 893 |
```unknown
# Kconfig Andes mbox configuration options
#
#
#
config MBOX_ANDES_PLIC_SW
bool "MBOX Andes PLIC-SW driver"
default y
depends on DT_HAS_ANDESTECH_PLIC_SW_ENABLED
help
Enable driver for the Andes IPM mailbox controller.
Says n if not sure.
``` | /content/code_sandbox/drivers/mbox/Kconfig.andes | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
config MBOX_NRF_VEVIF_EVENT_RX
bool "nRF VEVIF event RX driver"
depends on DT_HAS_NORDIC_NRF_VEVIF_EVENT_RX_ENABLED
default y
help
Mailbox driver for receiving events triggered by VPR
config MBOX_NRF_VEVIF_EVENT_TX
bool "nRF VEVIF event TX driver"
depends on DT_HAS_NORDIC_NRF_VEVIF_EVENT_TX_ENABLE... | /content/code_sandbox/drivers/mbox/Kconfig.nrf_vevif_event | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_bellboard_tx
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <haly/nrfy_bellboard.h>
struct mbox_bellboard_tx_conf {
NRF_BELLBOARD_Type *bellboard;
};
static int bellboard_tx_send(const struct device *dev, uint32_t id, const struct mbox_msg *ms... | /content/code_sandbox/drivers/mbox/mbox_nrf_bellboard_tx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 382 |
```c
/*
*
*
* Wrapper of the i.MX Message Unit driver into Zephyr's MBOX model.
*/
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util_macro.h>
#include <fsl_mu.h>
#define LOG_LEVEL CONFIG_MBOX_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGIS... | /content/code_sandbox/drivers/mbox/mbox_nxp_imx_mu.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,510 |
```unknown
config MBOX_NRF_BELLBOARD_RX
bool "nRF BELLBOARD RX driver"
depends on DT_HAS_NORDIC_NRF_BELLBOARD_RX_ENABLED
default y
help
Mailbox driver for RX Nordic nRF BELLBOARD
config MBOX_NRF_BELLBOARD_TX
bool "nRF BELLBOARD TX driver"
depends on DT_HAS_NORDIC_NRF_BELLBOARD_TX_ENABLED
default y
help
... | /content/code_sandbox/drivers/mbox/Kconfig.nrf_bellboard | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 110 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_vevif_event_tx
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <hal/nrf_vpr.h>
#include <hal/nrf_vpr_csr.h>
#include <hal/nrf_vpr_csr_vevif.h>
#if defined(CONFIG_SOC_NRF54L15_ENGA_CPUFLPR)
#define EVENTS_IDX_MAX 17U
#else
#define EVENTS_IDX_MAX N... | /content/code_sandbox/drivers/mbox/mbox_nrf_vevif_event_tx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 450 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_i2s
#include <string.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/i2s.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_i2s.h>
#include <fsl_dma.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/pinctrl.h>
LOG_MOD... | /content/code_sandbox/drivers/i2s/i2s_mcux_flexcomm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,528 |
```unknown
config MBOX_NXP_S32_MRU
bool "NXP S32 Message Receive Unit (MRU) driver"
default y
depends on DT_HAS_NXP_S32_MRU_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
Driver for NXP S32 Message Receive Unit (MRU).
``` | /content/code_sandbox/drivers/mbox/Kconfig.nxp_s32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
config MBOX_NXP_MAILBOX
bool "NXP Mailbox driver for MBOX"
default y
depends on DT_HAS_NXP_MBOX_MAILBOX_ENABLED
help
Driver for NXP Mailbox Unit around MBOX.
``` | /content/code_sandbox/drivers/mbox/Kconfig.nxp_mailbox | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```unknown
config MBOX_ESP32
bool "ESP32 Soft mailbox driver"
default y
depends on DT_HAS_ESPRESSIF_MBOX_ESP32_ENABLED
help
Driver for ESP32 mailbox based on its doorbell mechanism.
``` | /content/code_sandbox/drivers/mbox/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/irq.h>
#include <zephyr/logging/log.h>
#include "stm32_hsem.h"
LOG_MODULE_REGISTER(mbox_stm32_hsem_ipc, CONFIG_MBOX_LOG_LE... | /content/code_sandbox/drivers/mbox/mbox_stm32_hsem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,748 |
```c
/*
*
*/
#include <zephyr/drivers/mbox.h>
#include <nrfx_ipc.h>
#define LOG_LEVEL CONFIG_MBOX_LOG_LEVEL
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(mbox_nrfx_ipc);
#define DT_DRV_COMPAT nordic_mbox_nrf_ipc
struct mbox_nrf_data {
mbox_callback_t cb[IPC_CONF_NUM];
void *user_da... | /content/code_sandbox/drivers/mbox/mbox_nrfx_ipc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,276 |
```c
/*
*
*
* Wrapper of NXP Mailbox driver for Zephyr's MBOX model.
*/
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util_macro.h>
#include <fsl_mailbox.h>
#define LOG_LEVEL CONFIG_MBOX_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nx... | /content/code_sandbox/drivers/mbox/mbox_nxp_mailbox.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,698 |
```c
/*
*
*/
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/mbox.h>
static inline int z_vrfy_mbox_send(const struct device *dev,
mbox_channel_id_t channel_id,
const struct mbox_msg *msg)
{
K_OOPS(K_SYSCALL_DRIVER_MBOX(dev, send));
K_OOPS(K_SYSCALL_MEMORY_READ(msg, sizeof(struc... | /content/code_sandbox/drivers/mbox/mbox_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 328 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_vevif_task_tx
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <haly/nrfy_vpr.h>
#if defined(CONFIG_SOC_NRF54L15_ENGA_CPUAPP)
#define TASKS_IDX_MAX 17U
#else
#define TASKS_IDX_MAX NRF_VPR_TASKS_TRIGGER_MAX
#endif
struct mbox_vevif_task_tx_conf {
... | /content/code_sandbox/drivers/mbox/mbox_nrf_vevif_task_tx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 589 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_mbox_esp32
#include "soc/dport_reg.h"
#include "soc/gpio_periph.h"
#include <stdint.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/drivers/interrupt_controller/intc_esp32.h>
#include <soc.h>
#include <zephyr/sys/atomic... | /content/code_sandbox/drivers/mbox/mbox_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,115 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_vevif_event_rx
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <haly/nrfy_vpr.h>
#if defined(CONFIG_SOC_NRF54L15_ENGA_CPUAPP)
#define EVENTS_IDX_MIN 11U
#define EVENTS_IDX_MAX 17U
#else
#define EVENTS_IDX_MIN NRF_VPR_EVENTS_TRIGGERED_MIN
#define ... | /content/code_sandbox/drivers/mbox/mbox_nrf_vevif_event_rx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,240 |
```unknown
config MBOX_NRF_VEVIF_TASK_RX
bool "nRF VEVIF task RX driver"
depends on DT_HAS_NORDIC_NRF_VEVIF_TASK_RX_ENABLED
default y
help
Mailbox driver for receiving VEVIF tasks on VPR as CLIC interrupts
config MBOX_NRF_VEVIF_TASK_TX
bool "nRF VEVIF task TX driver"
depends on DT_HAS_NORDIC_NRF_VEVIF_TASK_T... | /content/code_sandbox/drivers/mbox/Kconfig.nrf_vevif_task | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_vevif_task_rx
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <hal/nrf_vpr.h>
#include <hal/nrf_vpr_csr.h>
#include <hal/nrf_vpr_csr_vevif.h>
#if defined(CONFIG_SOC_NRF54L15_ENGA_CPUFLPR)
#define TASKS_IDX_MIN 11U
#define TASKS_IDX_MAX 17U
#else
... | /content/code_sandbox/drivers/mbox/mbox_nrf_vevif_task_rx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,014 |
```unknown
config MBOX_NXP_IMX_MU
bool "NXP i.MX Message Unit (MU) driver"
default y
depends on DT_HAS_NXP_MBOX_IMX_MU_ENABLED
help
Driver for NXP i.MX Message Unit.
``` | /content/code_sandbox/drivers/mbox/Kconfig.nxp_imx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```unknown
config MBOX_STM32_HSEM
bool "MBOX STM32 HSEM driver"
depends on DT_HAS_ST_MBOX_STM32_HSEM_ENABLED
help
MBOX Driver for STM32 hardware semaphore
``` | /content/code_sandbox/drivers/mbox/Kconfig.stm32_hsem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```unknown
config MBOX_NRFX_IPC
bool "MBOX NRF IPC driver"
depends on DT_HAS_NORDIC_MBOX_NRF_IPC_ENABLED
default y
select NRFX_IPC
help
Driver for Nordic nRF messaging unit, based
on nRF IPC peripheral HW.
``` | /content/code_sandbox/drivers/mbox/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
menuconfig MBOX
bool "Multi-Channel Inter-Processor Mailbox (MBOX) drivers"
help
Include multi-channel interrupt-based inter-processor mailboxes
drivers in system configuration
if MBOX
# Include these first so that any properties (e.g. defaults) below can be
# overridden (by defining symbols in mu... | /content/code_sandbox/drivers/mbox/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 249 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_nrf_bellboard_rx
#include <zephyr/devicetree.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/__assert.h>
#include <hal/nrf_bellboard.h>
#define BELLBOARD_NUM_IRQS 4U
BUILD_ASSERT(DT_NUM_IRQS(DT_DRV_INST(0)) <= BELLBOARD_NUM_IRQS, "# int... | /content/code_sandbox/drivers/mbox/mbox_nrf_bellboard_rx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,487 |
```c
/*
*
*/
#include <zephyr/drivers/mbox.h>
#define LOG_LEVEL CONFIG_MBOX_LOG_LEVEL
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include <zephyr/spinlock.h>
LOG_MODULE_REGISTER(mbox_andes_plic_sw);
#define DT_DRV_COMPAT andestech_plic_sw
#define IRQ_REG(n) (n >> 5)
#define PLIC_BASE(dev) \
((const ... | /content/code_sandbox/drivers/mbox/mbox_andes_plic_sw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,475 |
```unknown
# Atmel SAM GPIO configuration options
config GPIO_SAM
bool "Atmel SAM GPIO (PORT) driver"
default y
depends on DT_HAS_ATMEL_SAM_GPIO_ENABLED
help
Enable support for the Atmel SAM 'PORT' GPIO controllers.
config GPIO_SAM4L
bool "Atmel SAM4L GPIO (PORT) driver"
default y
depends on DT_HAS_ATMEL_S... | /content/code_sandbox/drivers/gpio/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 113 |
```unknown
# Organisation (CSIRO) ABN 41 687 119 230.
# Hidden option for turning on the dummy driver for vnd,gpio devices
# used in testing.
config GPIO_TEST
def_bool DT_HAS_VND_GPIO_ENABLED
depends on DT_HAS_VND_GPIO_ENABLED
``` | /content/code_sandbox/drivers/gpio/Kconfig.test | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_nct38xx_gpio
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_nct38xx.h>
#include <zephyr/drivers/mfd/nct38xx.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util_macro.h>
#include "gpio_nct38xx.h"
#include <zephyr/logging... | /content/code_sandbox/drivers/gpio/gpio_nct38xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,065 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_s32_mru
#include <zephyr/drivers/mbox.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util_macro.h>
#include <Mru_Ip.h>
#define LOG_LEVEL CONFIG_MBOX_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_s32_mru);
#define MRU_MAX_INT_GROUPS 2
#define MRU_MAX_CHAN... | /content/code_sandbox/drivers/mbox/mbox_nxp_s32_mru.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,038 |
```unknown
menuconfig GPIO_FXL6408
bool "FXL6408 I2C-based GPIO chip"
default y
depends on DT_HAS_FCS_FXL6408_ENABLED
depends on I2C
help
Enable driver for FXL6408 I2C-based GPIO chip.
if GPIO_FXL6408
config GPIO_FXL6408_INIT_PRIORITY
int "Init priority"
default 80
help
Device driver initialization pri... | /content/code_sandbox/drivers/gpio/Kconfig.fxl6408 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 130 |
```c
/*
*
*/
#define DT_DRV_COMPAT x_powers_axp192_gpio
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util_macro.h>
#include <zephyr/toolchain.h>
#include <zephyr/logging/log.h>
#includ... | /content/code_sandbox/drivers/gpio/gpio_axp192.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,277 |
```unknown
# MCUX GPIO configuration options
config GPIO_MCUX
bool "MCUX GPIO driver"
default y
depends on DT_HAS_NXP_KINETIS_GPIO_ENABLED
help
Enable the MCUX pinmux driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```c
/*
*
*/
#define DT_DRV_COMPAT xlnx_xps_gpio_1_00_a
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/irq.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
/* AXI GPIO v2 register offsets (See Xilinx PG144 for details) */
#define GPIO_DATA_OFFSET 0x0000
... | /content/code_sandbox/drivers/gpio/gpio_xlnx_axi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,010 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_GPIO_RT1718S_H_
#define ZEPHYR_DRIVERS_GPIO_RT1718S_H_
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#define RT1718S_GPIO_NUM 3
#define RT1718S_REG_ALERT 0x10
#define RT1718S_REG_ALERT_VE... | /content/code_sandbox/drivers/gpio/gpio_rt1718s.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,503 |
```unknown
# MCP23S17 GPIO configuration options
config GPIO_MCP23XXX
bool
help
Enable support for the Microchip 23xxx I2C/SPI IO
expanders.
menuconfig GPIO_MCP230XX
bool "MCP230XX I2C-based GPIO chip"
default y
depends on DT_HAS_MICROCHIP_MCP23008_ENABLED || \
DT_HAS_MICROCHIP_MCP23009_ENABLE... | /content/code_sandbox/drivers/gpio/Kconfig.mcp23xxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 370 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_GPIO_GPIO_GRGPIO_H_
#define ZEPHYR_DRIVERS_GPIO_GPIO_GRGPIO_H_
struct grgpio_regs {
uint32_t data; /* 0x00 I/O port data register */
uint32_t output; /* 0x04 I/O port output register */
uint32_t dir; /* 0x08 I/O port direction register */
uint32_t... | /content/code_sandbox/drivers/gpio/gpio_grgpio.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 730 |
```unknown
# GPIO emulation using SDL keyboard events
#
config GPIO_EMUL_SDL
bool "SDL GPIO emulation"
default y
depends on DT_HAS_ZEPHYR_GPIO_EMUL_SDL_ENABLED
depends on GPIO_EMUL
depends on HAS_SDL
help
Enable GPIO emulation using SDL keyboard events.
``` | /content/code_sandbox/drivers/gpio/Kconfig.emul_sdl | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
# Ambiq SDK GPIO
#
#
#
config GPIO_AMBIQ
bool "AMBIQ GPIO driver"
default y
depends on DT_HAS_AMBIQ_GPIO_ENABLED
select AMBIQ_HAL
help
Enable driver for Ambiq gpio.
``` | /content/code_sandbox/drivers/gpio/Kconfig.ambiq | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```c
/*
*
*/
#define DT_DRV_COMPAT ene_kb1200_gpio
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/sys/util_macro.h>
#include <reg/gpio.h>
#include <reg/gptd.h>
struct gpio_kb1200_data {
/* gpio_driver_data needs to be first */
struct gpio_... | /content/code_sandbox/drivers/gpio/gpio_ene_kb1200.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,034 |
```unknown
# TLE9104 GPIO configuration options
menuconfig GPIO_TLE9104
bool "TLE9104 SPI-based powertrain switch"
default y
depends on DT_HAS_INFINEON_TLE9104_GPIO_ENABLED
select MFD
help
Enable GPIO driver for TLE9104 SPI-based powertrain switch.
config GPIO_TLE9104_INIT_PRIORITY
int "Init priority"
defa... | /content/code_sandbox/drivers/gpio/Kconfig.tle9104 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```c
/*
*
*/
#define DT_DRV_COMPAT snps_designware_gpio
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dt-bindings/gpio/snps-designware-gpio.h>
#include "gpio_dw.h"
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/sys_i... | /content/code_sandbox/drivers/gpio/gpio_dw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,326 |
```unknown
# LPC11U6x GPIO configuration options
config GPIO_LPC11U6X
bool "LPC11U6x GPIO driver"
default y
depends on DT_HAS_NXP_LPC11U6X_GPIO_ENABLED
depends on CLOCK_CONTROL_LPC11U6X
help
Enable GPIO driver for LPC11U6x MCUs.
``` | /content/code_sandbox/drivers/gpio/Kconfig.lpc11u6x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_tle9104_gpio
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/mfd/tle9104.h>
#include <zephyr/logging/log.h>
LOG_MODULE_... | /content/code_sandbox/drivers/gpio/gpio_tle9104.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,573 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.