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 |
|---|---|---|---|---|---|---|---|---|
```objective-c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <zephyr/modem/ubx.h>
#include "gnss_u_blox_protocol_defines.h"
#ifndef ZEPHYR_U_BLOX_PROTOCOL_
#define ZEPHYR_U_BLOX_PROTOCOL_
#define UBX_BAUDRATE_COUNT 9
/* When a configuration frame is sent, the device requires some delay t... | /content/code_sandbox/drivers/gnss/gnss_u_blox_protocol/gnss_u_blox_protocol.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,889 |
```c
/*
*
*/
/*
* MMC disk driver using zephyr SD subsystem
*/
#define DT_DRV_COMPAT zephyr_mmc_disk
#include <zephyr/sd/mmc.h>
#include <zephyr/drivers/disk.h>
enum sd_status {
SD_UNINIT,
SD_ERROR,
SD_OK,
};
struct mmc_config {
const struct device *host_controller;
uint8_t bus_width;
};
struct mmc_data ... | /content/code_sandbox/drivers/disk/mmc_subsys.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 886 |
```c
/*
*
*/
/*
* SDMMC disk driver using zephyr SD subsystem
*/
#define DT_DRV_COMPAT zephyr_sdmmc_disk
#include <zephyr/sd/sdmmc.h>
#include <zephyr/drivers/disk.h>
enum sd_status {
SD_UNINIT,
SD_ERROR,
SD_OK,
};
struct sdmmc_config {
const struct device *host_controller;
};
struct sdmmc_data {
struct ... | /content/code_sandbox/drivers/disk/sdmmc_subsys.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 906 |
```c
/*
*
*/
#include <string.h>
#include <zephyr/types.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/disk.h>
#include <errno.h>
#include <zephyr/init.h>
#include <zephyr/device.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/storage/flash_map.h>
#include <zephyr/lo... | /content/code_sandbox/drivers/disk/flashdisk.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,788 |
```unknown
DT_STM32_SDMMC_HAS_DMA := $(dt_nodelabel_has_prop,sdmmc,dmas)
config DISK_DRIVER_SDMMC
bool "SDMMC card driver"
depends on DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED || \
DT_HAS_ST_STM32_SDMMC_ENABLED
default y
help
SDMMC card driver.
if DISK_DRIVER_SDMMC
config SD_INIT_PRIORITY
int "Init priority"
def... | /content/code_sandbox/drivers/disk/Kconfig.sdmmc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 677 |
```unknown
menuconfig DISK_DRIVERS
bool "Disk drivers"
help
Disk Driver configuration
if DISK_DRIVERS
source "drivers/disk/Kconfig.ram"
source "drivers/disk/Kconfig.flash"
source "drivers/disk/Kconfig.sdmmc"
source "drivers/disk/Kconfig.mmc"
source "drivers/disk/Kconfig.loopback"
rsource "nvme/Kconfig"
endif ... | /content/code_sandbox/drivers/disk/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```unknown
config DISK_DRIVER_MMC
bool "MMC card driver"
depends on DT_HAS_ZEPHYR_MMC_DISK_ENABLED
default y
help
MMC card driver.
if DISK_DRIVER_MMC
config SD_INIT_PRIORITY
int "Init priority"
default 90
help
MMC controller driver initialization priority.
config MMC_VOLUME_NAME
string "MMC Disk mount... | /content/code_sandbox/drivers/disk/Kconfig.mmc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 183 |
```c
/*
*
*/
#include <string.h>
#include <zephyr/types.h>
#include <zephyr/drivers/disk.h>
#include <errno.h>
#include <zephyr/init.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ramdisk, CONFIG_RAMDISK_LOG_LEVEL);
struct ram_disk_data {
struct disk_info info;
const size_t sec... | /content/code_sandbox/drivers/disk/ramdisk.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,260 |
```unknown
config DISK_DRIVER_FLASH
bool "Flash"
depends on DT_HAS_ZEPHYR_FLASH_DISK_ENABLED
default y
select FLASH
select FLASH_MAP
help
Flash device is used for the file system.
if DISK_DRIVER_FLASH
config FLASHDISK_VERIFY_PAGE_LAYOUT
bool "Verify flashdisk partition layout"
default y
help
Enable ru... | /content/code_sandbox/drivers/disk/Kconfig.flash | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 128 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_sdmmc
#include <zephyr/devicetree.h>
#include <zephyr/drivers/disk.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/rese... | /content/code_sandbox/drivers/disk/sdmmc_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,364 |
```c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
*/
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(nvme, CONFIG_NVME_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <stdio.h>
#include "nvme.h"
uint32_t nvme_namespace_get_sector_size(struct nvme_namespace ... | /content/code_sandbox/drivers/disk/nvme/nvme_namespace.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 984 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_DISK_NVME_NHME_HELPERS_H_
#define ZEPHYR_DRIVERS_DISK_NVME_NHME_HELPERS_H_
#define NVME_GONE 0xfffffffful
/*
* Macros to deal with NVME revisions, as defined VS register
*/
#define NVME_REV(x, y) (((x) << 16) | ((y) << 8))
#define NVME_MAJOR(r) (((r) >> 16) & 0xfff... | /content/code_sandbox/drivers/disk/nvme/nvme_helpers.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,674 |
```c
/*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(nvme, CONFIG_NVME_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include "nvme.h"
static int nvme_disk_status(struct disk_info *disk)
{
return 0;
}
static int nvme_disk_read(struct disk_info *disk,
uint8_t *data_buf,
... | /content/code_sandbox/drivers/disk/nvme/nvme_disk.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,408 |
```objective-c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
* with contributions from Alexander Motin and Wojciech Macek
*/
#ifndef ZEPHYR_DRIVERS_DISK_NVME_NVME_COMMAND_H_
#define ZEPHYR_DRIVERS_DISK_NVME_NVME_COMMAND_H_
#include <zephyr/sys/slist.h>
#include <zephyr/sys/byteorder.h>
struct nv... | /content/code_sandbox/drivers/disk/nvme/nvme_cmd.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,658 |
```c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
*/
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(nvme, CONFIG_NVME_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <string.h>
#include "nvme.h"
#include "nvme_helpers.h"
int nvme_ctrlr_cmd_identify_control... | /content/code_sandbox/drivers/disk/nvme/nvme_controller_cmd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,700 |
```unknown
menuconfig NVME
bool "NVMe disk"
depends on PCIE
select PCIE_MSI_X
select PCIE_MSI_MULTI_VECTOR
help
NVMe disk(s) might be present on the system through PCIe, enable this
driver to support these. It will enable MSI-X and MSI multi-vector
support
if NVME
config NVME_ADMIN_ENTRIES
int "Number... | /content/code_sandbox/drivers/disk/nvme/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 531 |
```c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
* with contributions from Alexander Motin, Wojciech Macek, and Warner Losh
*/
#define DT_DRV_COMPAT nvme_controller
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nvme, CONFIG_NVME_LOG_LEVEL);
#include <errno.h>
#include <zephyr/kernel.h>
... | /content/code_sandbox/drivers/disk/nvme/nvme_controller.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,224 |
```objective-c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
* with contributions from Alexander Motin and Wojciech Macek
*/
#ifndef ZEPHYR_DRIVERS_DISK_NVME_NHME_H_
#define ZEPHYR_DRIVERS_DISK_NVME_NVME_H_
#include "nvme_helpers.h"
#include "nvme_cmd.h"
#include "nvme_namespace.h"
struct nvme_r... | /content/code_sandbox/drivers/disk/nvme/nvme.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,425 |
```objective-c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
* with contributions from Alexander Motin and Wojciech Macek
*/
#ifndef ZEPHYR_DRIVERS_DISK_NVME_NVME_NAMESPACE_H_
#define ZEPHYR_DRIVERS_DISK_NVME_NVME_NAMESPACE_H_
#include <zephyr/drivers/disk.h>
struct nvme_namespace_data {
/** na... | /content/code_sandbox/drivers/disk/nvme/nvme_namespace.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,327 |
```unknown
config MEMC_SAM_SMC
bool "Atmel Static Memory Controller (SMC)"
default y
depends on DT_HAS_ATMEL_SAM_SMC_ENABLED
help
Enable Atmel Static Memory Controller.
``` | /content/code_sandbox/drivers/memc/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```c
/*
*
* Derived from FreeBSD original driver made by Jim Harris
* with contributions from Alexander Motin, Wojciech Macek, and Warner Losh
*/
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(nvme, CONFIG_NVME_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/cache.h>
#include <zephyr/sys/byteorder.h>
... | /content/code_sandbox/drivers/disk/nvme/nvme_cmd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,956 |
```unknown
if DT_HAS_NXP_IMX_FLEXSPI_ENABLED
config MEMC_MCUX_FLEXSPI_W956A8MBYA
bool "MCUX FlexSPI Winbond W956A8MBYA HyperRAM driver"
default y
depends on DT_HAS_NXP_IMX_FLEXSPI_W956A8MBYA_ENABLED
select MEMC_MCUX_FLEXSPI
config MEMC_MCUX_FLEXSPI_S27KS0641
bool "MCUX FlexSPI Cypress S27KS0641 HyperRAM driver"... | /content/code_sandbox/drivers/memc/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 603 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_smartbond_nor_psram
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/irq.h>
#include <DA1469xAB.h>
#include <zephyr/pm/device.h>
#include <da1469x_qspic.h>
#include <da1469x_pd.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(smartbond_nor_psra... | /content/code_sandbox/drivers/memc/memc_smartbond_nor_psram.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,648 |
```c
/*
*
*/
#define DT_DRV_COMPAT mspi_aps6404l
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/mspi.h>
#if CONFIG_SOC_FAMILY_AMBIQ
#include "mspi_ambiq.h"
typedef struct mspi_ambiq_timing... | /content/code_sandbox/drivers/memc/memc_mspi_aps6404l.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,302 |
```objective-c
/*
*
*/
#include <zephyr/devicetree.h>
#include <soc.h>
#define FLEXRAM_DT_NODE DT_INST(0, nxp_flexram)
#define IOMUXC_GPR_DT_NODE DT_NODELABEL(iomuxcgpr)
#if defined(CONFIG_MEMC_NXP_FLEXRAM_MAGIC_ADDR_API) || \
defined(CONFIG_MEMC_NXP_FLEXRAM_ERROR_INTERRUPT)
#define FLEXRAM_INTERRUPTS_USED
#en... | /content/code_sandbox/drivers/memc/memc_nxp_flexram.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 989 |
```unknown
config MEMC_STM32
bool "STM32 Flexible Memory Controller (FMC)"
default y
depends on DT_HAS_ST_STM32_FMC_ENABLED || DT_HAS_ST_STM32H7_FMC_ENABLED
help
Enable STM32 Flexible Memory Controller.
if MEMC_STM32
config MEMC_STM32_SDRAM
bool "STM32 FMC SDRAM controller"
default y
depends on DT_HAS_ST_S... | /content/code_sandbox/drivers/memc/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 220 |
```c
/*
*
*/
#include "memc_nxp_flexram.h"
#include <zephyr/dt-bindings/memory-controller/nxp,flexram.h>
#include <zephyr/devicetree.h>
#include <zephyr/init.h>
#include <zephyr/sys/util.h>
#include <errno.h>
#include <zephyr/irq.h>
#include "fsl_device_registers.h"
#if defined(CONFIG_MEMC_NXP_FLEXRAM_MAGIC_ADDR_... | /content/code_sandbox/drivers/memc/memc_nxp_flexram.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,369 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_smc
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control/atmel_sam_pmc.h>
#include <soc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(memc_sam, CONFIG_MEMC_LOG_LEVEL);
struct memc_smc_bank_config {
uint32_t cs;... | /content/code_sandbox/drivers/memc/memc_sam_smc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,102 |
```objective-c
/*
*
* Based on:
* - path_to_url (Apache-2.0)
* - path_to_url (Apache-2.0)
* - path_to_url (MIT)
*
*/
#include <stdint.h>
uint32_t ddr_phy_settings[1215] = {
0x01375642, /* DENALI_PHY_00_DATA */
0x0004c008, /* DENALI_PHY_01_DATA */
0x000000da, /* DENALI_PHY_02_DATA */
0x00000000, /* DENALI_P... | /content/code_sandbox/drivers/memc/sifive_ddrregs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22,485 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_flexspi_is66wvq8m4
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "memc_mcux_flexspi.h"
LOG_MODULE_REGISTER(memc_flexspi_is66wvq8m4, CONFIG_MEMC_LOG_LEVEL);
/* Vendor ID for ISSI device */
#define ISSI_VENDOR_ID 0x3... | /content/code_sandbox/drivers/memc/memc_mcux_flexspi_is66wvq8m4.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,617 |
```unknown
config MEMC_NXP_S32_QSPI
bool "NXP S32 Quad Serial Peripheral Interface (QSPI) controller"
default y
depends on DT_HAS_NXP_S32_QSPI_ENABLED
select PINCTRL
help
Enable NXP S32 Quad Serial Peripheral Interface (QSPI) controller.
``` | /content/code_sandbox/drivers/memc/Kconfig.nxp_s32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```objective-c
/*
*
*/
#include <zephyr/device.h>
#include <sys/types.h>
#include <fsl_flexspi.h>
/* Size of a command in the LUT table */
#define MEMC_FLEXSPI_CMD_SIZE 4U
/* Number of commands in an instruction sequence */
#define MEMC_FLEXSPI_CMD_PER_SEQ 4U
/**
* @brief Wait for the FlexSPI bus to be idle
*
*... | /content/code_sandbox/drivers/memc/memc_mcux_flexspi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 797 |
```c
/*
*
*/
/*
*/
#define DT_DRV_COMPAT nxp_imx_flexspi_aps6408l
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "memc_mcux_flexspi.h"
/*
* NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
* called while interacting with the f... | /content/code_sandbox/drivers/memc/memc_mcux_flexspi_aps6408l.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,174 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_flexspi
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/pm/device.h>
#include <soc.h>
#include "memc_mcux_flexspi.h"
/*
* NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP ... | /content/code_sandbox/drivers/memc/memc_mcux_flexspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,943 |
```unknown
config MEMC_HIFIVE_UNMATCHED_DRAM
bool "HiFive Unmatched DRAM Memory Controller"
default y
depends on DT_HAS_SIFIVE_FU740_C000_DDR_ENABLED
help
Enable HiFive Unmatched Memory Controller.
``` | /content/code_sandbox/drivers/memc/Kconfig.sifive | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
menu "MSPI MEMC device driver"
config MEMC_MSPI
bool
select MSPI
help
MSPI MEMC drivers are enabled.
config MEMC_MSPI_APS6404L
bool "MSPI AP Memory APS6404L pSRAM driver"
default y
depends on DT_HAS_MSPI_APS6404L_ENABLED
select MEMC_MSPI
select MSPI_AMBIQ_AP3 if SOC_SERIES_APOLLO3X
endmenu
``... | /content/code_sandbox/drivers/memc/Kconfig.mspi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```objective-c
/*
*
*/
#include <zephyr/device.h>
#include <sys/types.h>
#include <Qspi_Ip.h>
/**
* @brief Build a QSPI Look-up Table (LUT) sequence entry.
*
* @param inst instruction
* @param pads pad information
* @param op operand
*/
#define QSPI_LUT_OP(inst, pads, op) \
((Qspi_Ip_InstrOpType)((Qspi_I... | /content/code_sandbox/drivers/memc/memc_nxp_s32_qspi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 179 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_flexspi_s27ks0641
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "memc_mcux_flexspi.h"
/*
* NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
* called while interacting with the flexspi MUST be relocated to SRAM or ITC... | /content/code_sandbox/drivers/memc/memc_mcux_flexspi_s27ks0641.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,064 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_s32_qspi
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_s32_qspi_memc, CONFIG_MEMC_LOG_LEVEL);
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/sys/util.h>
#include <soc.h>
#include "memc_nxp_s32_qspi.h"
/* Mapping between QSPI chip select signals and devicetre... | /content/code_sandbox/drivers/memc/memc_nxp_s32_qspi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,084 |
```unknown
# Smartbond Cryptographic Accelerator configuration options
config MEMC_SMARTBOND
bool "Smartbond NOR/PSRAM memory controller"
depends on DT_HAS_RENESAS_SMARTBOND_NOR_PSRAM_ENABLED
default y
help
Enable Smartbond NOR/PSRAM memory controller.
``` | /content/code_sandbox/drivers/memc/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(memc_stm32, CONFIG_MEMC_LOG_LEVEL);
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_fmc)
#define DT_DRV_COMPAT st_st... | /content/code_sandbox/drivers/memc/memc_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 795 |
```c
/*
*
*
* Based on implementation of fsbl in:
* path_to_url
*/
#define DT_DRV_COMPAT sifive_fu740_c000_ddr
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
#include <soc.h>
#include "sifive_ddrregs.h"
LOG_MODULE_REGISTER(sifive_ddr);
#define DR... | /content/code_sandbox/drivers/memc/sifive_ddr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,038 |
```linker script
/*
*
*/
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sdram1), okay)
GROUP_START(SDRAM1)
SECTION_PROLOGUE(_STM32_SDRAM1_SECTION_NAME, (NOLOAD),)
{
*(.stm32_sdram1)
*(".stm32_sdram1.*")
} GROUP_LINK_IN(SDRAM1)
GROUP_END(SDRAM1)
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sdram2), okay)
GROUP_START(SDR... | /content/code_sandbox/drivers/memc/memc_stm32_sdram.ld | linker script | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 164 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_fmc_sdram
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(memc_stm32_sdram, CONFIG_MEMC_LOG_LEVEL);
/** SDRAM controller register offset. */
#define SDRAM_OFFSET 0x140U
/** FMC SDRAM controller ... | /content/code_sandbox/drivers/memc/memc_stm32_sdram.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,295 |
```unknown
# Memory controller configuration options
menuconfig MEMC
bool "Memory controller drivers [EXPERIMENTAL]"
select EXPERIMENTAL
help
Add support for memory controllers
if MEMC
module = MEMC
module-str = memc
source "subsys/logging/Kconfig.template.log_config"
config MEMC_INIT_PRIORITY
int "Initiali... | /content/code_sandbox/drivers/memc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```c
/*
*
*/
/*
*/
#define DT_DRV_COMPAT nxp_imx_flexspi_w956a8mbya
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "memc_mcux_flexspi.h"
LOG_MODULE_REGISTER(memc_flexspi_w956a8mbya, CONFIG_MEMC_LOG_LEVEL);
enum {
READ_DATA,
WRITE_DATA,
READ_REG,
WRITE_REG,
};
struct memc_flexsp... | /content/code_sandbox/drivers/memc/memc_mcux_flexspi_w956a8mbya.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 syscon
#include <errno.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/syscon.h>
#include "syscon_common.h"
struct syscon_generic_config {
DEVICE_MMIO_ROM;
uint8_t reg_width;
};
struct... | /content/code_sandbox/drivers/syscon/syscon.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 832 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_fmc_nor_psram
#include <zephyr/device.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(memc_stm32_nor_psram, CONFIG_MEMC_LOG_LEVEL);
/** SRAM base register offset, see FMC_Bank1_R_BASE */
#define SRAM_OFFSET 0x0000UL
/** SRAM ex... | /content/code_sandbox/drivers/memc/memc_stm32_nor_psram.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,711 |
```objective-c
/*
*/
#ifndef DRIVERS_SYSCON_SYSCON_COMMON_H_
#define DRIVERS_SYSCON_SYSCON_COMMON_H_
#include <zephyr/sys/util.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Align and check register address
*
* @param reg Pointer to the register address in question.
* @param reg_size The size of the sy... | /content/code_sandbox/drivers/syscon/syscon_common.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 219 |
```unknown
# PCIe RC/EP drivers configuration options
source "drivers/pcie/host/Kconfig"
source "drivers/pcie/endpoint/Kconfig"
``` | /content/code_sandbox/drivers/pcie/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```unknown
# SYSCON configuration options
#
# SYSCON options
#
menuconfig SYSCON
bool "System Controller (SYSCON) drivers"
help
SYSCON (System Controller) drivers. System controller node represents
a register region containing a set of miscellaneous registers. The
registers are not cohesive enough to repre... | /content/code_sandbox/drivers/syscon/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 262 |
```unknown
# iProc PCIe EP configuration options
menuconfig PCIE_EP_IPROC
bool "Broadcom iProc PCIe EP driver"
help
This option enables Broadcom iProc PCIe EP driver.
if PCIE_EP_IPROC
config PCIE_EP_IPROC_INIT_CFG
bool "Re-initialize PCIe MSI/MSIX configurations"
config PCIE_EP_IPROC_V2
bool "Version-2 of i... | /content/code_sandbox/drivers/pcie/endpoint/Kconfig.iproc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_PCIE_EP_IPROC_H_
#define ZEPHYR_INCLUDE_DRIVERS_PCIE_EP_IPROC_H_
#include <soc.h>
#include <zephyr/sys/util.h>
#include "pcie_ep_iproc_regs.h"
#define PCIE_LINK_STATUS_CONTROL 0xbc
#define PCIE_LINKSPEED_SHIFT 16
#define PCIE_LINKWIDTH_SHIFT 20
#define PCIE_... | /content/code_sandbox/drivers/pcie/endpoint/pcie_ep_iproc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,221 |
```c
/*
*
*/
#include <zephyr/drivers/pcie/endpoint/pcie_ep.h>
#include <zephyr/logging/log.h>
#include "pcie_ep_iproc.h"
LOG_MODULE_DECLARE(iproc_pcie, CONFIG_PCIE_EP_LOG_LEVEL);
/* Helper macro to read 64-bit data using two 32-bit data read */
#define sys_read64(addr) (((uint64_t)(sys_read32(addr + 4)) << 32... | /content/code_sandbox/drivers/pcie/endpoint/pcie_ep_iproc_msi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,759 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_PCIE_EP_IPROC_REGS_H_
#define ZEPHYR_INCLUDE_DRIVERS_PCIE_EP_IPROC_REGS_H_
struct paxb_64 {
uint32_t lower;
uint32_t upper;
};
#ifdef CONFIG_PCIE_EP_IPROC_V2
struct paxb_imap {
uint32_t lower;
uint32_t upper;
uint32_t axim_write_config;
uint32_t axim_read... | /content/code_sandbox/drivers/pcie/endpoint/pcie_ep_iproc_regs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,472 |
```c
/*
*
*
*/
#include <zephyr/drivers/pcie/endpoint/pcie_ep.h>
#include <string.h>
#include <zephyr/sys/util.h>
/*
* During DEVICE_TO_HOST data transfer, in order to make sure that all
* PCIe writes (posted) have reached Host, i.e. to flush PCIe writes,
* we need to add a dummy PCIe read (non posted transacti... | /content/code_sandbox/drivers/pcie/endpoint/pcie_ep_common.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,186 |
```unknown
# PCIe Endpoint configuration options
menuconfig PCIE_ENDPOINT
bool "PCIe Endpoint support"
help
This option enables PCIe Endpoint support.
if PCIE_ENDPOINT
module = PCIE_EP
module-str = PCIE_EP
source "subsys/logging/Kconfig.template.log_config"
comment "PCIe Endpoint Drivers"
source "drivers/pci... | /content/code_sandbox/drivers/pcie/endpoint/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```c
/*
*
*/
#include <stdlib.h>
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/pcie/pcie.h>
#ifdef CONFIG_PCIE_MSI
#include <zephyr/drivers/pcie/msi.h>
#endif
#include <zephyr/drivers/pcie/cap.h>
#include <zephyr/drivers/pcie/vc.h>
#include "vc.h"
struct pcie_cap_id_to_str {
uint32_t id;
char *str;
... | /content/code_sandbox/drivers/pcie/host/shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,573 |
```c
/*
*
*/
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/pcie/endpoint/pcie_ep.h>
#define LOG_LEVEL CONFIG_PCIE_EP_LOG_LEVEL
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(iproc_pcie);
#include "pcie_ep_iproc.h"
#define DT_DRV_COMPAT brcm_iproc_pcie_ep
static int iproc_p... | /content/code_sandbox/drivers/pcie/endpoint/pcie_ep_iproc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,353 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_PCIE_HOST_VC_H_
#define ZEPHYR_DRIVERS_PCIE_HOST_VC_H_
#define PCIE_VC_CAP_REG_1_OFFSET 0x04U
#define PCIE_VC_CAP_REG_2_OFFSET 0x08U
#define PCIE_VC_CTRL_STATUS_REG_OFFSET 0x0CU
/** Virtual Channel capability and control Registers */
struct pcie_vc_regs {
union {
st... | /content/code_sandbox/drivers/pcie/host/vc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,021 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/pcie/msi.h>
#include <zephyr/drivers/pcie/cap.h>
/* functions documented in include/drivers/pcie/msi.h */
static uint32_t pcie_msi_base(pcie_bdf_t bdf, bool *msi)
{
uint32_t base;
if (msi != NULL) {
*msi = true;
}
base = pcie_get_cap(bdf, PCI... | /content/code_sandbox/drivers/pcie/host/msi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,029 |
```c
/*
*
*/
#define DT_DRV_COMPAT pcie_controller
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pcie, LOG_LEVEL_ERR);
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/check.h>
#include <stdbool.h>
#include <zephyr/drivers/pcie/pcie.h>
#include <zephyr/sys/i... | /content/code_sandbox/drivers/pcie/host/pcie.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,762 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_PCIE_HOST_PTM_H_
#define ZEPHYR_DRIVERS_PCIE_HOST_PTM_H_
#include <zephyr/drivers/pcie/pcie.h>
#include <zephyr/drivers/pcie/cap.h>
#define PTM_CAP_REG_OFFSET 0x04U
union ptm_cap_reg {
struct {
uint32_t requester : 1;
uint32_t responder ... | /content/code_sandbox/drivers/pcie/host/ptm.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 271 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pcie_ecam, LOG_LEVEL_ERR);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pcie/pcie.h>
#include <zephyr/drivers/pcie/controller.h>
#ifdef CONFIG_GIC_V3_ITS
#include <zephyr/drivers/interrupt_controller/gicv3_its.h>
#end... | /content/code_sandbox/drivers/pcie/host/pcie_ecam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,921 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/drivers/pcie/vc.h>
#include <zephyr/drivers/pcie/cap.h>
#include "vc.h"
uint32_t pcie_vc_cap_lookup(pcie_bdf_t bdf, struct pcie_vc_regs *regs)
{
uint32_t base;
base = pcie_get_ext_cap(bdf, PCIE_EXT_CAP_ID_VC);
if (base == 0) {
base = pcie_get_ext_cap(bdf, PCI... | /content/code_sandbox/drivers/pcie/host/vc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,209 |
```unknown
# PCIe/new PCI configuration options
menuconfig PCIE
bool "New PCI/PCIe Root Complex support"
help
This option enables support for new PCI(e) drivers.
if PCIE
module = PCIE
module-str = pcie
source "subsys/logging/Kconfig.template.log_config"
config PCIE_INIT_PRIORITY
int "PCIe initialization prio... | /content/code_sandbox/drivers/pcie/host/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 606 |
```c
/*
*
*/
#define LOG_LEVEL CONFIG_PCIE_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pcie);
#include <errno.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#define DT_DRV_COMPAT ptm_root
#include <zephyr/drivers/pcie/pcie.h>
#include "ptm.h"... | /content/code_sandbox/drivers/pcie/host/ptm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 689 |
```objective-c
/** @file
* @brief Modem socket header file.
*
* Generic modem socket and packet size implementation for modem context
*/
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_SOCKET_H_
#define ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_SOCKET_H_
#include <zephyr/kernel.h>
#include <zephyr/net/net_ip.h>
#i... | /content/code_sandbox/drivers/modem/modem_socket.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,195 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pcie_core, LOG_LEVEL_INF);
#include <zephyr/kernel.h>
#include <zephyr/drivers/pcie/pcie.h>
#include <zephyr/drivers/pcie/controller.h>
#if CONFIG_PCIE_MSI
#include <zephyr/drivers/pcie/msi.h>
#endif
/* arch agnostic PCIe API implementation */
uint... | /content/code_sandbox/drivers/pcie/host/controller.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,877 |
```objective-c
/*
*
*/
#ifndef SIMCOM_SIM7080_H
#define SIMCOM_SIM7080_H
#include <zephyr/kernel.h>
#include <ctype.h>
#include <inttypes.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/modem/simcom-sim7080.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr... | /content/code_sandbox/drivers/modem/simcom-sim7080.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,204 |
```unknown
# WNCM 14A2A driver options
menuconfig MODEM_WNCM14A2A
bool "Wistron LTE-M modem driver"
select MODEM_RECEIVER
select NET_OFFLOAD
imply GPIO
help
Choose this setting to enable Wistron WNC-M14A2A LTE-M modem driver.
NOTE: Currently the pin settings only work with FRDM K64F shield.
if MODEM_WNCM1... | /content/code_sandbox/drivers/modem/Kconfig.wncm14a2a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 409 |
```c
/*
*
*/
#define DT_DRV_COMPAT quectel_bg9x
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_quectel_bg9x, CONFIG_MODEM_LOG_LEVEL);
#include "quectel-bg9x.h"
static struct k_thread modem_rx_thread;
static struct k_work_q modem_workq;
static struct modem_data mdata;
static struct m... | /content/code_sandbox/drivers/modem/quectel-bg9x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,721 |
```objective-c
/** @file
* @brief Modem receiver header file.
*
* A modem receiver driver allowing application to handle all
* aspects of received protocol data.
*/
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_RECEIVER_H_
#define ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_RECEIVER_H_
#include <zephyr/kernel.h>
... | /content/code_sandbox/drivers/modem/modem_receiver.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 602 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/cellular.h>
#include <zephyr/modem/chat.h>
#include <zephyr/modem/cmux.h>
#include <zephyr/modem/pipe.h>
#include <zephyr/modem/pipelink.h>
#include <zephyr/modem/ppp.h>
#include <zephyr/modem... | /content/code_sandbox/drivers/modem/modem_cellular.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21,648 |
```unknown
config MODEM_AT_SHELL
bool "AT command shell based on modem modules"
select MODEM_MODULES
select MODEM_CHAT
select MODEM_PIPE
select MODEM_PIPELINK
depends on !MODEM_SHELL
depends on !SHELL_WILDCARD
depends on $(dt_alias_enabled,modem)
if MODEM_AT_SHELL
config MODEM_AT_SHELL_USER_PIPE
int "User p... | /content/code_sandbox/drivers/modem/Kconfig.at_shell | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 204 |
```objective-c
/*
*
*/
#ifndef QUECTEL_BG9X_H
#define QUECTEL_BG9X_H
#include <zephyr/kernel.h>
#include <ctype.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/offloaded_netdev.h>
#include <zephyr/net/net... | /content/code_sandbox/drivers/modem/quectel-bg9x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 968 |
```c
/** @file
* @brief Modem shell module
*
* Provide some modem shell commands that can be useful to applications.
*/
/*
*
*/
#define LOG_MODULE_NAME modem_shell
#include <zephyr/kernel.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/shell/shell.h>
#include <zephyr/sys... | /content/code_sandbox/drivers/modem/modem_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,546 |
```c
/*
*
*/
#define DT_DRV_COMPAT simcom_sim7080
#include <zephyr/logging/log.h>
#include <zephyr/net/offloaded_netdev.h>
LOG_MODULE_REGISTER(modem_simcom_sim7080, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/drivers/modem/simcom-sim7080.h>
#include "simcom-sim7080.h"
#define SMS_TP_UDHI_HEADER 0x40
static struct ... | /content/code_sandbox/drivers/modem/simcom-sim7080.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17,865 |
```objective-c
/** @file
* @brief Modem command handler header file.
*
* Text-based command handler implementation for modem context driver.
*/
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_CMD_HANDLER_H_
#define ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_CMD_HANDLER_H_
#include <zephyr/kernel.h>
#include "modem... | /content/code_sandbox/drivers/modem/modem_cmd_handler.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,627 |
```c
/** @file
* @brief Modem receiver driver
*
* A modem receiver driver allowing application to handle all
* aspects of received protocol data.
*/
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/pm/device.h>
#include <zephyr/logging/log.h>
LOG_M... | /content/code_sandbox/drivers/modem/modem_receiver.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,358 |
```unknown
# Quectel BG9x driver options
config MODEM_QUECTEL_BG9X
bool "Quectel modem driver"
select MODEM_CONTEXT
select MODEM_CMD_HANDLER
select MODEM_IFACE_UART
select MODEM_SOCKET
select NET_SOCKETS_OFFLOAD
help
Choose this setting to enable quectel BG9x LTE-CatM1/NB-IoT modem
driver.
if MODEM_QUEC... | /content/code_sandbox/drivers/modem/Kconfig.quectel-bg9x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 570 |
```c
/** @file
* @brief Modem context helper driver
*
* A modem context driver allowing application to handle all
* aspects of received protocol data.
*/
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_context, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/kernel.h>
#include "modem_context.h"
... | /content/code_sandbox/drivers/modem/modem_context.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 736 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/shell/shell.h>
#include <zephyr/modem/chat.h>
#include <zephyr/modem/pipelink.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_at_shell, CONFIG_MODEM_LOG_LEVEL);
#define AT_SHELL_MODEM_NODE DT_ALIAS(modem)
#define A... | /content/code_sandbox/drivers/modem/modem_at_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,933 |
```c
/** @file
* @brief interface for modem context
*
* UART-based modem interface implementation for modem context driver.
*/
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_iface_uart, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include "modem_cont... | /content/code_sandbox/drivers/modem/modem_iface_uart_interrupt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,208 |
```unknown
# Simcom sim7080 driver options
config MODEM_SIM7080
bool "Sim7080 Driver"
select MODEM_CONTEXT
select MODEM_CMD_HANDLER
select MODEM_IFACE_UART
select MODEM_SOCKET
select NET_OFFLOAD
select NET_SOCKETS_OFFLOAD
imply GPIO
help
Enables the driver for the Sim7080 modem.
if MODEM_SIM7080
config ... | /content/code_sandbox/drivers/modem/Kconfig.simcom-sim7080 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 453 |
```unknown
config MODEM_CELLULAR
bool "Generic cellular modem support"
select MODEM_MODULES
select MODEM_PPP
select MODEM_CMUX
select MODEM_CHAT
select MODEM_PIPE
select MODEM_PIPELINK
select MODEM_BACKEND_UART
select RING_BUFFER
select NET_L2_PPP_OPTION_MRU
select NET_L2_PPP_PAP
depends on (DT_HAS_QUECTEL... | /content/code_sandbox/drivers/modem/Kconfig.cellular | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 449 |
```c
/*
*
*/
#define DT_DRV_COMPAT wnc_m14a2a
#define LOG_DOMAIN modem_wncm14a2a
#define LOG_LEVEL CONFIG_MODEM_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_DOMAIN);
#include <zephyr/types.h>
#include <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <zephyr/kernel.... | /content/code_sandbox/drivers/modem/wncm14a2a.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13,168 |
```c
/** @file
* @brief Modem command handler for modem context driver
*
* Text-based command handler implementation for modem context driver.
*/
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_cmd_handler, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <stddef.h>
#include <zeph... | /content/code_sandbox/drivers/modem/modem_cmd_handler.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,731 |
```objective-c
/** @file
* @brief Modem interface for UART header file.
*
* Modem interface UART handling for modem context driver.
*/
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_IFACE_UART_H_
#define ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_IFACE_UART_H_
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern ... | /content/code_sandbox/drivers/modem/modem_iface_uart.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 575 |
```c
/*
* Organisation (CSIRO) ABN 41 687 119 230.
*
*/
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include "modem_context.h"
#include "modem_iface_uart.h"
LOG_MODULE_REGISTER(modem_iface_uart_async, CONFIG_MODEM_LOG_LEVEL);
#define RX_BUFFER_SIZE CONFIG_MODEM_IFA... | /content/code_sandbox/drivers/modem/modem_iface_uart_async.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,396 |
```c
/** @file
* @brief Modem socket / packet size handler
*
* Generic modem socket and packet size implementation for modem context
*/
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/fdtable.h>
#include "modem_socket.h"
/*
* Packet Size Support Functions
*/
uint16_t modem_socket_next_packet_size(s... | /content/code_sandbox/drivers/modem/modem_socket.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,260 |
```unknown
# u-blox SARA R4 driver options
config MODEM_UBLOX_SARA
bool "U-blox SARA modem driver"
select MODEM_CONTEXT
select MODEM_CMD_HANDLER
select MODEM_IFACE_UART
select MODEM_SOCKET
select NET_OFFLOAD
select NET_SOCKETS_OFFLOAD
help
Choose this setting to enable u-blox SARA-R4 LTE-CatM1/NB-IoT modem... | /content/code_sandbox/drivers/modem/Kconfig.ublox-sara-r4 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,022 |
```objective-c
/** @file
* @brief Modem context header file.
*
* A modem context driver allowing application to handle all
* aspects of received protocol data.
*/
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_CONTEXT_H_
#define ZEPHYR_INCLUDE_DRIVERS_MODEM_MODEM_CONTEXT_H_
#include <zephyr/kernel.h>
#inc... | /content/code_sandbox/drivers/modem/modem_context.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 698 |
```c
/*
*
*/
#define DT_DRV_COMPAT u_blox_sara_r4
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_ublox_sara_r4, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <ctype.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/... | /content/code_sandbox/drivers/modem/ublox-sara-r4.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17,086 |
```unknown
# Modem configuration options
menuconfig MODEM
bool "Modem drivers"
help
Enable config options for modem drivers.
if MODEM
module = MODEM
module-str = modem
source "subsys/logging/Kconfig.template.log_config"
config MODEM_RECEIVER
bool "Modem receiver helper driver"
depends on SERIAL_SUPPORT_INTE... | /content/code_sandbox/drivers/modem/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,450 |
```unknown
# Sierra Wireless HL7800 modem driver options
menuconfig MODEM_HL7800
bool "Sierra Wireless HL7800 modem driver"
select MODEM_RECEIVER
select NET_OFFLOAD
imply GPIO
help
Choose this setting to enable
Sierra Wireless HL7800 LTE-M/NB-IoT modem driver.
if MODEM_HL7800
config MODEM_HL7800_FW_UPDAT... | /content/code_sandbox/drivers/modem/Kconfig.hl7800 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,464 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/dsp/types.h>
#include <zephyr/logging/log.h>
#include <zephyr/rtio/work.h>
LOG_MODULE_REGISTER(sensor_compat, CONFIG_SENSOR_LOG_LEVEL);
/*
* Ensure that the size of the generic header aligns with the sensor channel specifier . If... | /content/code_sandbox/drivers/sensor/default_rtio_sensor.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,495 |
```c
/*
*
*/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/rtio/rtio.h>
#include <zephyr/shell/shell.h>
#include <zephyr/sys/iterable_sections.h>
#include <zephyr/sys/util.h>
#include "sensor_shel... | /content/code_sandbox/drivers/sensor/sensor_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,157 |
```c
/*
*
*/
#define DT_DRV_COMPAT swir_hl7800
#include <zephyr/logging/log.h>
#include <zephyr/logging/log_ctrl.h>
#define LOG_MODULE_NAME modem_hl7800
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/types.h>
#include <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno... | /content/code_sandbox/drivers/modem/hl7800.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51,085 |
```c
/*
*
*/
#include <zephyr/shell/shell.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
/**
* @brief Collect the values for several channels
*
* @param dev Sensor device to read from
* @param ... any number of pairs of arguments:
* f... | /content/code_sandbox/drivers/sensor/shell_battery.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.