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 raspberrypi_pico_spi_pio
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_pico_pio);
#include <zephyr/sys/util.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/spi.h>
#include <zephy... | /content/code_sandbox/drivers/spi/spi_rpi_pico_pio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,553 |
```unknown
# Gecko SPI configuration option
config SPI_GECKO
bool "Gecko SPI controller driver"
default y
depends on DT_HAS_SILABS_GECKO_SPI_USART_ENABLED
depends on GPIO
select SOC_GECKO_USART
help
Enable the SPI peripherals on Gecko
``` | /content/code_sandbox/drivers/spi/Kconfig.gecko | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```c
/*
*
*/
/*
* This is not a real SPI driver. It is used to instantiate struct
* devices for the "vnd,spi" devicetree compatible used in test code.
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#define DT_DRV_COMPAT vnd_spi
static int vnd_spi_transceive(const struct device *dev,
con... | /content/code_sandbox/drivers/spi/spi_test.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 327 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SPI_SPI_LL_STM32_H_
#define ZEPHYR_DRIVERS_SPI_SPI_LL_STM32_H_
#include "spi_context.h"
typedef void (*irq_config_func_t)(const struct device *port);
/* This symbol takes the value 1 if one of the device instances */
/* is configured in dts with a domain clock */
#if ... | /content/code_sandbox/drivers/spi/spi_ll_stm32.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,802 |
```unknown
# TI CC13xx / CC26xx SPI configuration options
config SPI_CC13XX_CC26XX
bool "TI SimpleLink CC13xx / CC26xx SPI driver"
default y
depends on DT_HAS_TI_CC13XX_CC26XX_SPI_ENABLED
help
Enable support for the TI SimpleLink CC13xx / CC26xx SPI peripheral
``` | /content/code_sandbox/drivers/spi/Kconfig.cc13xx_cc26xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_spi_bitbang
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_bitbang);
#include <zephyr/sys/sys_io.h>
#include <zephyr/drivers/spi.h>
#include "spi_context.h"
struct spi_bitbang_data {
struct spi_context ctx;
int bits;
int ... | /content/code_sandbox/drivers/spi/spi_bitbang.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,330 |
```unknown
# STM32 SPI driver configuration options
menuconfig SPI_STM32
bool "STM32 MCU SPI controller driver"
default y
depends on DT_HAS_ST_STM32_SPI_ENABLED
select USE_STM32_LL_SPI
help
Enable SPI support on the STM32 family of processors.
if SPI_STM32
config SPI_STM32_INTERRUPT
bool "STM32 MCU SPI Int... | /content/code_sandbox/drivers/spi/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 319 |
```c
/*
*
*/
#define DT_DRV_COMPAT ambiq_spi
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_ambiq);
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#include <zephyr/... | /content/code_sandbox/drivers/spi/spi_ambiq.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,076 |
```objective-c
/* spi_dw.h - Designware SPI driver private definitions */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SPI_SPI_DW_H_
#define ZEPHYR_DRIVERS_SPI_SPI_DW_H_
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include "spi_context.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void ... | /content/code_sandbox/drivers/spi/spi_dw.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,012 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_max32_spi
#include <string.h>
#include <errno.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control/adi_max32_clock_control.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include <wrap_max32_spi.h>
LOG_MODU... | /content/code_sandbox/drivers/spi/spi_max32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,467 |
```unknown
config NXP_S32_SPI
bool "NXP S32 SPI driver"
default y
depends on DT_HAS_NXP_S32_SPI_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
Enable support for NXP S32 SPI driver.
if NXP_S32_SPI
config NXP_S32_SPI_INTERRUPT
bool "NXP S32 SPI Interrupt Support"
default y
help
En... | /content/code_sandbox/drivers/spi/Kconfig.nxp_s32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 105 |
```unknown
config SPI_MAX32
bool "MAX32 MCU SPI controller driver"
default y
depends on DT_HAS_ADI_MAX32_SPI_ENABLED
select PINCTRL
help
Enable SPI support on the MAX32 family of processors.
if SPI_MAX32
config SPI_MAX32_INTERRUPT
bool "MAX32 MCU SPI Interrupt Support"
help
Enable interrupt support for ... | /content/code_sandbox/drivers/spi/Kconfig.max32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
config SPI_MCUX_ECSPI
bool "MCUX ECSPI driver"
default y
depends on DT_HAS_NXP_IMX_ECSPI_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable support for NXP's mcux ecspi driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.mcux_ecspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_xmc4xxx);
#include "spi_context.h"
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/spi.h>
#include <xmc_spi.h>
#inclu... | /content/code_sandbox/drivers/spi/spi_xmc4xxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,799 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_qmspi_ldma
#include <errno.h>
#include <soc.h>
#include <zephyr/device.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/interrupt_controller/intc_m... | /content/code_sandbox/drivers/spi/spi_xec_qmspi_ldma.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,770 |
```unknown
# ESP32 SPI configuration
menuconfig ESP32_SPIM
bool "ESP32 SPI Master driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_SPI_ENABLED
help
Enables support for ESP32 SPI Master driver.
if ESP32_SPIM
config SPI_ESP32_INTERRUPT
bool "ESP32 SPI interrupt mode"
help
Enables interrupt support for ... | /content/code_sandbox/drivers/spi/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```c
/*
*
*/
#include <zephyr/drivers/spi.h>
#include <zephyr/internal/syscall_handler.h>
#include <string.h>
/* This assumes that bufs and buf_copy are copies from the values passed
* as syscall arguments.
*/
static struct spi_buf_set *copy_and_check(struct spi_buf_set *bufs,
struct spi_buf *buf_copy,
... | /content/code_sandbox/drivers/spi/spi_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 990 |
```c
/*
*
*/
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/shell/shell.h>
#include <zephyr/sys/util.h>
#define TXRX_ARGV_BYTES (1)
#define CONF_ARGV_DEV (1)
#define CONF_ARGV_FREQUENCY (2)
#define CONF_ARGV_SETTINGS (3)
/... | /content/code_sandbox/drivers/spi/spi_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,150 |
```unknown
# Microchip Polarfire SOC QSPI
config SPI_MCHP_QSPI
bool "Microchip Polarfire SOC QSPI driver"
default y
depends on DT_HAS_MICROCHIP_MPFS_QSPI_ENABLED
help
Enable support for the Polarfire SOC QSPI driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.mchp_mss_qspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```unknown
# Kconfig Andes ATCSPI200 SPI configuration options
#
#
#
config SPI_ANDES_ATCSPI200
bool "Andes ATCSPI200 SPI driver"
default y
depends on DT_HAS_ANDESTECH_ATCSPI200_ENABLED
help
Enable driver for Andes ATCSPI200 SPI controller
if SPI_ANDES_ATCSPI200
config ANDES_SPI_DMA_MODE
bool "Using DMA mode... | /content/code_sandbox/drivers/spi/Kconfig.andes_atcspi200 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 112 |
```unknown
# NUMAKER SPI Driver configuration options
config SPI_NUMAKER
bool "Nuvoton NuMaker MCU SPI driver"
default y
select HAS_NUMAKER_SPI
depends on DT_HAS_NUVOTON_NUMAKER_SPI_ENABLED
help
This option enables the SPI driver for Nuvoton NuMaker family of
processors.
Say y if you wish to enable NuMa... | /content/code_sandbox/drivers/spi/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
# SiFive SPI Driver configuration options
config SPI_SIFIVE
bool "SiFive SPI controller driver"
default y
depends on DT_HAS_SIFIVE_SPI0_ENABLED
help
Enable the SPI peripherals on SiFive Freedom processors
``` | /content/code_sandbox/drivers/spi/Kconfig.sifive | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_opentitan);
#include "spi_context.h"
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <soc.h>
#include <stdbool.h>
/* Register offsets within the SPI host register space. */
#define SPI_HOST_INTR_STATE_REG_OFFSET 0x00
#define ... | /content/code_sandbox/drivers/spi/spi_opentitan.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,584 |
```c
/*
*
*/
#include <zephyr/drivers/spi.h>
const struct rtio_iodev_api spi_iodev_api = {
.submit = spi_iodev_submit,
};
``` | /content/code_sandbox/drivers/spi/spi_rtio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
# RV32M1 SPI
config SPI_RV32M1_LPSPI
bool "RV32M1 LPSPI driver"
default y
depends on DT_HAS_OPENISA_RV32M1_LPSPI_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable the RV32M1 LPSPI driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.rv32m1_lpspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_spi
#include <errno.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_spi.h>
#include <zephyr/logging/log.h>
#ifdef CONFIG_SPI_MCUX_FLEXCOMM_DMA
#include <zephyr/drivers/dma.h>
#endif
#include <zephyr/drivers/pinctrl.h>
#include <ze... | /content/code_sandbox/drivers/spi/spi_mcux_flexcomm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,574 |
```unknown
#
#
#
config SPI_SEDI
bool "Intel SEDI SPI driver"
default y
depends on DT_HAS_INTEL_SEDI_SPI_ENABLED
help
This option enables the Intel SEDI SPI driver.
This driver is simply a shim driver built upon the SEDI
bare metal SPI driver in the hal-intel module
``` | /content/code_sandbox/drivers/spi/Kconfig.sedi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SPI_NRFX_COMMON_H_
#define ZEPHYR_DRIVERS_SPI_NRFX_COMMON_H_
#include <stdint.h>
#include <nrfx_gpiote.h>
#define WAKE_PIN_NOT_USED UINT32_MAX
#define WAKE_GPIOTE_INSTANCE(node_id) \
COND_CODE_1(DT_NODE_HAS_PROP(node_id, wake_gpios), \
(NRFX_GPIOTE_INSTANCE( ... | /content/code_sandbox/drivers/spi/spi_nrfx_common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 192 |
```unknown
config SPI_PL022
default y
depends on DT_HAS_ARM_PL022_ENABLED
bool "ARM PL022 SPI driver"
if SPI_PL022
config SPI_PL022_INTERRUPT
bool "PL022 interrupt mode"
help
Enables interrupt support for PL022 SPI driver.
config SPI_PL022_DMA
bool "PL022 DMA mode"
select DMA
help
Enables DMA support ... | /content/code_sandbox/drivers/spi/Kconfig.pl022 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```unknown
# Microchip XEC QMSPI
config SPI_XEC_QMSPI
bool "Microchip MEC15xx XEC QMSPI driver"
default y
depends on DT_HAS_MICROCHIP_XEC_QMSPI_ENABLED
select DMA if SPI_ASYNC
help
Enable support for Microchip MEC15xx XEC QMSPI driver.
config SPI_XEC_QMSPI_LDMA
bool "Microchip XEC MEC17xx QMSPI LDMA driver"... | /content/code_sandbox/drivers/spi/Kconfig.xec_qmspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```c
/*
*
*
* Some Ambiq Apollox Blue SOC (e.g. Apollo3 Blue) uses internal designed BLEIF module which is
* different from the general IOM module for SPI transceiver. The called HAL API will also be
* independent. This driver is implemented for the BLEIF module usage scenarios.
*/
#define DT_DRV_COMPAT ambiq_sp... | /content/code_sandbox/drivers/spi/spi_ambiq_bleif.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,583 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_ll_stm32);
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <stm32_ll_spi.h>
#include <errno.h>
#include <zephyr/drivers/spi.h>
#include <z... | /content/code_sandbox/drivers/spi/spi_ll_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,615 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_spi
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <hal/spi_hal.h>
#include <esp_attr.h>
#include <esp_clk_tree.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(esp32_spi, CONFIG_SPI_LOG_LEVEL);
#include <soc.h>
#include <esp_m... | /content/code_sandbox/drivers/spi/spi_esp32_spim.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,469 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_sam);
#include "spi_context.h"
#include <errno.h>
#include <zephyr/spinlock.h>
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/dma.h>
#... | /content/code_sandbox/drivers/spi/spi_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,912 |
```unknown
# Xilinx SPI
config SPI_XLNX_AXI_QUADSPI
bool "Xilinx AXI Quad SPI driver"
default y
depends on DT_HAS_XLNX_XPS_SPI_2_00_A_ENABLED
select EVENTS
help
Enable Xilinx AXI Quad SPI v3.2 driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.xlnx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```objective-c
/*
*
*/
#include "spi_context.h"
#define SPI_OC_SIMPLE_DATA(dev) \
((struct spi_oc_simple_data *) ((dev)->data))
#define SPI_OC_SIMPLE_REG(info, offset) \
((mem_addr_t) (info->base + \
(offset * CONFIG_SPI_OC_SIMPLE_BUS_WIDTH / 8)))
#define SPI_OC_SIMPLE_SPCR(dev) SPI_OC_SIMPLE_REG(dev, ... | /content/code_sandbox/drivers/spi/spi_oc_simple.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 229 |
```c
/*
*
*
* This driver creates fake SPI buses which can contain emulated devices,
* implemented by a separate emulation driver. The API between this driver and
* its emulators is defined by struct spi_emul_driver_api.
*/
#define DT_DRV_COMPAT zephyr_spi_emul_controller
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
... | /content/code_sandbox/drivers/spi/spi_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,081 |
```unknown
menuconfig SPI_PW
bool "Penwell SPI driver"
default y
depends on DT_HAS_INTEL_PENWELL_SPI_ENABLED
help
Enable the Penwell SPI driver.
if SPI_PW
config SPI_PW_INTERRUPT
bool "Penwell SPI Interrupt mode Support"
help
Enable Interrupt support for the SPI Driver.
endif # SPI_PW
``` | /content/code_sandbox/drivers/spi/Kconfig.pw | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mpfs_qspi
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(mss_qspi, CONFIG_SPI_LOG_LEVEL);
#include "spi_context.h"
/*MSS ... | /content/code_sandbox/drivers/spi/spi_mchp_mss_qspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,506 |
```c
/*
*
*/
#define DT_DRV_COMPAT snps_designware_spi
/* spi_dw.c - Designware SPI driver implementation */
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_dw);
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#... | /content/code_sandbox/drivers/spi/spi_dw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,229 |
```objective-c
/*
*
*/
/**
* @file
* @brief Private API for SPI drivers
*/
#ifndef ZEPHYR_DRIVERS_SPI_SPI_CONTEXT_H_
#define ZEPHYR_DRIVERS_SPI_SPI_CONTEXT_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern "C" {
#endif
enum spi_ctx_runtime... | /content/code_sandbox/drivers/spi/spi_context.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,049 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_spi_litespi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_litex_litespi);
#include <zephyr/sys/byteorder.h>
#include "spi_litex_common.h"
#define SPIFLASH_CORE_MASTER_PHYCONFIG_LEN_OFFSET 0x0
#define SPIFLASH_CORE_MASTER_P... | /content/code_sandbox/drivers/spi/spi_litex_litespi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,126 |
```unknown
config SPI_SMARTBOND
bool "Renesas SmartBond(tm) SPI driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_SPI_ENABLED
help
Enables SPI driver for Renesas SmartBond(tm) DA1469x series MCU.
config SPI_SMARTBOND_DMA
bool "Renesas Smartbond(tm) SPI with DMA acceleration"
default y
depends on SPI_SMA... | /content/code_sandbox/drivers/spi/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 124 |
```unknown
# Microchip Polarfire SOC SPI
config SPI_MCHP_MSS
bool "Microchip Polarfire SOC SPI driver"
default y
depends on DT_HAS_MICROCHIP_MPFS_SPI_ENABLED
help
Enable support for the Polarfire SOC SPI driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.mchp_mss | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_spi_usart
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_gecko);
#include "spi_context.h"
#include <zephyr/sys/sys_io.h>
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <soc.h>
#include "em_cmu.h"
#... | /content/code_sandbox/drivers/spi/spi_gecko.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,526 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam0_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_sam0);
#include "spi_context.h"
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/pinc... | /content/code_sandbox/drivers/spi/spi_sam0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,480 |
```c
/*
*
*/
#define DT_DRV_COMPAT arm_pl022
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/util.h>
#include <zephyr/spinlock.h>
#include <soc.h>
#if defined(CONFIG_PINCTRL)
#include <zeph... | /content/code_sandbox/drivers/spi/spi_pl022.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,231 |
```unknown
config SPI_GD32
bool "Gigadevice GD32 SPI driver"
default y
depends on DT_HAS_GD_GD32_SPI_ENABLED
help
Enables Gigadevice GD32 SPI driver.
if SPI_GD32
config SPI_GD32_INTERRUPT
bool "GD32 MCU SPI Interrupt Support"
default y if SPI_ASYNC
default y if SPI_GD32_DMA
help
Enable the interrupt dr... | /content/code_sandbox/drivers/spi/Kconfig.gd32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 150 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_cc13xx_cc26xx);
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#include <driverlib... | /content/code_sandbox/drivers/spi/spi_cc13xx_cc26xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,577 |
```c
/*
*
*/
#define DT_DRV_COMPAT cypress_psoc6_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_psoc6);
#include <errno.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/spi.h>
#include <soc.h>
#include "spi_context.h"
#include "cy_syslib.h"
#incl... | /content/code_sandbox/drivers/spi/spi_psoc6.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,502 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_ecspi
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_mcux_ecspi, CONFIG_SPI_LOG_LEVEL);
#include <zephyr/device.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/spi.h>
#include <fsl_ecspi.h>
#include "spi_... | /content/code_sandbox/drivers/spi/spi_mcux_ecspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,593 |
```unknown
# MCUXpresso SDK SPI
config SPI_MCUX_LPSPI
bool "MCUX SPI driver"
default y
depends on DT_HAS_NXP_IMX_LPSPI_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable support for mcux spi driver.
if SPI_MCUX_LPSPI
config SPI_MCUX_LPSPI_DMA
bool "MCUX LPSPI SPI DMA Support"
select DMA
help
... | /content/code_sandbox/drivers/spi/Kconfig.mcux_lpspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 264 |
```unknown
# Nuvoton NPCX SPI Driver configuration options
menuconfig SPI_NPCX_SPIP
bool "Nuvoton NPCX embedded controller (EC) SPI driver"
default y
depends on DT_HAS_NUVOTON_NPCX_SPIP_ENABLED
help
Enable the SPI peripherals on NPCX MCU.
config SPI_NPCX_SPIP_INTERRUPT
bool "NPCX SPIP Interrupt Support"
dep... | /content/code_sandbox/drivers/spi/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```unknown
# DesignWare SPI driver configuration options
menuconfig SPI_DW
bool "Designware SPI controller driver"
default y
depends on DT_HAS_SNPS_DESIGNWARE_SPI_ENABLED
help
Enable support for Designware's SPI controllers.
if SPI_DW
config SPI_DW_ACCESS_WORD_ONLY
bool "DesignWare SPI only allows word acce... | /content/code_sandbox/drivers/spi/Kconfig.dw | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```unknown
config SPI_OPENTITAN
bool "OpenTitan SPI controller driver"
default y
depends on DT_HAS_LOWRISC_OPENTITAN_SPI_ENABLED
help
Enable the SPI peripherals on OpenTitan
``` | /content/code_sandbox/drivers/spi/Kconfig.opentitan | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```c
/*
*
*/
#define DT_DRV_COMPAT xlnx_xps_spi_2_00_a
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
LOG_MODULE_REGISTER(xlnx_quadspi, CONFIG_SPI_LOG_LEVEL);
#include "spi_context.h"
/* A... | /content/code_sandbox/drivers/spi/spi_xlnx_axi_quadspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,409 |
```c
/*
*
*/
#include "spi_nrfx_common.h"
#include <zephyr/kernel.h>
int spi_nrfx_wake_init(const nrfx_gpiote_t *gpiote, uint32_t wake_pin)
{
nrf_gpio_pin_pull_t pull_config = NRF_GPIO_PIN_PULLDOWN;
uint8_t ch;
nrfx_gpiote_trigger_config_t trigger_config = {
.trigger = NRFX_GPIOTE_TRIGGER_HITOLO,
.p_in_chann... | /content/code_sandbox/drivers/spi/spi_nrfx_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 596 |
```objective-c
/*
*
*/
#ifndef _SPI_SIFIVE__H
#define _SPI_SIFIVE__H
#include "spi_context.h"
#include <zephyr/sys/sys_io.h>
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/pinctrl.h>
#define SPI_CFG(dev) ((struct spi_sifive_cfg *) ((dev)->config))
#define SPI_DATA(dev) ((struc... | /content/code_sandbox/drivers/spi/spi_sifive.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 506 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_sedi_spi
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/pm/device.h>
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_sedi);
#include "sedi_driver_spi.h"
#include "spi_context.h"
struct spi_sedi_c... | /content/code_sandbox/drivers/spi/spi_sedi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,165 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_spip
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_npcx_spip, CONFIG_SPI_LOG_LEVEL);
#include "spi_context.h"
/* Trans... | /content/code_sandbox/drivers/spi/spi_npcx_spip.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,728 |
```unknown
menuconfig SPI_NRFX
bool "nRF SPI nrfx drivers"
default y
depends on SOC_FAMILY_NORDIC_NRF
depends on MULTITHREADING
select PINCTRL
help
Enable support for nrfx SPI drivers for nRF MCU series.
if SPI_NRFX
config SPI_NRFX_SPI
def_bool y
depends on DT_HAS_NORDIC_NRF_SPI_ENABLED
select NRFX_SPI0 ... | /content/code_sandbox/drivers/spi/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,286 |
```c
/*
*
*/
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/gpio.h>
#include <soc.h>
#include <nrfx_spis.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(spi_nrfx_spis, CONFIG_SPI_LOG_LEVEL);
#include "spi_context.h"
struct spi_nrfx_data ... | /content/code_sandbox/drivers/spi/spi_nrfx_spis.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,312 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_smartbond_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_smartbond);
#include "spi_context.h"
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/pm/devi... | /content/code_sandbox/drivers/spi/spi_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,467 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_s32_spi
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include "spi_nxp_s32.h"
static bool spi_nxp_s32_last_packet(struct spi_nxp_s32_data *data)
{
struct spi_context *ctx = &data->ctx;
if (ctx->tx_count <= 1U && ctx->rx_count <= 1U) {
if ... | /content/code_sandbox/drivers/spi/spi_nxp_s32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,884 |
```c
/*
*
*/
#include "spi_andes_atcspi200.h"
#include <zephyr/irq.h>
#define DT_DRV_COMPAT andestech_atcspi200
typedef void (*atcspi200_cfg_func_t)(void);
#ifdef CONFIG_ANDES_SPI_DMA_MODE
#define ANDES_SPI_DMA_ERROR_FLAG 0x01
#define ANDES_SPI_DMA_RX_DONE_FLAG 0x02
#define ANDES_SPI_DMA_TX_DONE_FLAG 0x04
#defi... | /content/code_sandbox/drivers/spi/spi_andes_atcspi200.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,140 |
```unknown
# MCUXpresso SDK SPI
config SPI_MCUX_DSPI
bool "MCUX SPI driver"
default y
depends on DT_HAS_NXP_KINETIS_DSPI_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable support for mcux spi driver.
if SPI_MCUX_DSPI
config DSPI_MCUX_EDMA
bool "ENABLE EDMA for DSPI driver"
depends on HAS_MCUX &... | /content/code_sandbox/drivers/spi/Kconfig.mcux_dspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 200 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_dspi
#include <errno.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_dspi.h>
#include <zephyr/drivers/pinctrl.h>
#ifdef CONFIG_DSPI_MCUX_EDMA
#include <zephyr/drivers/dma.h>
#include <fsl_edma.h>
#endif
#define LOG_LEVEL CONF... | /content/code_sandbox/drivers/spi/spi_mcux_dspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,910 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_litex);
#include "spi_litex_common.h"
#define POSITION_WORD_SIZE 8
struct spi_litex_data {
struct spi_context ctx;
uint8_t dfs; /* dfs in bytes: 1,2,3 or 4 */
};
struct s... | /content/code_sandbox/drivers/spi/spi_litex.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,952 |
```unknown
config SPI_MCUX_FLEXCOMM
bool "MCUX FLEXCOMM SPI driver"
default y
depends on DT_HAS_NXP_LPC_SPI_ENABLED
select PINCTRL
select RESET
help
Enable support for mcux flexcomm spi driver.
if SPI_MCUX_FLEXCOMM
config SPI_MCUX_FLEXCOMM_DMA
bool "MCUX FLEXCOMM SPI DMA Support"
select DMA
help
Enable... | /content/code_sandbox/drivers/spi/Kconfig.mcux_flexcomm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 118 |
```unknown
# SPI driver configuration options
#
# SPI Drivers
#
menuconfig SPI
bool "Serial Peripheral Interface (SPI) bus drivers"
help
Enable support for the SPI hardware bus.
if SPI
config SPI_SHELL
bool "SPI Shell"
depends on SHELL
help
Enable SPI Shell.
The currently SPI shell supports simple SP... | /content/code_sandbox/drivers/spi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 863 |
```c
/*
*
* Forked off the spi_mcux_lpi2c driver.
*
*/
#define DT_DRV_COMPAT openisa_rv32m1_lpspi
#include <errno.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_lpspi.h>
#include <zephyr/drivers/pinctrl.h>
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging... | /content/code_sandbox/drivers/spi/spi_rv32m1_lpspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,622 |
```unknown
# Simple SPI Driver configuration options
menuconfig SPI_OC_SIMPLE
bool "OpenCores Simple SPI controller driver"
default y
depends on DT_HAS_OPENCORES_SPI_SIMPLE_ENABLED
help
Enable the Simple SPI controller
config SPI_OC_SIMPLE_BUS_WIDTH
def_int 8
depends on SPI_OC_SIMPLE
``` | /content/code_sandbox/drivers/spi/Kconfig.oc_simple | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_flexio_spi
#include <errno.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_flexio_spi.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
LOG_MODULE_REGISTER(s... | /content/code_sandbox/drivers/spi/spi_mcux_flexio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,065 |
```objective-c
/* spi_dw_regs.h - Designware SPI driver private definitions */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SPI_SPI_DW_REGS_H_
#define ZEPHYR_DRIVERS_SPI_SPI_DW_REGS_H_
#ifdef __cplusplus
extern "C" {
#endif
#define DW_SPI_REG_CTRLR0 (0x00)
#define DW_SPI_REG_CTRLR1 (0x04)
#define DW_SPI_REG_SSIENR (0x08)
#d... | /content/code_sandbox/drivers/spi/spi_dw_regs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 759 |
```unknown
config SPI_EMUL
bool "SPI emulator"
default y
depends on DT_HAS_ZEPHYR_SPI_EMUL_CONTROLLER_ENABLED
depends on EMUL
help
Enable the SPI 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/spi/Kconfig.spi_emul | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```c
/*
*
*/
#include <zephyr/drivers/spi.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <nrfx_spi.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(spi_nrfx_spi, CONFIG_SPI_LOG_LEVEL);
#include "spi_context.h"
#include "spi_nrfx_common.h... | /content/code_sandbox/drivers/spi/spi_nrfx_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,546 |
```c
/*
*
*/
/**
* @file
* @brief Async callback used with signal notifier
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#ifdef CONFIG_POLL
void z_spi_transfer_signal_cb(const struct device *dev,
int result,
void *userdata)
{
ARG_UNUSED(dev);
struct k_poll_signal *sig = userdata... | /content/code_sandbox/drivers/spi/spi_signal.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```objective-c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys_clock.h>
#include "spi_context.h"
#include <soc.h>
static inline uint8_t get_dfs_value(const struct spi_config *config)
{
switch (SPI_WORD_SIZE_GET(config->operation)) {
case 8... | /content/code_sandbox/drivers/spi/spi_litex_common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 347 |
```c
/*
*
*/
#define DT_DRV_COMPAT gaisler_spimctrl
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_spimctrl);
#include "spi_context.h"
struct spimctrl_regs {
uint32_t conf;
uint32_t ctrl;
uint32_t stat;
uint32_t rx;
uint32_t tx;
};
#define CONF_READCMD 0x0000007f... | /content/code_sandbox/drivers/spi/spi_grlib_spimctrl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,514 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_lpspi
#include <errno.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/clock_control.h>
#include <fsl_lpspi.h>
#if CONFIG_NXP_LP_FLEXCOMM
#include <zephyr/drivers/mfd/nxp_lp_flexcomm.h>
#endif
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#ifdef CONFIG... | /content/code_sandbox/drivers/spi/spi_mcux_lpspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,195 |
```unknown
# Infineon CAT1 SPI configuration options
config SPI_INFINEON_CAT1
bool "Infineon CAT1 SPI driver"
default y
depends on DT_HAS_INFINEON_CAT1_SPI_ENABLED
select USE_INFINEON_SPI
help
This option enables the SPI driver for Infineon CAT1 family.
``` | /content/code_sandbox/drivers/spi/Kconfig.ifx_cat1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
*
*/
#define DT_DRV_COMPAT opencores_spi_simple
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(spi_oc_simple);
#include <zephyr/sys/sys_io.h>
#include <zephyr/drivers/spi.h>
#include "spi_context.h"
#include "spi_oc_simple.h"
/* Bit 5:4 == ESPR, Bit 1:0 == SPR ... | /content/code_sandbox/drivers/spi/spi_oc_simple.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,757 |
```c
/*
*/
#define DT_DRV_COMPAT intel_penwell_spi
#include <errno.h>
#include <stdint.h>
#include <stdbool.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(pcie)
BUILD_ASSERT(IS_ENABLED(CONFIG_PCIE), "DT need CONFIG_PCIE");
#include <zephyr/drivers/pcie/pcie.h>
#endi... | /content/code_sandbox/drivers/spi/spi_pw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,544 |
```unknown
menuconfig SPI_XMC4XXX
bool "XMC4XX SPI driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_SPI_ENABLED
select GPIO
help
Enable XMC4XXX SPI driver.
if SPI_XMC4XXX
config SPI_XMC4XXX_INTERRUPT
bool "XMC4XXX SPI interrupt mode"
help
Enables interrupt support for XMC4XXX SPI driver.
config SP... | /content/code_sandbox/drivers/spi/Kconfig.xmc4xxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 193 |
```unknown
# Atmel SAM0 SERCOM SPI
config SPI_SAM0
bool "Atmel SAM0 series SERCOM SPI driver"
default y
depends on DT_HAS_ATMEL_SAM0_SPI_ENABLED
select DMA if SPI_ASYNC
help
Enable support for the SAM0 SERCOM SPI driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.sam0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SPI_ESP32_SPIM_H_
#define ZEPHYR_DRIVERS_SPI_ESP32_SPIM_H_
#include <zephyr/drivers/pinctrl.h>
#include <hal/spi_hal.h>
#ifdef SOC_GDMA_SUPPORTED
#include <hal/gdma_hal.h>
#endif
#define SPI_MASTER_FREQ_8M (APB_CLK_FREQ/10)
#define SPI_MASTER_FREQ_9M (APB_CLK... | /content/code_sandbox/drivers/spi/spi_esp32_spim.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 503 |
```unknown
config SPI_TELINK_B91
bool "Telink Semiconductor B91 SPI driver"
default y
depends on DT_HAS_TELINK_B91_SPI_ENABLED
help
Enables Telink B91 SPI driver.
``` | /content/code_sandbox/drivers/spi/Kconfig.b91 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```unknown
config SPI_BITBANG
bool "Bitbang SPI controller driver"
default y
depends on DT_HAS_ZEPHYR_SPI_BITBANG_ENABLED
help
Enable the Bitbang SPI controller
``` | /content/code_sandbox/drivers/spi/Kconfig.bitbang | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```c
/*
* an affiliate of Cypress Semiconductor Corporation
*
*/
#define DT_DRV_COMPAT infineon_cat1_spi
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(cat1_spi);
#include "spi_context.h"
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/spi.h>
#include <zep... | /content/code_sandbox/drivers/spi/spi_ifx_cat1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,816 |
```unknown
config SPI_RPI_PICO_PIO
bool "Raspberry Pi PICO PIO SPI controller driver"
default y
depends on DT_HAS_RASPBERRYPI_PICO_SPI_PIO_ENABLED
select PICOSDK_USE_PIO
select PICOSDK_USE_CLAIM
help
Enable driving SPI via PIO on the PICO
``` | /content/code_sandbox/drivers/spi/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
# Dai driver configuration options
#
# DAI Drivers
#
menuconfig DAI
bool "Digital Audio Interface (DAI) drivers"
help
Enable support for the DAI interface drivers.
if DAI
config DAI_INIT_PRIORITY
int "Init priority"
default 70
help
Device driver initialization priority.
module = DAI
module-str ... | /content/code_sandbox/drivers/dai/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 186 |
```objective-c
/*
*
*/
#ifndef __INTEL_DAI_DRIVER_ALH_MAP_H__
#define __INTEL_DAI_DRIVER_ALH_MAP_H__
/**
* \brief ALH Handshakes for audio I/O
* Stream ID -> DMA Handshake map
* -1 identifies invalid handshakes/streams
*/
static const uint8_t alh_handshake_map[64] = {
-1, /* 0 - INVALID */
-1, /* 1 - INVALI... | /content/code_sandbox/drivers/dai/intel/alh/alh_map.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 843 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_spi
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
LOG_MO... | /content/code_sandbox/drivers/spi/spi_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,852 |
```objective-c
/*
*
*/
#ifndef __INTEL_DAI_DRIVER_ALH_H__
#define __INTEL_DAI_DRIVER_ALH_H__
#include <stdint.h>
#include <zephyr/drivers/dai.h>
#include "alh_map.h"
#define DAI_NUM_ALH_BI_DIR_LINKS_GROUP 4
#define ALH_STREAM_OFFSET 0x4
#define IPC4_ALH_MAX_NUMBER_OF_GTW 16
#define IPC4_ALH_DAI_INDEX_OFFSET 7
... | /content/code_sandbox/drivers/dai/intel/alh/alh.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 851 |
```unknown
# SOF ALH configuration options
config DAI_INTEL_ALH
bool "Intel ALH driver for Dai interface"
default y
depends on DT_HAS_INTEL_ALH_DAI_ENABLED
select DMA
help
Select this to enable Intel ALH driver.
The ALH is an intermediary device, which acts as a hub and provides an
abstracted support fo... | /content/code_sandbox/drivers/dai/intel/alh/Kconfig.alh | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 155 |
```unknown
# SOF SSP configuration options
config DAI_INTEL_SSP
bool "Intel I2S (SSP) Bus Driver for Dai interface"
default y
depends on DT_HAS_INTEL_SSP_DAI_ENABLED
select DMA
depends on PM_DEVICE_RUNTIME
help
Enable Inter Sound (I2S) bus driver based on
Synchronous Serial Port (SSP) module.
config DAI_... | /content/code_sandbox/drivers/dai/intel/ssp/Kconfig.ssp | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 187 |
```c
/*
*
*/
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <zephyr/spinlock.h>
#include <zephyr/devicetree.h>
#include <zephyr/logging/log.h>
#ifdef CONFIG_SOC_SERIES_INTEL_CAVS_V25
#include <adsp_shim.h>
#endif
#define DT_DRV_COMPAT intel_alh_dai
#define LOG_DOMAIN dai_intel_alh
LOG_MODULE... | /content/code_sandbox/drivers/dai/intel/alh/alh.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,889 |
```objective-c
/*
*
*/
#ifndef __INTEL_DAI_DRIVER_SSP_REGSV2_H__
#define __INTEL_DAI_DRIVER_SSP_REGSV2_H__
/* SSP register offsets */
#define SSCR0 0x00
#define SSCR1 0x04
#define SSSR 0x08
#define SSITR 0x0C
#define SSTO 0x28
#define SSPSP 0x2C
#define SSTSS 0x38
#define SSCR2 0x40
#define SSPSP2 ... | /content/code_sandbox/drivers/dai/intel/ssp/ssp_regs_v2.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,144 |
```objective-c
/*
*
*/
#ifndef __INTEL_DAI_DRIVER_SSP_H__
#define __INTEL_DAI_DRIVER_SSP_H__
#include <stdint.h>
#include <zephyr/drivers/dai.h>
#include "dai-params-intel-ipc3.h"
#include "dai-params-intel-ipc4.h"
#define DAI_INTEL_SSP_MASK(b_hi, b_lo) \
(((1ULL << ((b_hi) - (b_lo) + 1ULL)) - 1ULL) << (b_lo))
#d... | /content/code_sandbox/drivers/dai/intel/ssp/ssp.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,334 |
```objective-c
/*
*
*/
#ifndef __INTEL_DAI_DRIVER_SSP_REGSV1_H__
#define __INTEL_DAI_DRIVER_SSP_REGSV1_H__
/* SSP register offsets */
#define SSCR0 0x00
#define SSCR1 0x04
#define SSSR 0x08
#define SSITR 0x0C
#define SSTO 0x28
#define SSPSP 0x2C
#define SSTSS 0x38
#define SSCR2 0x40
#define SSPSP2 ... | /content/code_sandbox/drivers/dai/intel/ssp/ssp_regs_v1.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,154 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.