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
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SERIAL_UART_S32_LINFLEXD_H_
#define ZEPHYR_DRIVERS_SERIAL_UART_S32_LINFLEXD_H_
struct uart_nxp_s32_config {
uint32_t instance;
LINFLEXD_Type *base;
const struct pinctrl_dev_config *pincfg;
Linflexd_Uart_Ip_UserConfigType hw_cfg;
};
#ifdef CONFIG_UART_INTERRUPT_DRIV... | /content/code_sandbox/drivers/serial/uart_nxp_s32_linflexd.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 231 |
```unknown
# Atmel SAM USART configuration options
config USART_SAM
bool "Atmel SAM MCU family USART driver"
default y
depends on DT_HAS_ATMEL_SAM_USART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the USARTx driver for Atmel SAM MCUs.
``` | /content/code_sandbox/drivers/serial/Kconfig.usart_sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SERIAL_UART_PL011_REGISTERS_H_
#define ZEPHYR_DRIVERS_SERIAL_UART_PL011_REGISTERS_H_
#include <zephyr/device.h>
/*
* UART PL011 register map structure
*/
struct pl011_regs {
uint32_t dr; /* data register */
union {
uint32_t rsr;
uint32_t ecr;
};
uint32_t re... | /content/code_sandbox/drivers/serial/uart_pl011_registers.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,736 |
```c
/*
*
*/
#define DT_DRV_COMPAT neorv32_uart
#include <zephyr/device.h>
#include <zephyr/drivers/syscon.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include <soc.h>
LOG_MODULE_REGISTER(uart_neorv32, CON... | /content/code_sandbox/drivers/serial/uart_neorv32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,073 |
```c
/*
*
*/
#include <zephyr/drivers/uart.h>
#include <zephyr/internal/syscall_handler.h>
#define UART_SIMPLE(op_) \
static inline int z_vrfy_uart_##op_(const struct device *dev) \
{ \
K_OOPS(K_SYSCALL_DRIVER_UART(dev, op_)); \
return z_impl_uart_ ## op_(dev); \
}
#define UART_SIMPLE_VOID(op_) \
sta... | /content/code_sandbox/drivers/serial/uart_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,600 |
```unknown
# iMX7 M4 UART
config UART_IMX
bool "NXP i.MX7 family processor UART driver"
default y
depends on DT_HAS_NXP_IMX_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the UART driver for NXP i.MX7
family processors.
``` | /content/code_sandbox/drivers/serial/Kconfig.imx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```unknown
config UART_APBUART
bool "ABPUART serial driver"
default y
depends on DT_HAS_GAISLER_APBUART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the APBUART driver for LEON processors.
``` | /content/code_sandbox/drivers/serial/Kconfig.apbuart | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```unknown
config UART_ALTERA_JTAG
bool "Nios II/NiosV JTAG UART driver"
default y
depends on DT_HAS_ALTR_JTAG_UART_ENABLED
select SERIAL_HAS_DRIVER
help
Enable the Altera JTAG UART driver, built in to many Nios II/NiosV CPU
designs.
config UART_ALTERA_JTAG_HAL
bool "JTAG UART driver using Altera HAL API"... | /content/code_sandbox/drivers/serial/Kconfig.altera_jtag | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 214 |
```unknown
menuconfig UART_NS16550
bool "NS16550 serial driver"
default y
depends on DT_HAS_NS16550_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the NS16550 serial driver.
This driver can be used for the serial hardware
available on x86 boards.
if UART_NS165... | /content/code_sandbox/drivers/serial/Kconfig.ns16550 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 758 |
```unknown
# Serial driver configuration options
menuconfig SERIAL
bool "Serial drivers"
help
Enable options for serial drivers.
if SERIAL
comment "Capabilities"
config SERIAL_HAS_DRIVER
bool
help
This is an option to be enabled by individual serial driver
to signal that there is a serial driver. This... | /content/code_sandbox/drivers/serial/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,549 |
```unknown
# MCUXpresso SDK USART
config UART_MCUX_FLEXCOMM
bool "MCUX FLEXCOMM UART driver"
default y
depends on DT_HAS_NXP_LPC_USART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC if \
DT_HAS_NXP_LPC_DMA_ENABLED
select DMA if UART_ASYNC_API
select PINCTRL
help... | /content/code_sandbox/drivers/serial/Kconfig.mcux_flexcomm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 132 |
```unknown
config UART_CC32XX
bool "CC32XX UART driver"
default y
depends on DT_HAS_TI_CC32XX_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select PINCTRL
help
This option enables the CC32XX UART driver, for UART_0.
``` | /content/code_sandbox/drivers/serial/Kconfig.cc32xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```unknown
config UART_EFINIX_SAPPIHIRE
bool "EFINIX_SAPPIHIRE serial driver"
default y
depends on DT_HAS_EFINIX_SAPPHIRE_UART0_ENABLED
select SERIAL_HAS_DRIVER
help
This option enables Efinix sapphire serial driver.
``` | /content/code_sandbox/drivers/serial/Kconfig.efinix_sapphire | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
# MCUXpresso SDK LPUART
config UART_MCUX_LPUART
bool "MCUX LPUART driver"
default y
depends on DT_HAS_NXP_KINETIS_LPUART_ENABLED
depends on CLOCK_CONTROL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC
select DMA if UART_ASYNC_API
select PINCTRL
help
Enable... | /content/code_sandbox/drivers/serial/Kconfig.mcux_lpuart | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 134 |
```unknown
config UART_NATIVE_TTY
bool "UART driver for interacting with host serial ports"
default y
depends on DT_HAS_ZEPHYR_NATIVE_TTY_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
``` | /content/code_sandbox/drivers/serial/Kconfig.native_tty | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
# ARM CMSDK APB SoC UART configuration options
config UART_CMSDK_APB
bool "ARM CMSDK APB UART driver"
default y
depends on DT_HAS_ARM_CMSDK_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the UART driver for ARM CMSDK APB UART.
``` | /content/code_sandbox/drivers/serial/Kconfig.cmsdk_apb | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```c
/*
*
*/
/*
* This is not a real serial driver. It is used to instantiate struct
* devices for the "vnd,serial" devicetree compatible used in test code.
*/
#include <stdbool.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/uart/serial_t... | /content/code_sandbox/drivers/serial/serial_test.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,992 |
```unknown
config UART_RA8_SCI_B
bool "Renesas RA SCI_B UART"
default y
depends on DT_HAS_RENESAS_RA8_UART_SCI_B_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC
select USE_RA_FSP_SCI_B_UART
select USE_RA_FSP_DTC if UART_ASYNC_API
help
Enable Renesas RA SCI_B UAR... | /content/code_sandbox/drivers/serial/Kconfig.renesas_ra8 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```unknown
#nRF UART(E) instance configuration
config UART_$(nrfx_uart_num)_INTERRUPT_DRIVEN
bool "Interrupt support on port $(nrfx_uart_num)"
depends on UART_INTERRUPT_DRIVEN
select UART_ASYNC_TO_INT_DRIVEN_API if !UART_NRFX_UARTE_LEGACY_SHIM
default y
help
This option enables UART interrupt support on port ... | /content/code_sandbox/drivers/serial/Kconfig.nrfx_uart_instance | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,298 |
```c
/*
*
*/
/**
* @brief UART driver for Intel FPGA UART Core IP
* Reference : Embedded Peripherals IP User Guide (22.3 and above): 55.
* Lightweight UART Core
*/
#define DT_DRV_COMPAT intel_lw_uart
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/serial/uart_intel_lw.h>
... | /content/code_sandbox/drivers/serial/uart_intel_lw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,034 |
```unknown
# Infineon CAT1 UART configuration options
# an affiliate of Cypress Semiconductor Corporation
config UART_INFINEON_CAT1
bool "Infineon CAT1 UART driver"
default y
depends on DT_HAS_INFINEON_CAT1_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select USE_INFINEON_UART
help
T... | /content/code_sandbox/drivers/serial/Kconfig.ifx_cat1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```unknown
#
# Author: Parthiban Nallathambi <parthiban@linumiz.com>
config UART_XMC4XXX
bool "XMC4XX UART driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC if DT_HAS_INFINEON_XMC4XXX_DMA_ENABLED
select DMA if U... | /content/code_sandbox/drivers/serial/Kconfig.xmc4xxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 197 |
```unknown
# Atmel SAM SERCOM configuration options
config UART_SAM0
bool "Atmel SAM0 series SERCOM USART driver"
default y
depends on DT_HAS_ATMEL_SAM0_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC if DT_HAS_ATMEL_SAM0_DMAC_ENABLED
help
This option enable... | /content/code_sandbox/drivers/serial/Kconfig.sam0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 134 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam0_uart
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <soc.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/dma.h>
#include <zephyr/drivers/pinctrl.h>
#include <string.h>
#include <zephyr/irq.h>... | /content/code_sandbox/drivers/serial/uart_sam0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,813 |
```unknown
config UART_NATIVE_POSIX
bool "UART driver for native_sim/posix"
default y
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_UART_ENABLED
select SERIAL_HAS_DRIVER
help
This enables a UART driver for the POSIX ARCH with up to 2 UARTs.
For the first UART port, the driver can be configured
to either connect ... | /content/code_sandbox/drivers/serial/Kconfig.native_posix | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 693 |
```unknown
# NEORV32 UART configuration
config UART_NEORV32
bool "NEORV32 UART"
default y
depends on DT_HAS_NEORV32_UART_ENABLED
depends on SYSCON
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the UART driver for the NEORV32.
``` | /content/code_sandbox/drivers/serial/Kconfig.neorv32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```c
/*
*
*/
/**
* @brief UART driver for the SiFive Freedom Processor
*/
#define DT_DRV_COMPAT sifive_uart0
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <zephyr/irq.h>
#define RXDATA_EMPTY (1 << 31) /*... | /content/code_sandbox/drivers/serial/uart_sifive.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,936 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_uart_emul
#include <errno.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/serial/uart_emul.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/ring_buffer.h>
#include <zephyr/sys/util.h>
LOG_MODU... | /content/code_sandbox/drivers/serial/uart_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,523 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SERIAL_UART_LPC11U6X_H_
#define ZEPHYR_DRIVERS_SERIAL_UART_LPC11U6X_H_
#include <zephyr/drivers/pinctrl.h>
#define LPC11U6X_UART0_CLK 14745600
#define LPC11U6X_UART0_LCR_WLS_5BITS 0
#define LPC11U6X_UART0_LCR_WLS_6BITS 1
#define LPC11U6X_UART0_... | /content/code_sandbox/drivers/serial/uart_lpc11u6x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,551 |
```c
/*
*
*/
#include <zephyr/drivers/serial/uart_async_to_irq.h>
#include <string.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(UART_ASYNC_TO_IRQ_LOG_NAME, CONFIG_UART_LOG_LEVEL);
/* Internal state flags. */
/* RX interrupt enabled. */
#define A2I_RX_IRQ_ENABLED BIT(0)
/* TX interrupt enabled. */
#define... | /content/code_sandbox/drivers/serial/uart_async_to_irq.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,541 |
```unknown
config UART_ENE_KB1200
bool "ENE KB1200 serial driver"
default y
depends on DT_HAS_ENE_KB1200_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select PINCTRL
help
This option enables the KB1200 serial driver.
``` | /content/code_sandbox/drivers/serial/Kconfig.ene | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
# Telink B91 UART configuration options
config UART_TELINK_B91
bool "Telink B91 UART driver"
default y
depends on DT_HAS_TELINK_B91_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
This option enables the B91 serial driver.
``` | /content/code_sandbox/drivers/serial/Kconfig.b91 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
config UART_RPI_PICO_PIO
bool "Raspberry Pi PIO UART driver"
default y
depends on DT_HAS_RASPBERRYPI_PICO_UART_PIO_ENABLED
select SERIAL_HAS_DRIVER
select PICOSDK_USE_PIO
select PICOSDK_USE_CLAIM
depends on RESET
``` | /content/code_sandbox/drivers/serial/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```c
/*
*
*/
#define DT_DRV_COMPAT openisa_rv32m1_lpuart
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/irq.h>
#include <fsl_lpuart.h>
#include <soc.h>
#include <zephyr/drivers/pinctrl.h>
struct rv32m1_lpuart_config {
LPUAR... | /content/code_sandbox/drivers/serial/uart_rv32m1_lpuart.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,031 |
```unknown
config LP5562
bool "LP5562 LED driver"
default y
depends on DT_HAS_TI_LP5562_ENABLED
select I2C
help
Enable LED driver for LP5562.
LP5562 LED driver has 4 channels (RGBW). Each channel can drive up to
25.5 mA per LED.
``` | /content/code_sandbox/drivers/led/Kconfig.lp5562 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```c
/*
*
*/
#define DT_DRV_COMPAT gpio_leds
/**
* @file
* @brief GPIO driven LEDs
*/
#include <zephyr/drivers/led.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(led_gpio, CONFIG_LED_LOG_LEVEL);
struct led_gpio_conf... | /content/code_sandbox/drivers/led/led_gpio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 656 |
```unknown
config IS31FL3194
bool "IS31FL3194 LED driver"
default y
depends on DT_HAS_ISSI_IS31FL3194_ENABLED
select I2C
help
Enable LED driver for Lumissil Microsystems (a division of ISSI)
IS31FL3194. This chip supports one RGB LED or 3 independent LEDs.
``` | /content/code_sandbox/drivers/led/Kconfig.is31fl3194 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```unknown
config LP50XX
bool "LP50XX LED controller"
default y
depends on DT_HAS_TI_LP5009_ENABLED || DT_HAS_TI_LP5012_ENABLED || \
DT_HAS_TI_LP5018_ENABLED || DT_HAS_TI_LP5024_ENABLED || \
DT_HAS_TI_LP5030_ENABLED || DT_HAS_TI_LP5036_ENABLED
select I2C
help
Enable driver for the Texas Instruments L... | /content/code_sandbox/drivers/led/Kconfig.lp50xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_lp3943
/**
* @file
* @brief LP3943 LED driver
*
* Limitations:
* - Blink period and brightness value are controlled by two sets of PSCx/PWMx
* registers. This driver partitions the available LEDs into two groups as
* 0 to 7 and 8 to 15 and assigns PSC0/PWM0 to LEDs f... | /content/code_sandbox/drivers/led/lp3943.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,876 |
```unknown
config LED_GPIO
bool "GPIO LED driver"
default y
depends on GPIO && DT_HAS_GPIO_LEDS_ENABLED
help
Enable driver for GPIO LEDs.
``` | /content/code_sandbox/drivers/led/Kconfig.gpio | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```c
/*
*
*/
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/led.h>
static inline int z_vrfy_led_blink(const struct device *dev, uint32_t led,
uint32_t delay_on, uint32_t delay_off)
{
K_OOPS(K_SYSCALL_DRIVER_LED(dev, blink));
return z_impl_led_blink((const struct device *)dev, led, de... | /content/code_sandbox/drivers/led/led_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 657 |
```c
/*
*
*/
#define DT_DRV_COMPAT issi_is31fl3194
/**
* @file
* @brief IS31FL3194 LED driver
*
* The IS31FL3194 is a 3-channel LED driver that communicates over I2C.
*/
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/kernel.h>
#include <zephyr/loggi... | /content/code_sandbox/drivers/led/is31fl3194.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,741 |
```unknown
config LP3943
bool "LP3943 LED driver"
default y
depends on DT_HAS_TI_LP3943_ENABLED
select I2C
help
Enable LED driver for LP3943.
LP3943 LED driver has 16 channels each with multi-programmable
states at a specified rate. Each channel can drive up to 25 mA
per LED.
``` | /content/code_sandbox/drivers/led/Kconfig.lp3943 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```c
/*
*
*/
#define DT_DRV_COMPAT issi_is31fl3733
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/led/is31fl3733.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(is31fl3733, CONFIG_LED_LOG_LEVEL);
/* IS31FL... | /content/code_sandbox/drivers/led/is31fl3733.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,477 |
```c
/*
*
*/
#define DT_DRV_COMPAT issi_is31fl3216a
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/logging/log.h>
#define IS31FL3216A_REG_CONFIG 0x00
#define IS31FL3216A_REG_CTL_1 0x01
#define IS31FL3216A_REG_CTL_2 0x02
#define IS31FL3216A_REG_LIGHT_EFFECT 0x03
#define IS31FL32... | /content/code_sandbox/drivers/led/is31fl3216a.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,998 |
```unknown
config LP5569
bool "LP5569 LED driver"
default y
depends on DT_HAS_TI_LP5569_ENABLED
select I2C
help
Enable LED driver for LP5569. LP5569 LED driver has 9 channels.
Each channel can drive up to 25.5 mA per LED.
``` | /content/code_sandbox/drivers/led/Kconfig.lp5569 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_bbled
/**
* @file
* @brief Microchip Breathing-Blinking LED controller
*/
#include <soc.h>
#ifndef CONFIG_SOC_SERIES_MEC15XX
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ecia.h>
#endi... | /content/code_sandbox/drivers/led/led_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,615 |
```c
/*
*
*/
#define DT_DRV_COMPAT onnn_ncp5623
/**
* @file
* @brief NCP5623 LED driver
*
* The NCP5623 is a 3-channel LED driver that communicates over I2C.
*/
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>... | /content/code_sandbox/drivers/led/ncp5623.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,805 |
```unknown
menuconfig HT16K33
bool "HT16K33 LED driver"
default y
depends on DT_HAS_HOLTEK_HT16K33_ENABLED
select I2C
help
Enable LED driver for HT16K33.
The HT16K33 is a memory mapping, multifunction LED
controller driver. The controller supports up to 128 LEDs
(up to 16 rows and 8 commons).
config... | /content/code_sandbox/drivers/led/Kconfig.ht16k33 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 364 |
```unknown
config NCP5623
bool "NCP5623 LED driver"
default y
depends on DT_HAS_ONNN_NCP5623_ENABLED
select I2C
help
Enable driver for the Onsemi NCP5623 I2C LED controller.
The controller and the driver support two hardware configurations:
- one three-channel (RGB) LED
- or three single-channel LED... | /content/code_sandbox/drivers/led/Kconfig.ncp5623 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```objective-c
/*
*
*/
/**
* @file
* @brief Private LED driver APIs
*/
#ifndef ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_
#define ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Internal driver specific representation of an LED device
*/
struct led_data {
/* Minimum acceptable ... | /content/code_sandbox/drivers/led/led_context.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 159 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_lp5569
/**
* @file
* @brief LP5569 LED controller
*
* The LP5569 is a 9-channel LED driver that communicates over I2C.
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/kernel.h>
#... | /content/code_sandbox/drivers/led/lp5569.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,097 |
```unknown
config IS31FL3733
bool "IS31FL3733 LED driver"
default y
depends on DT_HAS_ISSI_IS31FL3733_ENABLED
select I2C
help
Enable LED driver for IS31FL3733.
IS31FL3733 is a matrix LED driver, capable of a maximum of 3.29 mA
per LED, or 42 mA total across all LEDs in the 12x16 dot matrix.
``` | /content/code_sandbox/drivers/led/Kconfig.is31fl3733 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 98 |
```unknown
config LED_PWM
bool "PWM LED driver"
default y
depends on PWM && DT_HAS_PWM_LEDS_ENABLED
help
Enable driver for PWM LEDs.
``` | /content/code_sandbox/drivers/led/Kconfig.pwm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```unknown
config LED_XEC
bool "Microchip XEC BB-LED driver"
default y
depends on DT_HAS_MICROCHIP_XEC_BBLED_ENABLED
help
Enable driver for the Microchip XEC Breathing-Blinking
LED controller for MEC15xx and MEC172x
``` | /content/code_sandbox/drivers/led/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm1300_led
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/led.h>
#include <zephyr/drivers/mfd/npm1300.h>
/* nPM1300 LED base address */
#define NPM_LED_BASE 0x0AU
/* nPM1300 LED register offsets */
#define NPM_LED_OFFSET_MODE 0x00U
#define NPM_LED_O... | /content/code_sandbox/drivers/led/led_npm1300.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 745 |
```unknown
config IS31FL3216A
bool "IS31FL3216A LED driver"
default y
depends on DT_HAS_ISSI_IS31FL3216A_ENABLED
select I2C
help
Enable LED driver for Lumissil Microsystems (a division of ISSI)
IS31FL3216A. This chip supports up to 16 PWM controlled LEDs.
``` | /content/code_sandbox/drivers/led/Kconfig.is31fl3216a | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```c
/*
*
*/
#define DT_DRV_COMPAT pwm_leds
/**
* @file
* @brief PWM driven LEDs
*/
#include <zephyr/drivers/led.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/math_extras.h>
#include <zephyr/logging/log.h>
LOG_MODULE_... | /content/code_sandbox/drivers/led/led_pwm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,045 |
```c
/*
*
*/
#define DT_DRV_COMPAT holtek_ht16k33
/**
* @file
* @brief LED driver for the HT16K33 I2C LED driver with keyscan
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/led.h>
#include <zephyr/sys/byteor... | /content/code_sandbox/drivers/led/ht16k33.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,839 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_lp5562
/**
* @file
* @brief LP5562 LED driver
*
* The LP5562 is a 4-channel LED driver that communicates over I2C. The four
* channels are expected to be connected to a red, green, blue and white LED.
* Each LED can be driven by two different sources.
*
* 1. The brightn... | /content/code_sandbox/drivers/led/lp5562.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,435 |
```unknown
config TLC59108
bool "TLC59108 LED driver"
default y
depends on DT_HAS_TI_TLC59108_ENABLED
select I2C
help
Enable LED driver for TLC59108.
``` | /content/code_sandbox/drivers/led/Kconfig.tlc59108 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```unknown
# Top-level configuration file for LED drivers.
menuconfig LED
bool "Light-Emitting Diode (LED) drivers"
help
Include LED drivers in the system configuration.
if LED
module = LED
module-str = led
source "subsys/logging/Kconfig.template.log_config"
config LED_INIT_PRIORITY
int "LED initialization p... | /content/code_sandbox/drivers/led/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 290 |
```c
/*
*
*/
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/led.h>
#include <zephyr/dt-bindings/led/led.h>
#include <stdlib.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(led_shell);
#define MAX_CHANNEL_ARGS 8
enum {
arg_idx_dev = 1,
arg_idx_led = 2... | /content/code_sandbox/drivers/led/led_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,477 |
```unknown
config LED_NPM1300
bool "nPM1300 LED driver"
default y
depends on DT_HAS_NORDIC_NPM1300_LED_ENABLED
select I2C
select MFD
help
Enable the nPM1300 LED driver.
``` | /content/code_sandbox/drivers/led/Kconfig.npm1300 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_pca9633
/**
* @file
* @brief LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62)
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#define LOG_LEVEL CONFIG_LED_LOG_LEVEL
#include <ze... | /content/code_sandbox/drivers/led/pca9633.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,934 |
```c
/*
*
*/
/**
* @file
* @brief LP50xx LED controller
*/
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/drivers/led/lp50xx.h>
#include <zephyr/kernel.h>
#include <zephy... | /content/code_sandbox/drivers/led/lp50xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,182 |
```unknown
config PCA9633
bool "PCA9633 LED driver"
default y
depends on DT_HAS_NXP_PCA9633_ENABLED
select I2C
help
Enable LED driver for PCA9633.
PCA9633 LED driver has 4 channels each with multi-programmable
states. Each channel can drive up to 25 mA per LED.
``` | /content/code_sandbox/drivers/led/Kconfig.pca9633 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_tlc59108
/**
* @file
* @brief LED driver for the TLC59108 I2C LED driver
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/led.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(tlc59108, CONFIG_LED_LOG_... | /content/code_sandbox/drivers/led/tlc59108.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,947 |
```c
/*
*
*/
#define DT_DRV_COMPAT analog_axis
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/input/input.h>
#include <zephyr/input/input_analog_axis.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/devic... | /content/code_sandbox/drivers/input/input_analog_axis.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,756 |
```c
/*
*
*/
#define DT_DRV_COMPAT xptek_xpt2046
#include <zephyr/drivers/spi.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(xpt2046, CONFIG_INPUT_LOG_LEVEL);
struct xpt2046_config {
const struct spi_dt_spec bus;
const struct gpio_dt_spec int_gp... | /content/code_sandbox/drivers/input/input_xpt2046.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,388 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/input/input.h>
#include <zephyr/input/input_kbd_matrix.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(input_kbd_matrix, CONFIG_INPUT_LOG_LEVEL);
void input_kbd_matrix_... | /content/code_sandbox/drivers/input/input_kbd_matrix.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,590 |
```unknown
config INPUT_SDL_TOUCH
bool "SDL event filter for touch panel emulation"
default y
depends on DT_HAS_ZEPHYR_INPUT_SDL_TOUCH_ENABLED
depends on HAS_SDL
help
Enable driver for the SDL mouse event filter.
``` | /content/code_sandbox/drivers/input/Kconfig.sdl | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
menuconfig INPUT_GT911
bool "GT9xx / GT9xxx capacitive touch panel driver"
default y
depends on DT_HAS_GOODIX_GT911_ENABLED
select I2C
help
Enable driver for multiple Goodix capacitive touch panel controllers.
This driver should support gt9110, gt912, gt927, gt9271, gt928,
gt967.
if INPUT_GT9... | /content/code_sandbox/drivers/input/Kconfig.gt911 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 198 |
```c
/*
*
*/
#define DT_DRV_COMPAT pixart_pmw3610
#include <stdint.h>
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/input/input.h>
#include <zephyr/input/input_pmw3610.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#i... | /content/code_sandbox/drivers/input/input_pmw3610.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,366 |
```unknown
config INPUT_GPIO_QDEC
bool "GPIO based QDEC input driver"
default y
depends on DT_HAS_GPIO_QDEC_ENABLED
help
GPIO Quadrature Decoder input driver.
``` | /content/code_sandbox/drivers/input/Kconfig.gpio_qdec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 40 |
```objective-c
/*
*
*
* "Bottom" of the SDL input driver.
* When built with the native_simulator this will be built in the runner context,
* that is, with the host C library, and with the host include paths.
*/
#ifndef DRIVERS_INPUT_INPUT_SDL_TOUCH_BOTTOM_H
#define DRIVERS_INPUT_INPUT_SDL_TOUCH_BOTTOM_H
#includ... | /content/code_sandbox/drivers/input/input_sdl_touch_bottom.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 182 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_kbd
#include "soc_miwu.h"
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/input/input_kbd_matrix.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include <zephyr/toolchain.h>
#... | /content/code_sandbox/drivers/input/input_npcx_kbd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,934 |
```c
/**
*/
#define DT_DRV_COMPAT st_stmpe811
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/input/input.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(stmpe811, CONFIG_INPUT_LOG_LEVEL);
#define CHIP_ID 0x0811U
... | /content/code_sandbox/drivers/input/input_stmpe811.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,517 |
```c
/*
*
*/
#define DT_DRV_COMPAT pixart_pat912x
#include <stdint.h>
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/input/input.h>
#include <zephyr/input/input_pat912x.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#i... | /content/code_sandbox/drivers/input/input_pat912x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,761 |
```c
/*
*
*/
#define DT_DRV_COMPAT goodix_gt911
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/input/input.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(gt911, CONFIG_INPUT_LOG_LEVEL);
/* GT911 used registers */
#define DEVICE_ID BSWAP... | /content/code_sandbox/drivers/input/input_gt911.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,317 |
```c
/*
*
*/
#define DT_DRV_COMPAT chipsemi_chsc6x
#include <zephyr/sys/byteorder.h>
#include <zephyr/input/input.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
struct chsc6x_config {
struct i2c_dt_spec i2c;
const struct gpio_dt_spec int_gpio;
};
struct chsc6... | /content/code_sandbox/drivers/input/input_chsc6x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,044 |
```c
/*
*/
#define DT_DRV_COMPAT adc_keys
#include <stdlib.h>
#include <stdbool.h>
#include <zephyr/device.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(adc_keys, CONFIG_INPUT_LOG_LEVEL)... | /content/code_sandbox/drivers/input/input_adc_keys.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,756 |
```unknown
config INPUT_ESP32_TOUCH_SENSOR
bool "Espressif Touch Sensor input driver"
default n
depends on DT_HAS_ESPRESSIF_ESP32_TOUCH_ENABLED
help
Enable support for Espressif Touch Sensor input driver.
``` | /content/code_sandbox/drivers/input/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```c
/*
*/
#define DT_DRV_COMPAT ite_it8xxx2_kbd
#include <errno.h>
#include <soc.h>
#include <soc_dt.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/interrupt_controller/wuc_ite_it8xxx2.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/dt-bindings/interrupt-controller/i... | /content/code_sandbox/drivers/input/input_ite_it8xxx2_kbd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,653 |
```unknown
config INPUT_GPIO_KBD_MATRIX
bool "GPIO based keyboard matrix input driver"
default y
depends on DT_HAS_GPIO_KBD_MATRIX_ENABLED
select INPUT_KBD_MATRIX
help
GPIO keyboard matrix input driver.
``` | /content/code_sandbox/drivers/input/Kconfig.gpio_kbd_matrix | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```c
/*
*
*/
#define DT_DRV_COMPAT pixart_paw32xx
#include <stdint.h>
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/input/input.h>
#include <zephyr/input/input_paw32xx.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#i... | /content/code_sandbox/drivers/input/input_paw32xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,294 |
```c
/*
*
*/
#define DT_DRV_COMPAT gpio_keys
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/input/input.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/sys/atomic.h>
LOG_MODULE_REGISTER(... | /content/code_sandbox/drivers/input/input_gpio_keys.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,355 |
```unknown
# Cirque Pinnacle 1CA027 touch controller based device configuration options
#
config INPUT_PINNACLE
bool "Cirque Pinnacle 1CA027 Touch Controller Based Device"
default y
depends on DT_HAS_CIRQUE_PINNACLE_ENABLED
select GPIO
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_CIRQUE_PINNACLE),i2c)
select SPI... | /content/code_sandbox/drivers/input/Kconfig.pinnacle | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 123 |
```c
/*
*
*/
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/input/input_analog_axis.h>
#include <zephyr/input/input_analog_axis_settings.h>
#include <zephyr/logging/log.h>
#include <zephyr/settings/settings.h>
#include <zephyr/sys/printk.h>
LOG_MODULE_REGISTER(analog_axis_settings, CONFIG_INPUT_LOG... | /content/code_sandbox/drivers/input/input_analog_axis_settings.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 719 |
```unknown
config INPUT_PAW32XX
bool "PAW32xx ultra low power wireless mouse chip"
default y
depends on DT_HAS_PIXART_PAW32XX_ENABLED
select SPI
help
PAW32XX low power laser mouse sensor input driver
``` | /content/code_sandbox/drivers/input/Kconfig.paw32xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```c
/*
*
*/
/* Address by default is 0x55 */
#define DT_DRV_COMPAT sitronix_cf1133
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/input/input.h>
#include <zephyr/logging/log.h>
#include <stdbool.h>
LOG_MODULE_REGISTER(cf1133, CONFIG_INPUT_LOG_LEVEL);
/* cf1133 used registers *... | /content/code_sandbox/drivers/input/input_cf1133.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,668 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_INPUT_LINUX_EVDEV_BOTTOM_H_
#define ZEPHYR_DRIVERS_INPUT_LINUX_EVDEV_BOTTOM_H_
#include <stdint.h>
#define NATIVE_LINUX_EVDEV_NO_DATA INT32_MIN
int linux_evdev_read(int fd, uint16_t *type, uint16_t *code, int32_t *value);
int linux_evdev_open(const char *path);
#endi... | /content/code_sandbox/drivers/input/linux_evdev_bottom.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```unknown
menuconfig INPUT_CF1133
bool "CF1133 capacitive touch panel driver"
default y
depends on DT_HAS_SITRONIX_CF1133_ENABLED
select I2C
help
Enable driver for Sitronix capacitive touch panel
controller. This driver should support CF1133.
if INPUT_CF1133
config INPUT_CF1133_INTERRUPT
bool "Interrupt... | /content/code_sandbox/drivers/input/Kconfig.cf1133 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 155 |
```c
/*
*
*/
#define DT_DRV_COMPAT hynitron_cst816s
#include <zephyr/sys/byteorder.h>
#include <zephyr/input/input.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include <zephyr/dt-bindings/input/cst816s-gesture-codes.h>
LOG_MODULE_REGISTER(cst816s, CONFIG_INPU... | /content/code_sandbox/drivers/input/input_cst816s.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,604 |
```c
/*
*
*/
#define DT_DRV_COMPAT cirque_pinnacle
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#include <zephyr/drivers/i2c.h>
#endif
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#include <zephyr/drivers/spi.h>
#endif
#include <zephyr/init.h>
#include <zephyr/input... | /content/code_sandbox/drivers/input/input_pinnacle.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,378 |
```unknown
config INPUT_ITE_IT8XXX2_KBD
bool "ITE keyboard scanning driver"
default y
depends on DT_HAS_ITE_IT8XXX2_KBD_ENABLED
select INPUT_KBD_MATRIX
help
This option enables the ITE keyboard scan driver.
``` | /content/code_sandbox/drivers/input/Kconfig.it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_input_sdl_touch
#include <stdbool.h>
#include <zephyr/input/input.h>
#include <zephyr/logging/log.h>
#include "input_sdl_touch_bottom.h"
LOG_MODULE_REGISTER(sdl_input, CONFIG_INPUT_LOG_LEVEL);
static void sdl_input_callback(struct sdl_input_data *data)
{
if (data->just_r... | /content/code_sandbox/drivers/input/input_sdl_touch.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 294 |
```c
/*
*
*/
#include <SDL.h>
#include "input_sdl_touch_bottom.h"
static int sdl_filter(void *arg, SDL_Event *event)
{
struct sdl_input_data *data = arg;
switch (event->type) {
case SDL_MOUSEBUTTONUP:
data->pressed = false;
data->just_released = true;
break;
case SDL_MOUSEBUTTONDOWN:
data->pressed = tr... | /content/code_sandbox/drivers/input/input_sdl_touch_bottom.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 160 |
```unknown
menuconfig INPUT_FT5336
bool "FT3267/FT5XX6/FT6XX6 capacitive touch panel driver"
default y
depends on DT_HAS_FOCALTECH_FT5336_ENABLED
select I2C
help
Enable driver for multiple Focaltech capacitive touch panel
controllers. This driver should support FT5x06, FT5606, FT5x16,
FT6x06, Ft6x36, FT5... | /content/code_sandbox/drivers/input/Kconfig.ft5336 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 206 |
```unknown
config INPUT_ADC_KEYS
bool "ADC attached resistor ladder buttons"
default y
depends on DT_HAS_ADC_KEYS_ENABLED
depends on ADC
help
Enable support for ADC attached resistor ladder buttons.
``` | /content/code_sandbox/drivers/input/Kconfig.adc_keys | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.