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 espressif_esp32_touch
#include <zephyr/device.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <esp_err.h>
#include <soc/soc_pins.h>
#include <soc/periph_defs.h>
#include <hal/touch_sensor_types.h>
#include <hal/touch_sensor_h... | /content/code_sandbox/drivers/input/input_esp32_touch_sensor.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,178 |
```c
/*
*
*/
#define DT_DRV_COMPAT futaba_sbus
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/input/input.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/time_units.h>
#include <zephyr/sys_clock.h>
#include <zephyr/drivers/u... | /content/code_sandbox/drivers/input/input_sbus.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,014 |
```unknown
menuconfig INPUT_CST816S
bool "CST816S capacitive touch panel driver"
default y
depends on DT_HAS_HYNITRON_CST816S_ENABLED
select I2C
help
Enable driver for hynitron cst816s touch panel.
if INPUT_CST816S
config INPUT_CST816S_PERIOD
int "Sample period"
depends on !INPUT_CST816S_INTERRUPT
default... | /content/code_sandbox/drivers/input/Kconfig.cst816s | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 172 |
```unknown
config INPUT_CHSC6X
bool "Use CHSC6X capacitive touch panel driver"
default y
depends on DT_HAS_CHIPSEMI_CHSC6X_ENABLED
select GPIO
select I2C
help
Enable out of tree driver for CHSC6X touch panel.
``` | /content/code_sandbox/drivers/input/Kconfig.chsc6x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```unknown
menuconfig INPUT_CAP1203
bool "CAP1203 3-cannel capacitive touch sensor driver"
default y
depends on DT_HAS_MICROCHIP_CAP1203_ENABLED
select I2C
help
Enable driver for microchip CAP1203 3-cannel capacitive
touch sensor.
if INPUT_CAP1203
config INPUT_CAP1203_POLL
bool "Polling"
help
Enable ... | /content/code_sandbox/drivers/input/Kconfig.cap1203 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 142 |
```unknown
config INPUT_XPT2046
bool "XPT2046 resistive touch panel driver"
default y
depends on DT_HAS_XPTEK_XPT2046_ENABLED
select SPI
help
Enable driver for Xptek XPT2046 resistive touch panel.
This driver is very similar to ADS7843, but differs on channel numbering.
``` | /content/code_sandbox/drivers/input/Kconfig.xpt2046 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```unknown
# Microchip XEC Keyboard Scan Matrix configuration options
config INPUT_XEC_KBD
bool "Microchip XEC series keyboard matrix driver"
default y
depends on DT_HAS_MICROCHIP_XEC_KBD_ENABLED
select INPUT_KBD_MATRIX
select MULTITHREADING
select PINCTRL
help
Enable the Microchip XEC Kscan IO driver.
``` | /content/code_sandbox/drivers/input/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```unknown
# NPCX Keyboard scan driver configuration options
config INPUT_NPCX_KBD
bool "Nuvoton NPCX embedded controller (EC) keyboard scan driver"
default y
depends on DT_HAS_NUVOTON_NPCX_KBD_ENABLED
select INPUT_KBD_MATRIX
help
This option enables the keyboard scan driver for NPCX family of
processors.
... | /content/code_sandbox/drivers/input/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```unknown
config INPUT_STMPE811
bool "STMPE811 touch driver"
default y
depends on DT_HAS_ST_STMPE811_ENABLED
select I2C
help
Enable driver for STMPE811 touch panel.
``` | /content/code_sandbox/drivers/input/Kconfig.stmpe811 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```c
/*
*/
#define DT_DRV_COMPAT microchip_xec_kbd
#include <cmsis_core.h>
#include <errno.h>
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/input/input.h>
#include <zephyr/input/input_kbd_matrix.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/... | /content/code_sandbox/drivers/input/input_xec_kbd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,013 |
```c
/*
*
*/
#define DT_DRV_COMPAT focaltech_ft5336
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/input/input.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ft5336, CONFIG_IN... | /content/code_sandbox/drivers/input/input_ft5336.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,232 |
```unknown
config INPUT_PMW3610
bool "PMW3610 low power laser mouse sensor input driver"
default y
depends on DT_HAS_PIXART_PMW3610_ENABLED
select SPI
help
PMW3610 low power laser mouse sensor input driver
``` | /content/code_sandbox/drivers/input/Kconfig.pmw3610 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_cap1203
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/input/input.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(cap1203, CONFIG_INPUT_LOG_LEVEL);
#define REG_MAIN_CONTROL 0x0
#define CONTROL_INT 0x1
#define REG_INPUT_STATUS... | /content/code_sandbox/drivers/input/input_cap1203.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,468 |
```unknown
if INPUT
menu "Input drivers"
# zephyr-keep-sorted-start
source "drivers/input/Kconfig.adc_keys"
source "drivers/input/Kconfig.analog_axis"
source "drivers/input/Kconfig.cap1203"
source "drivers/input/Kconfig.cf1133"
source "drivers/input/Kconfig.chsc6x"
source "drivers/input/Kconfig.cst816s"
source "driv... | /content/code_sandbox/drivers/input/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 293 |
```unknown
config NATIVE_LINUX_EVDEV
bool "Native Linux evdev based input device"
default y
depends on DT_HAS_ZEPHYR_NATIVE_LINUX_EVDEV_ENABLED
depends on ARCH_POSIX
depends on MULTITHREADING
help
Enable reading input from a Linux evdev device, requires specifying
an evdev device path in the --evdev comman... | /content/code_sandbox/drivers/input/Kconfig.evdev | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 172 |
```unknown
config INPUT_GPIO_KEYS
bool "GPIO Keys input driver"
default y
depends on DT_HAS_GPIO_KEYS_ENABLED
depends on GPIO
help
Enable support for GPIO Keys input driver.
``` | /content/code_sandbox/drivers/input/Kconfig.gpio_keys | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
config INPUT_SBUS
bool "SBUS driver"
default y
depends on DT_HAS_FUTABA_SBUS_ENABLED
depends on UART_INTERRUPT_DRIVEN
select UART_USE_RUNTIME_CONFIGURE
help
Enable driver for SBUS Remote controller.
if INPUT_SBUS
config INPUT_SBUS_THREAD_STACK_SIZE
int "Stack size for the sbus thread"
default 1... | /content/code_sandbox/drivers/input/Kconfig.sbus | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 343 |
```unknown
config INPUT_ANALOG_AXIS
bool "ADC based analog axis input driver"
default y
depends on DT_HAS_ANALOG_AXIS_ENABLED
depends on MULTITHREADING
select ADC
help
ADC based analog axis input driver
if INPUT_ANALOG_AXIS
config INPUT_ANALOG_AXIS_THREAD_STACK_SIZE
int "Stack size for the analog axis thre... | /content/code_sandbox/drivers/input/Kconfig.analog_axis | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 229 |
```unknown
config INPUT_KBD_MATRIX
bool
depends on MULTITHREADING
help
Enable library used for keyboard matrix drivers.
if INPUT_KBD_MATRIX
config INPUT_KBD_MATRIX_THREAD_STACK_SIZE
int "Stack size for the keyboard matrix thread"
default 1024
help
Size of the stack used for the keyboard matrix thread.
... | /content/code_sandbox/drivers/input/Kconfig.kbd_matrix | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 383 |
```unknown
config INPUT_PAT912X
bool "PAT912X miniature optical navigation chip input driver"
default y
depends on DT_HAS_PIXART_PAT912X_ENABLED
select I2C
help
PAT912X miniature optical navigation chip input driver
``` | /content/code_sandbox/drivers/input/Kconfig.pat912x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
#include <errno.h>
#include <fcntl.h>
#include <linux/input.h>
#include <nsi_tracing.h>
#include <string.h>
#include <unistd.h>
#include "linux_evdev_bottom.h"
int linux_evdev_read(int fd, uint16_t *type, uint16_t *code, int32_t *value)
{
struct input_event ev;
int ret;
ret = read(fd, &ev, sizeof(... | /content/code_sandbox/drivers/input/linux_evdev_bottom.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 287 |
```c
/*
*
*/
#define DT_DRV_COMPAT gpio_qdec
#include <stdint.h>
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/sys/atomic.h>
#include <ze... | /content/code_sandbox/drivers/input/input_gpio_qdec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,150 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_native_linux_evdev
#include <cmdline.h>
#include <nsi_host_trampolines.h>
#include <posix_native_task.h>
#include <zephyr/device.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "linux_evdev... | /content/code_sandbox/drivers/input/linux_evdev.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 839 |
```unknown
# USB-C configuration options
source "drivers/usb_c/tcpc/Kconfig"
source "drivers/usb_c/vbus/Kconfig"
source "drivers/usb_c/ppc/Kconfig"
``` | /content/code_sandbox/drivers/usb_c/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 41 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_ppc
#include <zephyr/kernel.h>
#include <zephyr/drivers/usb_c/usbc_ppc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/pinctrl.h>
#include <zeph... | /content/code_sandbox/drivers/usb_c/ppc/usbc_ppc_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,659 |
```unknown
# NXP NX20P3483 Configuration menu
config USBC_PPC_NX20P3483
bool "NXP NX20P3483 support"
default y
depends on DT_HAS_NXP_NX20P3483_ENABLED
help
Enable USB-C PPC support for NXP nx20p3483 chip
if USBC_PPC_NX20P3483
config USBC_PPC_NX20P3483_DUMP_FULL_REG_NAMES
bool "Dump full register names"
hel... | /content/code_sandbox/drivers/usb_c/ppc/Kconfig.nxp | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 121 |
```c
/*
*
*/
#define DT_DRV_COMPAT gpio_kbd_matrix
#include <stdint.h>
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/input/input_kbd_matrix.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(input_gpio_k... | /content/code_sandbox/drivers/input/input_gpio_kbd_matrix.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,741 |
```c
/*
*/
#include <zephyr/device.h>
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/usb_c/usbc_ppc.h>
/** Macro used to iterate over USB-C connector and call a function if the node has PPC property */
#define CALL_IF_HAS_PPC(usb_node, func) \
CON... | /content/code_sandbox/drivers/usb_c/ppc/shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,021 |
```unknown
# Nuvoton NuMaker USB-C PPC device configuration options
config USBC_PPC_NUMAKER
bool "Nuvoton NuMaker USB-C PPC"
default y
depends on DT_HAS_NUVOTON_NUMAKER_PPC_ENABLED && USBC_TCPC_NUMAKER
help
Enable USB-C PPC support for Nuvoton NuMaker chip with UTCPD.
``` | /content/code_sandbox/drivers/usb_c/ppc/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```unknown
# Power path controllers configuration options
menuconfig USBC_PPC_DRIVER
bool "USB-C PPC drivers"
help
Enable USB-C Power Path Controllers support
if USBC_PPC_DRIVER
config USBC_PPC_INIT_PRIORITY
int "USBC PPC driver init priority"
default 82
help
Initialization priority of the USB-C PPC driv... | /content/code_sandbox/drivers/usb_c/ppc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```objective-c
/*
*/
/**
* @file
* @brief NX20P3483 PPC registers definitions
*/
#ifndef ZEPHYR_DRIVERS_USBC_PPC_NXP_NX20P3483_PRIV_H_
#define ZEPHYR_DRIVERS_USBC_PPC_NXP_NX20P3483_PRIV_H_
#include<zephyr/dt-bindings/usb-c/nxp_nx20p3483.h>
/** Register address - device id */
#define NX20P3483_REG_DEVICE_ID 0x00... | /content/code_sandbox/drivers/usb_c/ppc/nxp_nx20p3483_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,377 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_USBC_DEVICE_UCPD_STM32_PRIV_H_
#define ZEPHYR_DRIVERS_USBC_DEVICE_UCPD_STM32_PRIV_H_
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/usb_c/usbc_tcpc.h>
#include <zephyr/drivers/pinctrl.h>
#include <stm32_ll_ucpd.h>
/**
* @brief The pac... | /content/code_sandbox/drivers/usb_c/tcpc/ucpd_stm32_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,301 |
```c
/*
*/
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/usb_c/usbc_ppc.h>
#include "nxp_nx20p3483_priv.h"
#define DT_DRV_COMPAT nxp_nx20p3483
LOG_MODULE_REGISTER(nxp_nx20p3483, CON... | /content/code_sandbox/drivers/usb_c/ppc/nxp_nx20p3483.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,008 |
```c
/*
*/
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
#include <zephyr/usb_c/usbc.h>
#include <zephyr/shell/shell.h>
/** Macro used to call the dump_std_reg function from the TCPC device pointer */
#define TCPC_DUMP_DEV(dev) ret |= tcpc_dump_std_reg(dev);
/** Macro used to call the dump_std_reg func... | /content/code_sandbox/drivers/usb_c/tcpc/shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,266 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_ucpd
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ucpd_stm32, CONFIG_USBC_LOG_LEVEL);
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <stddef.h>
#include <zephyr/math/ilog2.h>
#include <stm32_ll_system.h... | /content/code_sandbox/drivers/usb_c/tcpc/ucpd_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12,358 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_USBC_TCPC_UCPD_NUMAKER_H_
#define ZEPHYR_DRIVERS_USBC_TCPC_UCPD_NUMAKER_H_
#include <zephyr/drivers/usb_c/usbc_ppc.h>
#include <zephyr/drivers/usb_c/usbc_vbus.h>
/* TCPC exported for PPC */
int numaker_tcpc_ppc_is_dead_battery_mode(const struct device *dev);
int numake... | /content/code_sandbox/drivers/usb_c/tcpc/ucpd_numaker.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 369 |
```unknown
# USB-C STM32 TCPC device configuration options
config USBC_TCPC_STM32
bool "USB-C TCPC device controller driver"
default y
depends on DT_HAS_ST_STM32_UCPD_ENABLED
select USE_STM32_LL_UCPD
help
Enable USB-C TCPC support on the STM32 G0, G4, L5, and U5 family of
processors.
``` | /content/code_sandbox/drivers/usb_c/tcpc/Kconfig.tcpc_stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```unknown
# Nuvoton NuMaker USB-C TCPC device configuration options
config USBC_TCPC_NUMAKER
bool "Nuvoton NuMaker USB-C TCPC device controller driver"
default y
select HAS_NUMAKER_ADC
select HAS_NUMAKER_TMR
depends on DT_HAS_NUVOTON_NUMAKER_TCPC_ENABLED
help
Enable USB-C TCPC support for Nuvoton NuMaker ch... | /content/code_sandbox/drivers/usb_c/tcpc/Kconfig.tcpc_numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```unknown
# USBC TCPC configuration options
menuconfig USBC_TCPC_DRIVER
bool "USB-C TCPC drivers"
help
Enable USB TypeC Port Controller (TCPC) drivers
if USBC_TCPC_DRIVER
config USBC_TCPC_INIT_PRIORITY
int "USB-C TCPC driver init priority"
default 80
help
USB-C device driver initialization priority.
... | /content/code_sandbox/drivers/usb_c/tcpc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 232 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_vbus
#include <zephyr/kernel.h>
#include <zephyr/drivers/usb_c/usbc_vbus.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/pinctrl.h>
#include <ze... | /content/code_sandbox/drivers/usb_c/vbus/usbc_vbus_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 911 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_USBC_VBUS_ADC_PRIV_H_
#define ZEPHYR_DRIVERS_USBC_VBUS_ADC_PRIV_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/adc.h>
/**
* @brief Driver config
*/
struct usbc_vbus_config {
uint32_t output_ohm;
uint32_t full_ohm;
struct adc_dt_spec adc_channel;
con... | /content/code_sandbox/drivers/usb_c/vbus/usbc_vbus_adc_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 151 |
```unknown
# Nuvoton NuMaker USB-C VBUS device configuration options
config USBC_VBUS_NUMAKER
bool "Nuvoton NuMaker USB-C VBUS"
default y
depends on DT_HAS_NUVOTON_NUMAKER_VBUS_ENABLED && USBC_TCPC_NUMAKER
help
Enable USB-C VBUS support for Nuvoton NuMaker chip with UTCPD.
``` | /content/code_sandbox/drivers/usb_c/vbus/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_tcpc
#include <zephyr/kernel.h>
#include <zephyr/drivers/usb_c/usbc_tcpc.h>
#include <zephyr/drivers/usb_c/usbc_ppc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/reset.h>
#inclu... | /content/code_sandbox/drivers/usb_c/tcpc/ucpd_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22,540 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_usb_c_vbus_adc
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(usbc_vbus_adc, CONFIG_USBC_LOG_LEVEL);
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/usb_c/usbc_pd.h>
#include <... | /content/code_sandbox/drivers/usb_c/vbus/usbc_vbus_adc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,609 |
```unknown
# USB-C VBUS device configuration options
config USBC_VBUS_ADC
bool "USB-C VBUS ADC"
default y
depends on DT_HAS_ZEPHYR_USB_C_VBUS_ADC_ENABLED
help
Measure VBUS with an ADC through a voltage divider
``` | /content/code_sandbox/drivers/usb_c/vbus/Kconfig.usbc_vbus_adc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```unknown
# USB-C VBUS Measurement configuration options
menuconfig USBC_VBUS_DRIVER
bool "USB-C VBUS drivers"
help
Enable USB-C drivers
if USBC_VBUS_DRIVER
config USBC_VBUS_INIT_PRIORITY
int "USB-C VBUS driver init priority"
default 85
help
Initialization priority of the USB-C VBUS measurement drivers ... | /content/code_sandbox/drivers/usb_c/vbus/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 139 |
```unknown
config MIPI_DBI_NXP_LCDIC
bool "NXP MIPI DBI LCDIC driver"
default y
depends on DT_HAS_NXP_LCDIC_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable support for NXP SPI LCDIC display controller driver
if MIPI_DBI_NXP_LCDIC
config MIPI_DBI_NXP_LCDIC_DMA
bool "Use DMA for transfers with LC... | /content/code_sandbox/drivers/mipi_dbi/Kconfig.nxp_lcdic | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 135 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_mipi_dbi_spi
#include <zephyr/drivers/mipi_dbi.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mipi_dbi_spi, CONFIG_MIPI_DBI_LOG_LEVEL);
struct mipi_dbi_spi_config {
/* SPI hardware used to send data... | /content/code_sandbox/drivers/mipi_dbi/mipi_dbi_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,736 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_fmc_mipi_dbi
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/mipi_dbi.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/sys/barrier.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.... | /content/code_sandbox/drivers/mipi_dbi/mipi_dbi_stm32_fmc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,722 |
```unknown
config MIPI_DBI_SPI
bool "MIPI DBI SPI driver"
default y
depends on DT_HAS_ZEPHYR_MIPI_DBI_SPI_ENABLED
select SPI
help
Enable support for MIPI DBI SPI driver. This driver implements
a MIPI-DBI mode C compatible controller using a SPI device, as well
as GPIO outputs for the reset and D/C signal... | /content/code_sandbox/drivers/mipi_dbi/Kconfig.spi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 174 |
```unknown
# Smartbond MIPI DBI host configuration options
config MIPI_DBI_SMARTBOND
bool "Smartbond MIPI DBI host controller driver"
depends on DT_HAS_RENESAS_SMARTBOND_MIPI_DBI_ENABLED
default y
help
Enable Smartbond MIPI DBI host controller.
``` | /content/code_sandbox/drivers/mipi_dbi/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
config MIPI_DBI_STM32_FMC
bool "MIPI DBI driver for STM32 FMC"
default y
depends on DT_HAS_ST_STM32_FMC_MIPI_DBI_ENABLED
select MEMC
help
Enable support for MIPI DBI driver for controller based on the stm32 FMC.
if MIPI_DBI_STM32_FMC
config MIPI_DBI_STM32_FMC_MEM_BARRIER
bool "Adds memory barrier... | /content/code_sandbox/drivers/mipi_dbi/Kconfig.stm32_fmc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 124 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lcdic
#include <zephyr/drivers/mipi_dbi.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/logging/log.h>
#include <soc.h>
#include <zephyr/drivers/dma/dma_mcux_lpc.h... | /content/code_sandbox/drivers/mipi_dbi/mipi_dbi_nxp_lcdic.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,954 |
```unknown
# MIPI DBI controller options
menuconfig MIPI_DBI
bool "MIPI-DBI Host Controller drivers [EXPERIMENTAL]"
select EXPERIMENTAL
help
Add support for MIPI-DBI compliant host controllers
if MIPI_DBI
module = MIPI_DBI
module-str = mipi_dbi
source "subsys/logging/Kconfig.template.log_config"
config MIPI_... | /content/code_sandbox/drivers/mipi_dbi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 185 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_mipi_dbi_flexio_lcdif
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/display.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/mipi_dbi.h>
#include <zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
#include <zephyr/kernel.h>... | /content/code_sandbox/drivers/mipi_dbi/mipi_dbi_nxp_flexio_lcdif.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,312 |
```unknown
config MIPI_DBI_NXP_FLEXIO_LCDIF
bool "MIPI DBI driver for NXP Flexio LCDIF"
default y
depends on DT_HAS_NXP_MIPI_DBI_FLEXIO_LCDIF_ENABLED
depends on CLOCK_CONTROL
select MCUX_FLEXIO
select DMA
help
Enable support for MIPI DBI driver for NXP FlexIO based LCDIF controller.
``` | /content/code_sandbox/drivers/mipi_dbi/Kconfig.nxp_flexio_lcdif | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SMBUS_SMBUS_UTILS_H_
#define ZEPHYR_DRIVERS_SMBUS_SMBUS_UTILS_H_
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/drivers/smbus.h>
#include <zephyr/sys/slist.h>
/**
* @brief Generic function to insert a callback to a callback list
*
* @param callbacks... | /content/code_sandbox/drivers/smbus/smbus_utils.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 726 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_smartbond_mipi_dbi
#include <zephyr/drivers/mipi_dbi.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
#include ... | /content/code_sandbox/drivers/mipi_dbi/mipi_dbi_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,876 |
```c
/*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c/stm32.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/smbus.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <soc.h>
#include "smbus_utils.h"
LOG... | /content/code_sandbox/drivers/smbus/smbus_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,511 |
```c
/*
*/
#include "smbus_utils.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(smbus_utils, CONFIG_SMBUS_LOG_LEVEL);
void smbus_loop_alert_devices(const struct device *dev, sys_slist_t *callbacks)
{
int result;
uint8_t address;
/**
* There might be several peripheral devices which could have trigger... | /content/code_sandbox/drivers/smbus/smbus_utils.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 328 |
```c
/*
*
*/
#include <zephyr/sys/slist.h>
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/smbus.h>
static inline int z_vrfy_smbus_configure(const struct device *dev,
uint32_t dev_config)
{
K_OOPS(K_SYSCALL_DRIVER_SMBUS(dev, configure));
return z_impl_smbus_configure(dev, dev_config);... | /content/code_sandbox/drivers/smbus/smbus_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,464 |
```objective-c
/*
*
* Intel I/O Controller Hub (ICH) later renamed to Intel Platform Controller
* Hub (PCH) SMBus driver.
*
* PCH provides SMBus 2.0 - compliant Host Controller.
*
*/
#ifndef ZEPHYR_DRIVERS_SMBUS_PCH_H_
#define ZEPHYR_DRIVERS_SMBUS_PCH_H_
/* PCI Configuration Space registers */
/* Host Configu... | /content/code_sandbox/drivers/smbus/intel_pch_smbus.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,892 |
```c
/*
*
* Intel I/O Controller Hub (ICH) later renamed to Intel Platform Controller
* Hub (PCH) SMBus driver.
*
* PCH provides SMBus 2.0 - compliant Host Controller.
*
*/
#include <zephyr/types.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/smbus.h>
#include <zephyr/drivers... | /content/code_sandbox/drivers/smbus/intel_pch_smbus.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,711 |
```unknown
# SMBus configuration options
menuconfig SMBUS
bool "System Management Bus (SMBus) drivers"
help
Enable SMBus Driver Configuration
if SMBUS
config SMBUS_SHELL
bool "SMBus Shell"
depends on SHELL
help
Enable SMBus Shell.
config SMBUS_STATS
bool "SMBus device Stats"
depends on STATS
help
... | /content/code_sandbox/drivers/smbus/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 537 |
```c
/*
*
*/
#include <stdlib.h>
#include <errno.h>
#include <zephyr/sys/slist.h>
#include <zephyr/drivers/smbus.h>
#include <zephyr/shell/shell.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(smbus_shell, CONFIG_LOG_DEFAULT_LEVEL);
/**
* smbus_shell is a highly modified version from i2c_shell. Basically o... | /content/code_sandbox/drivers/smbus/smbus_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,262 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_ps2_ctrl
/**
* @file
* @brief Nuvoton NPCX PS/2 module (controller) driver
*
* This file contains the driver of PS/2 module (controller) which provides a
* hardware accelerator mechanism to handle both incoming and outgoing data.
* The hardware accelerator mecha... | /content/code_sandbox/drivers/ps2/ps2_npcx_controller.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,166 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_PS2_PS2_NPCX_CONTROLLER_H_
#define ZEPHYR_DRIVERS_PS2_PS2_NPCX_CONTROLLER_H_
#include <zephyr/device.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Write @p value to a PS/2 device via the PS/2 controller.
*
* @param dev Pointer to the device structure for P... | /content/code_sandbox/drivers/ps2/ps2_npcx_controller.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 433 |
```unknown
# Microchip XEC PS2 configuration options
config PS2_XEC
bool "XEC Microchip PS2 driver"
depends on SOC_FAMILY_MICROCHIP_MEC && ESPI_PERIPHERAL_8042_KBC
select PINCTRL
help
Enable the Microchip XEC PS2 IO driver. The driver also
depends on the KBC 8042 keyboard controller. Note, MEC15xx
series... | /content/code_sandbox/drivers/ps2/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```unknown
# NPCX PS2 configuration options
menuconfig PS2_NPCX
bool "Nuvoton NPCX embedded controller (EC) PS2 driver"
depends on DT_HAS_NUVOTON_NPCX_PS2_CHANNEL_ENABLED
default y
help
Enable the NPCX family PS2 driver. It provides four PS/2 channels.
Each channel has two quasi-bidirectional signals that s... | /content/code_sandbox/drivers/ps2/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 199 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_ps2_channel
/**
* @file
* @brief Nuvoton NPCX PS/2 driver
*
* This file contains the driver of PS/2 buses (channels) which provides the
* connection between Zephyr PS/2 API functions and NPCX PS/2 controller driver
* to support PS/2 transactions.
*
*/
#includ... | /content/code_sandbox/drivers/ps2/ps2_npcx_channel.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 916 |
```unknown
# PS/2 configuration options
menuconfig PS2
bool "PS/2 drivers"
help
Include PS/2 drivers in system config.
if PS2
source "drivers/ps2/Kconfig.xec"
source "drivers/ps2/Kconfig.npcx"
module = PS2
module-str = ps2
source "subsys/logging/Kconfig.template.log_config"
config PS2_INIT_PRIORITY
int "PS/... | /content/code_sandbox/drivers/ps2/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 133 |
```c
/*
*
*/
#include <zephyr/drivers/ps2.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_ps2_config(const struct device *dev,
ps2_callback_t callback_isr)
{
K_OOPS(K_SYSCALL_DRIVER_PS2(dev, config));
K_OOPS(K_SYSCALL_VERIFY_MSG(callback_isr == NULL,
"callback not be set f... | /content/code_sandbox/drivers/ps2/ps2_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 368 |
```objective-c
/**
*
*/
#ifndef __DRIVERS_NET_NSOS_NETDB_H__
#define __DRIVERS_NET_NSOS_NETDB_H__
enum nsos_resolve_status {
/** Invalid value for `ai_flags' field */
NSOS_MID_EAI_BADFLAGS = -1,
/** NAME or SERVICE is unknown */
NSOS_MID_EAI_NONAME = -2,
/** Temporary failure in name resolution */
NSO... | /content/code_sandbox/drivers/net/nsos_netdb.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 283 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_ps2
#include <cmsis_core.h>
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#ifdef CONFIG_SOC_SERIES_MEC172X
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ecia.h>
... | /content/code_sandbox/drivers/ps2/ps2_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,700 |
```c
/**
*
*/
/**
* @file
*
* fcntl.h related code common to Zephyr (top: nsos_sockets.c) and Linux
* (bottom: nsos_adapt.c).
*
* It is needed by both sides to share the same macro definitions/values
* (prefixed with NSOS_MID_), which is not possible to achieve with two separate
* standard libc libraries, si... | /content/code_sandbox/drivers/net/nsos_fcntl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 506 |
```objective-c
/**
*
*/
#ifndef __DRIVERS_NET_NSOS_H__
#define __DRIVERS_NET_NSOS_H__
#include <stddef.h>
#include <stdint.h>
/* Protocol families. */
#define NSOS_MID_PF_UNSPEC 0 /**< Unspecified protocol family. */
#define NSOS_MID_PF_INET 1 /**< IP protocol family version 4. */
... | /content/code_sandbox/drivers/net/nsos.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,383 |
```c
/**
*
*
* netdb.h related code common to Zephyr (top: nsos_sockets.c) and Linux
* (bottom: nsos_adapt.c).
*
* It is needed by both sides to share the same macro definitions/values
* (prefixed with NSOS_MID_), which is not possible to achieve with two separate
* standard libc libraries, since they use diffe... | /content/code_sandbox/drivers/net/nsos_netdb.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 389 |
```objective-c
/**
*
*/
#ifndef __DRIVERS_NET_NSOS_ERRNO_H__
#define __DRIVERS_NET_NSOS_ERRNO_H__
#include <errno.h>
#define NSOS_MID_EPERM 1 /**< Not owner */
#define NSOS_MID_ENOENT 2 /**< No such file or directory */
#define NSOS_MID_ESRCH 3 /**< No such context */
#define NSOS_MID_EINTR ... | /content/code_sandbox/drivers/net/nsos_errno.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,367 |
```c
/*
*
*
*/
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/canbus.h>
#include <zephyr/net/socketcan.h>
#include <zephyr/drivers/can.h>
#include <zephyr/devicetree.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(net_canbus, CONFIG_NET_CANBUS_LOG_LEVEL);
#define SEND_TIMEO... | /content/code_sandbox/drivers/net/canbus.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,041 |
```c
/**
*
*/
/**
* @file
*
* Zephyr (top) side of NSOS (Native Simulator Offloaded Sockets).
*/
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nsos_sockets);
#include <soc.h>
#include <string.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/... | /content/code_sandbox/drivers/net/nsos_sockets.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,244 |
```objective-c
/*
*
*/
#include <stdbool.h>
#include <zephyr/device.h>
#include <zephyr/net/buf.h>
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/net_if.h>
#if defined(CONFIG_SLIP_TAP)
#define _SLIP_MTU 1500
#else
#define _SLIP_MTU 576
#endif /* CONFIG_SLIP_TAP */
struct slip_context {
bool init_done;
boo... | /content/code_sandbox/drivers/net/slip.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 280 |
```c
/*
*
*/
/**
* @file
*
* SLIP driver using uart_pipe. This is meant for network connectivity between
* host and qemu. The host will need to run tunslip process.
*/
#define LOG_MODULE_NAME slip
#define LOG_LEVEL CONFIG_SLIP_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#i... | /content/code_sandbox/drivers/net/slip.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,666 |
```c
/**
*
*/
/**
* @file
*
* Linux (bottom) side of NSOS (Native Simulator Offloaded Sockets).
*/
#define _DEFAULT_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <poll.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#... | /content/code_sandbox/drivers/net/nsos_adapt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,759 |
```c
/*
*
*/
/**
* @file
*
* Network loopback interface implementation.
*/
#define LOG_MODULE_NAME netlo
#define LOG_LEVEL CONFIG_NET_LOOPBACK_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/buf.h>
#include <zephyr/net/net_ip... | /content/code_sandbox/drivers/net/loopback.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,075 |
```objective-c
/**
*
*/
#ifndef __DRIVERS_NET_NSOS_SOCKET_H__
#define __DRIVERS_NET_NSOS_SOCKET_H__
#include <stdint.h>
/**
* @name Socket level options (NSOS_MID_SOL_SOCKET)
* @{
*/
/** Socket-level option */
#define NSOS_MID_SOL_SOCKET 1
/* Socket options for NSOS_MID_SOL_SOCKET level */
/** Recording debug... | /content/code_sandbox/drivers/net/nsos_socket.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 946 |
```unknown
# Misc network drivers configuration options
menuconfig NET_DRIVERS
bool "Network drivers"
if NET_DRIVERS
#
# PPP options
#
menuconfig NET_PPP
bool "Point-to-point (PPP) UART based driver"
depends on NET_L2_PPP
depends on NET_NATIVE
select RING_BUFFER
select CRC
if NET_PPP
config NET_PPP_ASYNC_UAR... | /content/code_sandbox/drivers/net/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,716 |
```c
/**
*
*/
#include "nsos_errno.h"
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif
struct nsos_mid_errno_map {
/** Zephyr/host error code */
int err;
/** NSOS middleground error code */
int mid_err;
};
#define ERR(_name) \
{ _name, NSOS_MID_ ## _name }
static c... | /content/code_sandbox/drivers/net/nsos_errno.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 654 |
```objective-c
/**
*
*/
#ifndef __DRIVERS_NET_NSOS_FCNTL_H__
#define __DRIVERS_NET_NSOS_FCNTL_H__
#define NSOS_MID_O_RDONLY 00
#define NSOS_MID_O_WRONLY 01
#define NSOS_MID_O_RDWR 02
#define NSOS_MID_O_APPEND 0x0400
#define NSOS_MID_O_EXCL 0x0800
#define NSOS_MID_O_NONBLOCK 0x4000
int fl_to_nsos_mid(int flags);... | /content/code_sandbox/drivers/net/nsos_fcntl.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 144 |
```unknown
# FPGA Microchip PolarFire SOC driver configuration options
config MPFS_FPGA
bool "Microchip PolarFire SOC FPGA driver"
depends on SPI
help
Enable support for the Microchip PolarFire SOC FPGA driver.
``` | /content/code_sandbox/drivers/fpga/Kconfig.mpfs | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_FPGA_EOS_S3_H_
#define ZEPHYR_DRIVERS_FPGA_EOS_S3_H_
#include <eoss3_dev.h>
struct PIF_struct {
/* Fabric Configuration Control Register, offset: 0x000 */
__IO uint32_t CFG_CTL;
/* Maximum Bit Length Count, offset: 0x004 */
__IO uint32_t MAX_BL_CNT;
/* Maximum Wor... | /content/code_sandbox/drivers/fpga/fpga_eos_s3.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 845 |
```c
/*
*
*/
#include <zephyr/sys/printk.h>
#include <zephyr/shell/shell.h>
#include <zephyr/version.h>
#include <stdlib.h>
#include <zephyr/drivers/fpga.h>
static int parse_common_args(const struct shell *sh, char **argv,
const struct device **dev)
{
*dev = device_get_binding(argv[1]);
if (!*dev) {
she... | /content/code_sandbox/drivers/fpga/fpga_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 878 |
```c
/*
*
*/
#define DT_DRV_COMPAT altr_socfpga_agilex_bridge
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/sip_svc/sip_svc.h>
#include <zephyr/drivers/sip_svc/sip_svc_agilex_smc.h>
#include <zephyr/drivers/fpga.h>
#include <zephyr/logging/log.h>
#include "fpga_altera_agilex_bridge.h"
LOG_MODULE_R... | /content/code_sandbox/drivers/fpga/fpga_altera_agilex_bridge.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,453 |
```unknown
config ICE40_FPGA
bool "Lattice iCE40 fpga driver [EXPERIMENTAL]"
select EXPERIMENTAL
imply CRC
depends on SPI
help
Enable support for the Lattice iCE40 fpga driver.
``` | /content/code_sandbox/drivers/fpga/Kconfig.ice40 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```unknown
# FPGA ALTERA driver configuration options
config ALTERA_AGILEX_BRIDGE_FPGA
bool "ALTERA fpga driver"
depends on ARM_SIP_SVC_SUBSYS
help
Enable ALTERA FPGA driver.
``` | /content/code_sandbox/drivers/fpga/Kconfig.altera_agilex_bridge | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```c
/*
*
*/
/**
* @file
*
* PPP driver using uart_pipe. This is meant for network connectivity between
* two network end points.
*/
#define LOG_LEVEL CONFIG_NET_PPP_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(net_ppp, LOG_LEVEL);
#include <stdio.h>
#include <zephyr/kernel.h>
#include <std... | /content/code_sandbox/drivers/net/ppp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,181 |
```c
/*
*
*/
#define DT_DRV_COMPAT xlnx_fpga
#include <zephyr/device.h>
#include <zephyr/drivers/fpga.h>
#include "fpga_zynqmp.h"
#include <errno.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#include <stdlib.h>
#include <stdio.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(fpga_zynqmp);
static... | /content/code_sandbox/drivers/fpga/fpga_zynqmp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,003 |
```unknown
# FPGA ZYNQMP driver configuration options
config ZYNQMP_FPGA
bool "ZYNQMP fpga driver"
help
Enable ZYNQMP FPGA driver.
``` | /content/code_sandbox/drivers/fpga/Kconfig.zynqmp | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 40 |
```unknown
# FPGA EOS S3 driver configuration options
config EOS_S3_FPGA
bool "EOS S3 fpga driver"
help
Enable EOS S3 FPGA driver.
``` | /content/code_sandbox/drivers/fpga/Kconfig.eos_s3 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```unknown
# FPGA driver configuration options
menuconfig FPGA
bool "Field-Programmable Gate Array (FPGA) drivers"
help
Enable support for FPGA drivers.
if FPGA
module = fpga
module-str = fpga
source "subsys/logging/Kconfig.template.log_config"
config FPGA_INIT_PRIORITY
int "Init priority"
default 75
help
... | /content/code_sandbox/drivers/fpga/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 173 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_SUBSYS_FPGA_BRIDGE_INTEL_H_
#define ZEPHYR_SUBSYS_FPGA_BRIDGE_INTEL_H_
#include <zephyr/kernel.h>
/* Mask for FPGA-HPS bridges */
#define BRIDGE_MASK 0x0F
/* Mailbox command header index */
#define MBOX_CMD_HEADER_INDEX 0x00
/* Mailbox command memory size */
#define ... | /content/code_sandbox/drivers/fpga/fpga_altera_agilex_bridge.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,668 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.