text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_gpio_port
/** @file
* @brief GPIO driver for LPC54XXX family
*
* Note:
* - fsl_pint internally tries to manage interrupts, but this is not used (e.g.
* s_pintCallback), Zephyr's interrupt management system is used in place.
*/
#include <errno.h>
#include <zephyr/d... | /content/code_sandbox/drivers/gpio/gpio_mcux_lpc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,822 |
```unknown
# Synopsys GPIO via CREG (Control REGisters) driver
config GPIO_SNPS_CREG
bool "SNPS CREG GPIO"
default y
depends on DT_HAS_SNPS_CREG_GPIO_ENABLED
help
Enable driver for SNPS CREG GPIO.
``` | /content/code_sandbox/drivers/gpio/Kconfig.creg_gpio | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_gpio
/**
* @file
* @brief Intel GPIO Controller Driver
*
* The GPIO controller on Intel SoC serves
* both GPIOs and Pinmuxing function. This driver provides
* the GPIO function.
*
* Due to GPIO callback only allowing 32 pins (as a 32-bit mask) at once,
* each set is... | /content/code_sandbox/drivers/gpio/gpio_intel.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,447 |
```unknown
# RV32M1 GPIO configuration options
config GPIO_RV32M1
bool "RV32M1 GPIO driver"
default y
depends on DT_HAS_OPENISA_RV32M1_GPIO_ENABLED
help
Enable the RV32M1 GPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.rv32m1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```unknown
# NPCX GPIO driver configuration options
config GPIO_NCT38XX
bool "NCT38XX I2C-based GPIO chip"
default y
depends on DT_HAS_NUVOTON_NCT38XX_GPIO_PORT_ENABLED
select I2C
select MFD
help
Enable driver for NCT38XX I2C-based GPIO chip.
if GPIO_NCT38XX
config GPIO_NCT38XX_INIT_PRIORITY
int "NCT38XX ... | /content/code_sandbox/drivers/gpio/Kconfig.nct38xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 307 |
```unknown
config GPIO_BCM2711
bool "BCM2711 GPIO driver"
default y
depends on DT_HAS_BRCM_BCM2711_GPIO_ENABLED
help
Enable BCM2711 GPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.bcm2711 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/mfd/adp5585.h>
#define DT_DRV_COMPAT adi_adp5585_gpio
LOG_MODULE_REGISTER(... | /content/code_sandbox/drivers/gpio/gpio_adp5585.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,135 |
```unknown
# Microchip XEC GPIO configuration options
config GPIO_XEC
bool "XEC Microchip GPIO driver"
default y
depends on DT_HAS_MICROCHIP_XEC_GPIO_ENABLED
help
Enable the Microchip XEC gpio driver.
config GPIO_XEC_V2
bool "XEC Microchip GPIO driver V2"
default y
depends on DT_HAS_MICROCHIP_XEC_GPIO_V2_E... | /content/code_sandbox/drivers/gpio/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 102 |
```c
/*
*
*/
#define DT_DRV_COMPAT nordic_nrf_gpio
#include <nrfx_gpiote.h>
#include <string.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dt-bindings/gpio/nordic-nrf-gpio.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
struct gpio_nrfx_data {
/* gpio_driver_data needs to be first *... | /content/code_sandbox/drivers/gpio/gpio_nrfx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,626 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_gpio
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/loggin... | /content/code_sandbox/drivers/gpio/gpio_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,256 |
```c
/*
*
*/
#define DT_DRV_COMPAT arm_cmsdk_gpio
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control/arm_clock_control.h>
#include <zephyr/drivers/gpio/gpio_cmsdk_ahb.h>
#include ... | /content/code_sandbox/drivers/gpio/gpio_cmsdk_ahb.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,262 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_gpio_emul_sdl
#include <zephyr/drivers/gpio/gpio_emul.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include "gpio_emul_sdl_bottom.h"
LOG_MODULE_REGISTER(gpio_emul_sdl, CONFIG_GPIO_LOG_LEVEL);
struct gpio_sdl_config {
const struct device *emul;
const i... | /content/code_sandbox/drivers/gpio/gpio_emul_sdl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 712 |
```c
/*
*
*
*/
/**
* @file Driver for MPC230xx I2C-based GPIO driver.
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include "gpio_mcp23xxx... | /content/code_sandbox/drivers/gpio/gpio_mcp230xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,129 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_ra_gpio_ioport
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/dt-bindings/gpio/renesas-ra-gpio-ioport.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/irq.h>
#include <soc.h>
struct gpio_ra_config {
struct gpio_driver... | /content/code_sandbox/drivers/gpio/gpio_renesas_ra_ioport.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,927 |
```c
/*
*
*/
#define DT_DRV_COMPAT neorv32_gpio
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/syscon.h>
#include <zephyr/irq.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/logging/log.h>
#include <soc.h>
LOG_MODULE_REGISTER(gpio_neorv32, CONF... | /content/code_sandbox/drivers/gpio/gpio_neorv32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,560 |
```unknown
# NPCX GPIO driver configuration options
config GPIO_NPCX
bool "Nuvoton NPCX embedded controller (EC) gpio driver"
default y
depends on DT_HAS_NUVOTON_NPCX_GPIO_ENABLED
help
This option enables the GPIO driver for NPCX family of
processors.
Say y if you wish to use serial port on NPCX MCU.
``... | /content/code_sandbox/drivers/gpio/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```c
/**
* 2022 Ithinx GmbH
* 2023 Amrith Venkat Kesavamoorthi <amrith@mr-beam.org>
* 2023 Mr Beam Lasers GmbH.
*
*
* @see path_to_url
* @see path_to_url
*/
#define DT_DRV_COMPAT nxp_pcf857x
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include ... | /content/code_sandbox/drivers/gpio/gpio_pcf857x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,371 |
```unknown
# MCUX IGPIO configuration options
config GPIO_MCUX_IGPIO
bool "MCUX IGPIO driver"
default y
depends on HAS_MCUX_IGPIO
depends on DT_HAS_NXP_IMX_GPIO_ENABLED
select PINCTRL
help
Enable the MCUX IGPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.mcux_igpio | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```unknown
# DesignWare GPIO configuration options
config GPIO_DW
bool "Designware GPIO"
default y
depends on DT_HAS_SNPS_DESIGNWARE_GPIO_ENABLED
help
Enable driver for Designware GPIO
``` | /content/code_sandbox/drivers/gpio/Kconfig.dw | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_sc18im704_gpio
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(gpio_sc18im, CONFIG_GPIO_LOG_LEVEL... | /content/code_sandbox/drivers/gpio/gpio_sc18im704.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,155 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_gpio_emul
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_emul.h>
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#define LOG_LEVEL CONFIG_GPIO_LOG_LEVEL... | /content/code_sandbox/drivers/gpio/gpio_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,733 |
```unknown
# Kconfig Andes ATCGPIO100 configuration option
#
#
#
config GPIO_ANDES_ATCGPIO100
bool "Andes ATCGPIO100 GPIO driver"
default y
depends on DT_HAS_ANDESTECH_ATCGPIO100_ENABLED
help
Enable driver for the Andes ATCGPIO100 GPIO controller.
Says n if not sure.
``` | /content/code_sandbox/drivers/gpio/Kconfig.andes_atcgpio100 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```unknown
menuconfig GPIO_NRFX
bool "nRF GPIO driver"
default y
depends on DT_HAS_NORDIC_NRF_GPIO_ENABLED
select NRFX_GPIOTE0 if HAS_HW_NRF_GPIOTE0
select NRFX_GPIOTE1 if HAS_HW_NRF_GPIOTE1
select NRFX_GPIOTE20 if HAS_HW_NRF_GPIOTE20
select NRFX_GPIOTE30 if HAS_HW_NRF_GPIOTE30
select NRFX_GPIOTE130 if HAS_HW_... | /content/code_sandbox/drivers/gpio/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 202 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_rcar_gpio
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/renesas_cpg_mssr.h>
#include <zephyr/irq.h>
#incl... | /content/code_sandbox/drivers/gpio/gpio_rcar.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,431 |
```unknown
# Stellaris
config GPIO_STELLARIS
bool "TI Stellaris GPIO Driver"
default y
depends on DT_HAS_TI_STELLARIS_GPIO_ENABLED
help
Enable support for the Stellaris GPIO controllers.
``` | /content/code_sandbox/drivers/gpio/Kconfig.stellaris | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_gpio
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <zephyr/sys/util.h>
#include <gpio_imx.h>
#include <string.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/gpio/gpio_utils... | /content/code_sandbox/drivers/gpio/gpio_imx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,522 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pca953x, CONFIG_GPIO_LOG_... | /content/code_sandbox/drivers/gpio/gpio_pca953x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,687 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm1300_gpio
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/mfd/npm1300.h>
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util_macro.h>
/* nPM1... | /content/code_sandbox/drivers/gpio/gpio_npm1300.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,995 |
```c
/*
*
*
*/
/**
* @file Driver for MPC23Sxx SPI-based GPIO driver.
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include "gpio_mcp23xxx... | /content/code_sandbox/drivers/gpio/gpio_mcp23sxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,424 |
```unknown
# PCAL6408a GPIO configuration options
menuconfig GPIO_PCAL64XXA
bool "PCAL64XXA I2C GPIO chip"
default y
depends on DT_HAS_NXP_PCAL6408A_ENABLED || DT_HAS_NXP_PCAL6416A_ENABLED
select I2C
help
Enable driver for PCAL64XXA I2C GPIO chip.
config GPIO_PCAL64XXA_INIT_PRIORITY
int "Init priority"
def... | /content/code_sandbox/drivers/gpio/Kconfig.pcal64xxa | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 120 |
```c
/*
*
*/
/**
* @file GPIO driver for the AndesTech ATCGPIO100 controller
*/
#include <errno.h>
#include <stdbool.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dt-bindings/gpio/andestech-atcgpio100.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys... | /content/code_sandbox/drivers/gpio/gpio_andes_atcgpio100.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,044 |
```unknown
#
config GPIO_DAVINCI
bool "Davinci GPIO Driver"
default y
depends on DT_HAS_TI_DAVINCI_GPIO_ENABLED
help
Enable the Davinci GPIO controller support.
``` | /content/code_sandbox/drivers/gpio/Kconfig.davinci | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pcal64xxa, CONFIG_GPIO_LOG_LEVEL);
enum pcal6408a_register {
PCAL6408A_REG_INPUT_PORT = 0x00,
PCAL6408A_REG_OUTP... | /content/code_sandbox/drivers/gpio/gpio_pcal64xxa.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,995 |
```unknown
# STMPE1600 GPIO configuration options
menuconfig GPIO_STMPE1600
bool "STMPE1600 I2C-based GPIO chip"
default y
depends on DT_HAS_ST_STMPE1600_ENABLED
depends on I2C
help
Enable driver for STMPE1600 I2C-based GPIO chip.
config GPIO_STMPE1600_INIT_PRIORITY
int "Init priority"
default 70
depends ... | /content/code_sandbox/drivers/gpio/Kconfig.stmpe1600 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam4l_gpio
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/clock_control/atmel_sam_pmc.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/gpio/gpio_... | /content/code_sandbox/drivers/gpio/gpio_sam4l.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,852 |
```c
/*
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_gpio_pin_configure(const struct device *port,
gpio_pin_t pin,
gpio_flags_t flags)
{
K_OOPS(K_SYSCALL_DRIVER_GPIO(port, pin_configure));
return z_impl_gpio_pin_configure((const stru... | /content/code_sandbox/drivers/gpio/gpio_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 904 |
```unknown
config GPIO_BRCMSTB
bool "Broadcom Set-top box SoC GPIO Driver"
default y
depends on DT_HAS_BRCM_BRCMSTB_GPIO_ENABLED
help
Enable Driver for Broadcom Set-top box SoC GPIO Banks.
``` | /content/code_sandbox/drivers/gpio/Kconfig.brcmstb | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_gpio
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/interrupt_controller/intc_xmc4xxx.h>
#include <zephyr/dt-bindings/gpio/infineon-xmc4xxx-gpio.h>
#include <xmc_gpio.h>
#include <zephyr/drivers/gpio/gpio_u... | /content/code_sandbox/drivers/gpio/gpio_xmc4xxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,805 |
```unknown
# IMX GPIO configuration options
config GPIO_IMX
bool "IMX GPIO driver"
default y
depends on HAS_IMX_GPIO
depends on DT_HAS_NXP_IMX_GPIO_ENABLED
select PINCTRL
help
Enable the IMX GPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.imx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(fxl6408, CONFIG_FXL6408_LOG_LEVEL);
#define DT_DRV_COMPAT fcs_fxl6408
/* Register definitions */
#defi... | /content/code_sandbox/drivers/gpio/gpio_fxl6408.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,213 |
```unknown
# GPIO configuration options
menuconfig GPIO
bool "General-Purpose Input/Output (GPIO) drivers"
help
Include GPIO drivers in system config
if GPIO
module = GPIO
module-str = gpio
source "subsys/logging/Kconfig.template.log_config"
config GPIO_SHELL
bool "GPIO Shell"
depends on SHELL
imply DEVICE... | /content/code_sandbox/drivers/gpio/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,462 |
```objective-c
/*
* Xilinx Processor System MIO / EMIO GPIO controller driver
*
* Driver private data declarations, parent (IRQ handler) module
*
*/
#ifndef _ZEPHYR_DRIVERS_GPIO_GPIO_XLNX_PS_H_
#define _ZEPHYR_DRIVERS_GPIO_GPIO_XLNX_PS_H_
/* Type definitions */
/* IRQ handler function type */
typedef void (*gpi... | /content/code_sandbox/drivers/gpio/gpio_xlnx_ps.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 279 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_gpio
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/clock_control/atmel_sam_pmc.h>
#include <zephyr/dt-bindings/gpio/atmel-sam-gpio.h>
#include <... | /content/code_sandbox/drivers/gpio/gpio_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,506 |
```c
/*
* Xilinx Processor System MIO / EMIO GPIO controller driver
* GPIO bank module
*
*/
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include "gpio_xlnx_ps_bank.h"
#define LOG_MODULE_NAME gp... | /content/code_sandbox/drivers/gpio/gpio_xlnx_ps_bank.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,838 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_sn74hc595
/**
* @file Driver for 74 HC shift register
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/logging/l... | /content/code_sandbox/drivers/gpio/gpio_sn74hc595.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,494 |
```unknown
config GPIO_EFINIX_SAPPHIRE
bool "Efinx sapphire GPIO driver"
default y
depends on DT_HAS_EFINIX_SAPPHIRE_GPIO_ENABLED
help
Enable Efinix sapphire GPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.efinix_sapphire | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_stellaris_gpio
#include <errno.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
typedef void (*config_func_t)(const st... | /content/code_sandbox/drivers/gpio/gpio_stellaris.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,231 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_rgpio
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <fsl_common.h>
#include <fsl_rgpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
struct gpio_pin_gaps {
uint8_t sta... | /content/code_sandbox/drivers/gpio/gpio_mcux_rgpio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,997 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_gpio
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/sys_io.h>
#include <soc.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#define XEC_GPIO_EDGE_DLY_COUNT 4
#define GPIO_IN_BASE(config) ... | /content/code_sandbox/drivers/gpio/gpio_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,268 |
```c
/*
*
*/
/**
* @file
* @brief GPIO driver for the LMP90xxx AFE.
*/
#define DT_DRV_COMPAT ti_lmp90xxx_gpio
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#define LOG_LEVEL CONFIG_GPIO_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(gpio_lmp90xxx);
#include <zephyr/drivers/adc/lmp... | /content/code_sandbox/drivers/gpio/gpio_lmp90xxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,183 |
```c
/*
*
*
*/
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h>
#include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/types.h>
#... | /content/code_sandbox/drivers/gpio/gpio_ite_it8xxx2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,092 |
```unknown
config GPIO_RA_IOPORT
bool "Renesas RA GPIO IO port driver"
default y
depends on DT_HAS_RENESAS_RA_GPIO_IOPORT_ENABLED
help
Enable the Renesas RA GPIO IO port driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.renesas_ra_ioport | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```unknown
# CC32XX GPIO configuration options
config GPIO_CC32XX
bool "TI CC32XX GPIO driver"
default y
depends on DT_HAS_TI_CC32XX_GPIO_ENABLED
help
Enable the GPIO driver on TI SimpleLink CC32xx boards
``` | /content/code_sandbox/drivers/gpio/Kconfig.cc32xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
#
# Xilinx Processor System MIO / EMIO GPIO controller driver
# configuration options
#
#
config GPIO_XLNX_PS
bool "Xilinx Processor System MIO / EMIO GPIO controller driver"
default y
depends on DT_HAS_XLNX_PS_GPIO_ENABLED
depends on !QEMU_TARGET
help
Enable the Xilinx Processor System MIO / EMIO G... | /content/code_sandbox/drivers/gpio/Kconfig.xlnx_ps | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```unknown
config GPIO_NPM1300
bool "nPM1300 GPIO driver"
default y
depends on DT_HAS_NORDIC_NPM1300_GPIO_ENABLED
select I2C
select MFD
help
Enable the nPM1300 GPIO driver.
config GPIO_NPM1300_INIT_PRIORITY
int "nPM1300 GPIO driver initialization priority"
depends on GPIO_NPM1300
default 85
help
Initi... | /content/code_sandbox/drivers/gpio/Kconfig.npm1300 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 119 |
```objective-c
/*
*
*/
/**
* @file Header file for the MCP23Xxx driver.
*/
#ifndef ZEPHYR_DRIVERS_GPIO_GPIO_MCP23XXX_H_
#define ZEPHYR_DRIVERS_GPIO_GPIO_MCP23XXX_H_
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#ifdef CONFIG_GPIO_MCP230XX
#include <zephyr/drivers/i2c.h>
#endif /* CONFIG_GPIO_MCP23... | /content/code_sandbox/drivers/gpio/gpio_mcp23xxx.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 690 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_gpio
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <soc/gpio_reg.h>
#include <soc/io_mux_reg.h>
#include <soc/soc.h>
#include <hal/gpio_ll.h>
#include <esp_attr.h>
#include <hal/rtc_io_hal.h>
#include <soc.h>
#include <errno.h>
#incl... | /content/code_sandbox/drivers/gpio/gpio_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,900 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stmpe1600
/**
* @file Driver for STMPE1600 I2C-based GPIO driver.
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/gpio.h>
#include <ze... | /content/code_sandbox/drivers/gpio/gpio_stmpe1600.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,582 |
```c
/*
*
*/
#define DT_DRV_COMPAT semtech_sx1509b
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_sx1509b.h>
#include <zephyr/dt-bindings/gpio/semtech-sx1509b.h>
#include <zephyr/drivers/i2c.h>
#i... | /content/code_sandbox/drivers/gpio/gpio_sx1509b.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,903 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_smartbond_gpio
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <stdint.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/irq.h>
#include <zephyr/pm/device.h>
#include <DA1469xAB.h>
#include <da1469x_pdc.h>
#include <da1469x_pd.h>
#define GPIO_PUPD_INPUT 0
#defi... | /content/code_sandbox/drivers/gpio/gpio_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,411 |
```objective-c
/*
* Xilinx Processor System MIO / EMIO GPIO controller driver
*
* Driver private data declarations, GPIO bank module
*
*/
#ifndef _ZEPHYR_DRIVERS_GPIO_GPIO_XLNX_PS_BANK_H_
#define _ZEPHYR_DRIVERS_GPIO_GPIO_XLNX_PS_BANK_H_
/*
* Register address calculation macros
* Register address offsets: comp... | /content/code_sandbox/drivers/gpio/gpio_xlnx_ps_bank.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 824 |
```unknown
# PCA953X GPIO configuration options
menuconfig GPIO_PCA953X
bool "PCA953X I2C GPIO chip"
default y
depends on DT_HAS_TI_TCA9538_ENABLED
select I2C
help
Enable driver for PCA953X I2C GPIO chip.
if GPIO_PCA953X
config GPIO_PCA953X_INIT_PRIORITY
int "Init priority"
default 70
help
Device driv... | /content/code_sandbox/drivers/gpio/Kconfig.pca953x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```unknown
# Infineon CAT1 GPIO configuration options
# an affiliate of Cypress Semiconductor Corporation
config GPIO_INFINEON_CAT1
bool "Infineon CAT1 GPIO driver"
default y
depends on DT_HAS_INFINEON_CAT1_GPIO_ENABLED
help
Enable support for Infineon CAT1 GPIO controllers.
``` | /content/code_sandbox/drivers/gpio/Kconfig.ifx_cat1 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
# XMC4XXX GPIO configuration
#
config GPIO_XMC4XXX
bool "XMC4XXX GPIO driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_GPIO_ENABLED
help
Enable GPIO driver for XMC4XXX line of MCUs
``` | /content/code_sandbox/drivers/gpio/Kconfig.xmc4xxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_gpio
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dt-bindings/gpio/nuvoton-npcx-gpio.h>
#include <soc.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include "soc_gpio.h"
#include "soc_miwu.h"
#include <zeph... | /content/code_sandbox/drivers/gpio/gpio_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,365 |
```unknown
# NEORV32 GPIO configuration options
config GPIO_NEORV32
bool "NEORV32 GPIO driver"
default y
depends on DT_HAS_NEORV32_GPIO_ENABLED
depends on SYSCON
help
Enable NEORV32 GPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.neorv32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```unknown
# Atmel SAM0 GPIO configuration options
config GPIO_SAM0
bool "Atmel SAM0 GPIO (PORT) driver"
default y
depends on DT_HAS_ATMEL_SAM0_GPIO_ENABLED
help
Enable support for the Atmel SAM0 'PORT' GPIO controllers.
``` | /content/code_sandbox/drivers/gpio/Kconfig.sam0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
# ADS114S0x GPIO configuration options
menuconfig GPIO_ADS114S0X
bool "ADS114S0x GPIO driver"
default y
depends on DT_HAS_TI_ADS114S0X_GPIO_ENABLED
depends on ADC_ADS114S0X_GPIO
help
Enable GPIO driver for ADS114S0x.
The ADS114S0x is a multi-channel analog frontend (AFE).
The GPIO port of t... | /content/code_sandbox/drivers/gpio/Kconfig.ads114s0x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 179 |
```unknown
# LMP90xxx GPIO configuration options
menuconfig GPIO_LMP90XXX
bool "LMP90xxx GPIO driver"
default y
depends on DT_HAS_TI_LMP90XXX_GPIO_ENABLED
depends on ADC_LMP90XXX_GPIO
help
Enable GPIO driver for LMP90xxx.
The LMP90xxx is a multi-channel, low power sensor analog
frontend (AFE).
The ... | /content/code_sandbox/drivers/gpio/Kconfig.lmp90xxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 169 |
```unknown
config GPIO_ENE_KB1200
bool "ENE KB1200 GPIO Driver"
default y
depends on DT_HAS_ENE_KB1200_GPIO_ENABLED
help
Enable support for the kb1200 GPIO controllers.
``` | /content/code_sandbox/drivers/gpio/Kconfig.ene | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
# Telink B91 GPIO configuration options
config GPIO_TELINK_B91
bool "Telink B91 GPIO driver"
default y
depends on DT_HAS_TELINK_B91_GPIO_ENABLED
help
Enable the B91 GPIO driver.
``` | /content/code_sandbox/drivers/gpio/Kconfig.b91 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```c
/*
*
*/
/**
* @file File that collects common data and configs for RS1718S chip. The file
* doesn't provide any API itself. The feature-specific API should be provided
* in separated files e.g. GPIO API.
*
* This file is placed in drivers/gpio directory, because GPIO is only one
* supported feature at the... | /content/code_sandbox/drivers/gpio/gpio_rt1718s.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,240 |
```unknown
config GPIO_RPI_PICO
default y
depends on DT_HAS_RASPBERRYPI_PICO_GPIO_ENABLED
select PICOSDK_USE_GPIO
bool "Raspberry Pi Pico GPIO driver"
``` | /content/code_sandbox/drivers/gpio/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```c
/*
*
*/
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
#include <helpers/nrfx_ram_ctrl.h>
#define _BUILD_MEM_REGION(node_id) \
{.dt_addr = DT_REG_ADDR(DT_PARENT(node_id)),\
.dt_size = DT_REG_SIZE(DT_PARENT(node_id))}
struct ret_mem_region {
uintptr_t dt_addr;
size_t dt_size;
};
static c... | /content/code_sandbox/drivers/retained_mem/retained_mem_nrf_ram_ctrl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 222 |
```c
/*
* an affiliate of Cypress Semiconductor Corporation
*
*/
/**
* @brief GPIO driver for Infineon CAT1 MCU family.
*
* Note:
* - Trigger detection on pin rising or falling edge (GPIO_INT_TRIG_BOTH)
* is not supported in current version of GPIO CAT1 driver.
*/
#define DT_DRV_COMPAT infineon_cat1_gpio
... | /content/code_sandbox/drivers/gpio/gpio_ifx_cat1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,431 |
```c
/*
*
*/
#define DT_DRV_COMPAT nordic_nrf_gpregret
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/retained_mem.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(retained_mem_nrf_gpregret, CONFIG... | /content/code_sandbox/drivers/retained_mem/retained_mem_nrf_gpregret.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 858 |
```unknown
config RETAINED_MEM_NRF_GPREGRET
bool "nRF GPREGRET driver"
default y
depends on DT_HAS_NORDIC_NRF_GPREGRET_ENABLED
help
Enable driver for Nordic nRF GPREGRET-based retained memory
register support.
config RETAINED_MEM_NRF_RAM_CTRL
bool "nRF RAM retention driver"
default y
depends on DT_HAS_ZE... | /content/code_sandbox/drivers/retained_mem/Kconfig.nrf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_retained_ram
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/retained_mem.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(retained_mem_zephyr_ram, CONFIG_R... | /content/code_sandbox/drivers/retained_mem/retained_mem_zephyr_ram.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 961 |
```unknown
config RETAINED_MEM_ZEPHYR_RAM
bool "Generic Zephyr RAM retained memory driver"
default y
depends on DT_HAS_ZEPHYR_RETAINED_RAM_ENABLED
help
Enable driver for retained memory in RAM.
config RETAINED_MEM_ZEPHYR_REG
bool "Generic Zephyr register retained memory driver"
default y
depends on DT_HAS_Z... | /content/code_sandbox/drivers/retained_mem/Kconfig.zephyr | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```c
/*
*
*/
#include <zephyr/drivers/retained_mem.h>
#include <zephyr/internal/syscall_handler.h>
static inline ssize_t z_vrfy_retained_mem_size(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_RETAINED_MEM));
return z_impl_retained_mem_size(dev);
}
#include <zephyr/syscalls/retained_mem_size_m... | /content/code_sandbox/drivers/retained_mem/retained_mem_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 335 |
```unknown
menuconfig RETAINED_MEM
bool "Retained memory drivers"
help
Enables support for drivers that can retain their data whilst the
device is powered (may be lost in low power states).
if RETAINED_MEM
config RETAINED_MEM_INIT_PRIORITY
int "Retained memory devices init priority"
default 40
help
Ret... | /content/code_sandbox/drivers/retained_mem/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 227 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_retained_reg
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/retained_mem.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(retained_mem_zephyr_reg, CONFIG_R... | /content/code_sandbox/drivers/retained_mem/retained_mem_zephyr_reg.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 897 |
```unknown
config CC13XX_CC26XX_RTC_TIMER
bool "TI SimpleLink CC13xx/CC26xx RTC system clock timer"
default y
depends on DT_HAS_TI_CC13XX_CC26XX_RTC_TIMER_ENABLED
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
help
This module implements a kernel device driver for the TI SimpleLink
CC13XX_CC2... | /content/code_sandbox/drivers/timer/Kconfig.cc13xx_cc26xx_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```unknown
#
config AMBIQ_STIMER_TIMER
bool "Ambiq STIMER system clock driver"
default y
depends on DT_HAS_AMBIQ_STIMER_ENABLED
select AMBIQ_HAL
select TICKLESS_CAPABLE
select AMBIQ_HAL_USE_STIMER
help
Ambiq Apollo stimer driver
``` | /content/code_sandbox/drivers/timer/Kconfig.ambiq | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
#
config MIPS_CP0_TIMER
bool "MIPS CP0 Timer"
depends on MIPS
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the MIPS CP0 timer.
``` | /content/code_sandbox/drivers/timer/Kconfig.mips_cp0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/irq.h>
#define TIMER_IRQ UTIL_CAT(XCHAL_TIMER, \
UTIL_CAT(CONFIG_XTENSA_TIMER_ID, _INTERRUPT))
#define CYC_PER_TICK (sys_clock_hw_cycles_per_sec() \... | /content/code_sandbox/drivers/timer/xtensa_sys_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 851 |
```c
/*
*/
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/drivers/interrupt_controller/loapic.h>
#include <zephyr/irq.h>
BUILD_ASSERT(!IS_ENABLED(CONFIG_TICKLESS_KERNEL), "this is a tickfull driver");
/*
* Overview... | /content/code_sandbox/drivers/timer/apic_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 895 |
```unknown
config LITEX_TIMER
bool "LiteX Timer"
default y
depends on DT_HAS_LITEX_TIMER0_ENABLED
select TIMER_HAS_64BIT_CYCLE_COUNTER
help
This module implements a kernel device driver for LiteX Timer.
``` | /content/code_sandbox/drivers/timer/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
config MCHP_XEC_RTOS_TIMER
bool "Microchip XEC series RTOS timer"
default y
depends on DT_HAS_MICROCHIP_XEC_RTOS_TIMER_ENABLED
select TICKLESS_CAPABLE
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
help
This module implements a kernel device driver for the Microchip
XEC series RTOS timer and provides t... | /content/code_sandbox/drivers/timer/Kconfig.mchp_xec_rtos | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 89 |
```unknown
choice
prompt "Default System Timer"
default HPET_TIMER if SOC_FAMILY_INTEL_ISH || SOC_ATOM || SOC_LAKEMONT
default APIC_TSC_DEADLINE_TIMER
depends on X86
help
Select Default System Timer.
config HPET_TIMER
bool "HPET timer"
depends on DT_HAS_INTEL_HPET_ENABLED
select IOAPIC
select LOAPIC
impl... | /content/code_sandbox/drivers/timer/Kconfig.x86 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 745 |
```c
/*
*
* Based on riscv_machine_timer.c and xtensa_sys_timer.c
*
*/
#include <limits.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <soc.h>
#include <mips/mipsregs.h>
#define CYC_PER_TICK ((... | /content/code_sandbox/drivers/timer/mips_cp0_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 835 |
```unknown
config RV32M1_LPTMR_TIMER
bool "RV32M1 LPTMR system timer driver"
default y
depends on DT_HAS_OPENISA_RV32M1_LPTMR_ENABLED
depends on RV32M1_INTMUX
help
This module implements a kernel device driver for using the LPTMR
peripheral as the system clock. It provides the standard "system clock
driv... | /content/code_sandbox/drivers/timer/Kconfig.rv32m1_lptmr | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
config GECKO_BURTC_TIMER
bool "SiLabs Gecko BURTC system clock driver"
depends on SOC_FAMILY_SILABS_S2
depends on DT_HAS_SILABS_GECKO_BURTC_ENABLED
select SOC_GECKO_BURTC
select TICKLESS_CAPABLE
select TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
help
If you enable this, BURTC will be used to provide hw_c... | /content/code_sandbox/drivers/timer/Kconfig.gecko | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 369 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/arch/arc/v2/aux_regs.h>
#include <zephyr/irq.h>
/*
* note: This implementation assumes Timer0 is present. Be sure
* to build the ARC CPU with Timer0.
*
*... | /content/code_sandbox/drivers/timer/arcv2_timer0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,056 |
```c
/*
*/
#include <cpuid.h> /* Header provided by the toolchain. */
#include <zephyr/init.h>
#include <zephyr/arch/x86/cpuid.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/drivers/interrupt_controller/loapic.h>
#include <zephyr/irq.h>
... | /content/code_sandbox/drivers/timer/apic_tsc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,734 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <altera_common.h>
#include <zephyr/irq.h>
#include "altera_avalon_timer_regs.h"
#include "altera_avalon_timer.h"
/* The old driver "now" API would return a full upti... | /content/code_sandbox/drivers/timer/altera_avalon_timer_hal.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 655 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_gpt_hw_timer
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <fsl_gpt.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/sys/time_units.h>
#include <zephyr/irq.h>
/*
* By limiting counter to 30 bits, we ensure tha... | /content/code_sandbox/drivers/timer/mcux_gpt_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,022 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_rtc_timer
/*
* TI SimpleLink CC13X2/CC26X2 RTC-based system timer
*
* This system timer implementation supports both tickless and ticking modes.
* RTC counts continually in 64-bit mode and timeouts are
* scheduled using the RTC comparator. An interrupt is tri... | /content/code_sandbox/drivers/timer/cc13xx_cc26xx_rtc_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,620 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <cmsis_core.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/counter.h>
#define COUNTER_MAX 0x00ffffff
#define TIMER_STOPPED 0xff000... | /content/code_sandbox/drivers/timer/cortex_m_systick.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,778 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/drivers/timer/nrf_rtc_timer.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys_clock.h>
#inclu... | /content/code_sandbox/drivers/timer/nrf_rtc_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,591 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.