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 |
|---|---|---|---|---|---|---|---|---|
```unknown
#
config TI_DM_TIMER
bool "TI Dual-Mode Timer"
default y
depends on DT_HAS_TI_AM654_TIMER_ENABLED
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for TI Dual-Mode timer. This
driver provides system tick interface.
``` | /content/code_sandbox/drivers/timer/Kconfig.ti_dm_timer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
config LEON_GPTIMER
bool "LEON timer"
default y
depends on DT_HAS_GAISLER_GPTIMER_ENABLED
select DYNAMIC_INTERRUPTS
help
This module implements a kernel device driver for the GRLIB
GPTIMER which is common in LEON systems.
``` | /content/code_sandbox/drivers/timer/Kconfig.leon_gptimer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
config RISCV_MACHINE_TIMER
bool "RISCV Machine Timer"
default y
depends on DT_HAS_ANDESTECH_MACHINE_TIMER_ENABLED || \
DT_HAS_NEORV32_MACHINE_TIMER_ENABLED || \
DT_HAS_NUCLEI_SYSTIMER_ENABLED || \
DT_HAS_SIFIVE_CLINT0_ENABLED || \
DT_HAS_TELINK_MACHINE_TIMER_ENABLED || \
DT_HAS_L... | /content/code_sandbox/drivers/timer/Kconfig.riscv_machine | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 343 |
```unknown
config ESP32_SYS_TIMER
bool "ESP32 sys-timer support (ESP32Cx series)"
depends on SOC_SERIES_ESP32C2 || SOC_SERIES_ESP32C3 || SOC_SERIES_ESP32C6
default y
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
help
This option enables the system timer ... | /content/code_sandbox/drivers/timer/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 108 |
```unknown
# Timer driver configuration options
menuconfig NRF_GRTC_TIMER
bool "nRF GRTC Timer"
default y
depends on DT_HAS_NORDIC_NRF_GRTC_ENABLED
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
select NRFX_GRTC
help
This module implements a kernel device driver for the nRF Global Real
Time ... | /content/code_sandbox/drivers/timer/Kconfig.nrf_grtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 428 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_itim_timer
/**
* @file
* @brief Nuvoton NPCX kernel device driver for "system clock driver" interface
*
* This file contains a kernel device driver implemented by the internal
* 64/32-bit timers in Nuvoton NPCX series. Via these two kinds of timers, the
* drive... | /content/code_sandbox/drivers/timer/npcx_itim_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,567 |
```unknown
config ALTERA_AVALON_TIMER
bool "Altera Avalon Interval Timer"
default y
depends on NIOS2
help
This module implements a kernel device driver for the Altera Avalon
Interval Timer as described in the Embedded IP documentation, for use
with Nios II and possibly other Altera soft CPUs. It provides ... | /content/code_sandbox/drivers/timer/Kconfig.altera_avalon | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <soc.h>
#include <stm32_ll_lptim.h>
#include <stm32_ll_bus.h>
#include <stm32_ll_rcc.h>
#include <stm32_ll_pwr.h>
#include <stm32_ll_system.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/driver... | /content/code_sandbox/drivers/timer/stm32_lptim_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,494 |
```c
/*
*
*/
#include <zephyr/arch/cpu.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/renesas_cpg_mssr.h>
#include <zephyr/irq.h>
#define DT_DRV_COMPAT renesas_rcar_cmt
#define TIMER_IRQ ... | /content/code_sandbox/drivers/timer/rcar_cmt_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,300 |
```unknown
DT_CHOSEN_IDLE_TIMER := zephyr,cortex-m-idle-timer
config CORTEX_M_SYSTICK
bool "Cortex-M SYSTICK timer"
depends on CPU_CORTEX_M_HAS_SYSTICK
default y
depends on DT_HAS_ARM_ARMV6M_SYSTICK_ENABLED || \
DT_HAS_ARM_ARMV7M_SYSTICK_ENABLED || \
DT_HAS_ARM_ARMV8M_SYSTICK_ENABLED || \
DT_HAS_AR... | /content/code_sandbox/drivers/timer/Kconfig.cortex_m_systick | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 568 |
```unknown
# Keep this option as an alias to INTEL_ADSP_TIMER because
# SoF is still referencing this symbol. The reason is the
# symbiotic relationship between these two projects, that from
# Zephyr's perspective is the framework and also the application.
# Once it gets merged, we have to update SoF to use INTEL_ADSP... | /content/code_sandbox/drivers/timer/Kconfig.cavs | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 221 |
```c
/*
*/
#define DT_DRV_COMPAT microchip_xec_rtos_timer
#include <zephyr/init.h>
#include <zephyr/devicetree.h>
#include <soc.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>
BUILD_ASSERT(!IS_ENABLED(CONFIG... | /content/code_sandbox/drivers/timer/mchp_xec_rtos_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,397 |
```c
/*
*
*/
#include <zephyr/devicetree.h>
#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_lptmr)
#define DT_DRV_COMPAT nxp_kinetis_lptmr
#else
#define DT_DRV_COMPAT nxp_lptmr
#endif
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/time_units.h>
#inc... | /content/code_sandbox/drivers/timer/mcux_lptmr_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,244 |
```unknown
config MCUX_OS_TIMER
bool "MCUX OS Event timer"
default y
depends on DT_HAS_NXP_OS_TIMER_ENABLED
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the NXP OS
event timer and provides the standard "system clock driver" interfaces.
if MCUX_OS_TIMER
config MCUX_OS_TIME... | /content/code_sandbox/drivers/timer/Kconfig.mcux_os | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 134 |
```c
/*
*
*/
/**
* @file
* @brief Initialize system clock driver
*
* Initializing the timer driver is done in this module to reduce code
* duplication.
*/
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
/* Weak-linked noop defaults for optional driver interf... | /content/code_sandbox/drivers/timer/sys_clock_init.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 102 |
```unknown
config ITE_IT8XXX2_TIMER
bool "ITE it8xxx2 timer driver"
default y
depends on DT_HAS_ITE_IT8XXX2_TIMER_ENABLED
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the ITE it8xxx2
HW timer model
``` | /content/code_sandbox/drivers/timer/Kconfig.ite_it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_os_timer
#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 <zephyr/drivers/counter.h>
#include <zephyr/pm/pm.h>
#include "fsl_ostimer.h"
#ifnd... | /content/code_sandbox/drivers/timer/mcux_os_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,193 |
```c
/*
*
*/
#define DT_DRV_COMPAT xlnx_ttcps
#include <zephyr/arch/cpu.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>
#include <soc.h>
#include <zephyr/drivers/timer/system_timer.h>
#include "xlnx_psttc_timer_priv.h"
#define TIMER_INDEX CONFIG_XLNX_PSTTC_TIMER_INDEX
#define TI... | /content/code_sandbox/drivers/timer/xlnx_psttc_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,472 |
```unknown
config NRF_RTC_TIMER
bool "nRF Real Time Counter (NRF_RTC1) Timer"
depends on CLOCK_CONTROL
depends on SOC_COMPATIBLE_NRF
select TICKLESS_CAPABLE
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
depends on !$(dt_nodelabel_enabled,rtc1)
help
This module implements a kernel device driver for the nRF Real Tim... | /content/code_sandbox/drivers/timer/Kconfig.nrf_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 314 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam0_rtc
/**
* @file
* @brief Atmel SAM0 series RTC-based system timer
*
* This system timer implementation supports both tickless and ticking modes.
* In tickless mode, RTC counts continually in 32-bit mode and timeouts are
* scheduled using the RTC comparator. In tic... | /content/code_sandbox/drivers/timer/sam0_rtc_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,159 |
```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/dw_ace.h>
#include <cavs-idc.h>
#include <adsp_shim.h>
#include <adsp_interrupt.h>
#include <zephyr/irq.h>
#define DT_DRV_COMP... | /content/code_sandbox/drivers/timer/intel_adsp_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,726 |
```c
/*
*/
#define DT_DRV_COMPAT ite_it8xxx2_timer
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
#include <soc.h>
#include <zephyr/spinlock.h>
#include <zephyr/sys_clock.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>... | /content/code_sandbox/drivers/timer/ite_it8xxx2_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,928 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#if defined(CONFIG_CLOCK_CONTROL_NRF)
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
#endif
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/drivers/timer/nrf_grtc_timer.h>
#include <nrfx_grtc.h>
#i... | /content/code_sandbox/drivers/timer/nrf_grtc_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,808 |
```unknown
config SMARTBOND_TIMER
bool "Renesas SmartBond(tm) timer"
default y
depends on SOC_FAMILY_RENESAS_SMARTBOND
depends on CLOCK_CONTROL
depends on !$(dt_nodelabel_enabled,timer2)
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the TIMER2 timer
and provides the standa... | /content/code_sandbox/drivers/timer/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 89 |
```c
/*
*
*/
#include <soc/soc_caps.h>
#include <soc/soc.h>
#include <hal/systimer_hal.h>
#include <hal/systimer_ll.h>
#include <esp_private/systimer.h>
#include <rom/ets_sys.h>
#include <esp_attr.h>
#include <zephyr/drivers/interrupt_controller/intc_esp32c3.h>
#include <zephyr/drivers/timer/system_timer.h>
#includ... | /content/code_sandbox/drivers/timer/esp32_sys_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,251 |
```unknown
config MCUX_GPT_TIMER
bool "MCUX GPT Event timer"
default y
depends on PM
depends on DT_HAS_NXP_GPT_HW_TIMER_ENABLED
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the NXP GPT timer,
and provides the standard "system clock driver" interfaces. It uses the
first ... | /content/code_sandbox/drivers/timer/Kconfig.mcux_gpt | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_hpet
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/irq.h>
#include <zephyr/linker/sections.h>
#include <zephyr/dt-bindings/interrupt-controller/intel-ioapic.h>
#include <so... | /content/code_sandbox/drivers/timer/hpet.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,211 |
```c
/*
*
*/
/**
* Driver for the timer model of the POSIX native_sim/posix board
* It provides the interfaces required by the kernel and the sanity testcases
* It also provides a custom k_busy_wait() which can be used with the
* POSIX arch and InfClock SOC
*/
#include <zephyr/types.h>
#include <zephyr/irq.h>
#... | /content/code_sandbox/drivers/timer/native_posix_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 844 |
```unknown
config ARM_ARCH_TIMER
bool "ARM architected timer"
depends on GIC
select ARCH_HAS_CUSTOM_BUSY_WAIT
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
help
This module implements a kernel device driver for the ARM architected
timer which provides per-cpu timers attached to a GIC to deli... | /content/code_sandbox/drivers/timer/Kconfig.arm_arch | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 206 |
```unknown
menuconfig ARCV2_TIMER
bool "ARC Timer"
default y
depends on ARC
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the ARCv2 processor timer 0
and provides the standard "system clock driver" interfaces.
config ARCV2_TIMER_IRQ_PRIORITY
int "ARC timer interrupt priori... | /content/code_sandbox/drivers/timer/Kconfig.arcv2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 110 |
```unknown
config XTENSA_TIMER
bool "Xtensa timer support"
depends on XTENSA
default y
select TICKLESS_CAPABLE
help
Enables a system timer driver for Xtensa based on the CCOUNT
and CCOMPARE special registers.
config XTENSA_TIMER_ID
int "System timer CCOMPAREn register index"
default 0
depends on XTENSA_... | /content/code_sandbox/drivers/timer/Kconfig.xtensa | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 168 |
```unknown
config SAM0_RTC_TIMER
bool "Atmel SAM0 series RTC timer"
default y
depends on DT_HAS_ATMEL_SAM0_RTC_ENABLED
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the Atmel SAM0
series Real Time Counter and provides the standard "system clock
driver" interfaces.
``` | /content/code_sandbox/drivers/timer/Kconfig.sam0_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```unknown
config MTK_ADSP_TIMER
bool "MediaTek Audio DSP timer"
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
select SYSTEM_CLOCK_LOCK_FREE_COUNT
help
MediaTek MT81xx Audio DSPs have a 13 Mhz wall clock timer
for system time that is independent of CPU speed.
``` | /content/code_sandbox/drivers/timer/Kconfig.mtk_adsp | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
config NPCX_ITIM_TIMER
bool "Nuvoton NPCX series internal 64/32-bit timers"
default y
depends on DT_HAS_NUVOTON_NPCX_ITIM_TIMER_ENABLED
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
help
This module implements a kernel device driver for the Nuvoton NPCX
series internal 64/32-bit t... | /content/code_sandbox/drivers/timer/Kconfig.npcx_itim | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 99 |
```c
*/
#include <zephyr/spinlock.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#define OSTIMER64_BASE DT_REG_ADDR(DT_NODELABEL(ostimer64))
#define OSTIMER_BASE DT_REG_ADDR(DT_NODELABEL(ostimer0))
/*
* This device has a LOT of timer hardware. There are SIX
* instantiated devices, with... | /content/code_sandbox/drivers/timer/mtk_adsp_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,624 |
```c
* Andrew Davis <afd@ti.com>
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>
#include <zephyr/kernel.h>
#include <zephyr/spinlock.h>
#include <zephyr/drivers/timer/ti_dmtimer.h>
#define DT_DRV_COMPAT ti_am654_timer
#define T... | /content/code_sandbox/drivers/timer/ti_dmtimer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,105 |
```unknown
# Timer driver configuration options
if SYS_CLOCK_EXISTS
menu "Timer drivers"
config TIMER_HAS_64BIT_CYCLE_COUNTER
bool
help
When this option is true, the k_cycle_get_64() call is
available to provide values from a 64-bit cycle counter.
config TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
bool "Timer qu... | /content/code_sandbox/drivers/timer/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 834 |
```c
/*
*
*/
#include <limits.h>
#include <zephyr/init.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/irq.h>
/* andestech,machine-timer */
#if DT_HAS_COMPAT_STATUS_OKAY(andestech_machine_timer)
#define DT_... | /content/code_sandbox/drivers/timer/riscv_machine_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,037 |
```unknown
config MCUX_LPTMR_TIMER
bool "MCUX LPTMR timer"
default y
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED || \
MCUX_KINETIS_LPTMR
depends on !COUNTER_MCUX_LPTMR
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
help
This module implements a kernel device driver for the NXP MCUX Low
Power Timer (LPTMR) an... | /content/code_sandbox/drivers/timer/Kconfig.mcux_lptmr | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 183 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_TIMER_XLNX_PSTTC_TIMER_PRIV_H_
#define ZEPHYR_DRIVERS_TIMER_XLNX_PSTTC_TIMER_PRIV_H_
/*
* Refer to the "Zynq UltraScale+ Device Technical Reference Manual" document
* from Xilinx for more information on this peripheral.
*/
/*
* Triple-timer Counter (TTC) Register O... | /content/code_sandbox/drivers/timer/xlnx_psttc_timer_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 813 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/drivers/timer/arm_arch_timer.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>
#include <zephyr/arch/cpu.h>
#ifdef CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
/* precompute CYC_PE... | /content/code_sandbox/drivers/timer/arm_arch_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,819 |
```c
/*
*
*/
#define DT_DRV_COMPAT ambiq_stimer
/**
* @file
* @brief Ambiq Apollo STIMER-based sys_clock driver
*
*/
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/irq.h>
#include <zephyr/spinlock.h>
/* ambiq-sd... | /content/code_sandbox/drivers/timer/ambiq_stimer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,606 |
```unknown
# Common RTC configuration
if NRF_RTC_TIMER || NRF_GRTC_TIMER
choice
prompt "Clock startup policy"
default SYSTEM_CLOCK_WAIT_FOR_STABILITY
config SYSTEM_CLOCK_NO_WAIT
bool "No wait"
help
System clock source is initiated but does not wait for clock readiness.
When this option is picked, system cl... | /content/code_sandbox/drivers/timer/Kconfig.nrf_xrtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 269 |
```c
/*
*
*/
/*
* This driver uses two independent GPTIMER subtimers in the following way:
* - subtimer 0 generates periodic interrupts and the ISR announces ticks.
* - subtimer 1 is used as up-counter.
*/
#define DT_DRV_COMPAT gaisler_gptimer
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_time... | /content/code_sandbox/drivers/timer/leon_gptimer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 972 |
```unknown
config RCAR_CMT_TIMER
bool "Renesas RCar cmt timer"
default y
depends on DT_HAS_RENESAS_RCAR_CMT_ENABLED
help
This module implements a kernel device driver for the Renesas RCAR
platform provides the standard "system clock driver" interfaces.
If unchecked, no timer will be used.
``` | /content/code_sandbox/drivers/timer/Kconfig.rcar_cmt | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```unknown
# STM32 LPTIM configuration options
DT_CHOSEN_STDBY_TIMER := st,lptim-stdby-timer
menuconfig STM32_LPTIM_TIMER
bool "STM32 Low Power Timer [EXPERIMENTAL]"
default y
depends on DT_HAS_ST_STM32_LPTIM_ENABLED
depends on CLOCK_CONTROL && PM
select TICKLESS_CAPABLE
select EXPERIMENTAL
help
This modul... | /content/code_sandbox/drivers/timer/Kconfig.stm32_lptim | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 614 |
```c
/*
*
* Based on:
*
*/
#define DT_DRV_COMPAT silabs_gecko_burtc
/**
* @file
* @brief SiLabs Gecko BURTC-based sys_clock driver
*
*/
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/drivers/pinctrl.h>
#inclu... | /content/code_sandbox/drivers/timer/gecko_burtc_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,824 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/smartbond_clock_control.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 <da146... | /content/code_sandbox/drivers/timer/smartbond_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,810 |
```unknown
config NATIVE_POSIX_TIMER
bool "(POSIX) native_sim/posix timer driver"
default y
depends on BOARD_NATIVE_POSIX
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
help
This module implements a kernel device driver for the native_sim/posix HW timer
... | /content/code_sandbox/drivers/timer/Kconfig.native_posix | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```c
/*
*
*/
#define DT_DRV_COMPAT openisa_rv32m1_lptmr
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <soc.h>
#include <zephyr/irq.h>
/*
* This is just a getting started point.
*
* Assumptions and limitations:
*
* - sys... | /content/code_sandbox/drivers/timer/rv32m1_lptmr_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,225 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_timer0
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/spinlock.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <soc.h>
#define TIMER_LOAD_ADDR DT_INST_REG_ADDR_BY_NAME(0, load)
#define ... | /content/code_sandbox/drivers/timer/litex_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 758 |
```unknown
config ESPI_EMUL
bool "eSPI emulator"
default y
depends on DT_HAS_ZEPHYR_ESPI_EMUL_CONTROLLER_ENABLED
depends on EMUL
help
Enable the eSPI emulator driver. This is a fake driver,
it does not talk to real hardware. Instead it talks to emulation
drivers that pretend to be devices on the emulated... | /content/code_sandbox/drivers/espi/Kconfig.espi_emul | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 170 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_espi
#include <assert.h>
#include <stdlib.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/dt-bindings/espi/npcx_espi.h>
#include <zephyr/kernel.h>
#incl... | /content/code_sandbox/drivers/espi/espi_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13,339 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_espi
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
#include "espi_utils.h"
/* Minimum delay before acknowledging a virtual w... | /content/code_sandbox/drivers/espi/espi_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15,425 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_espi_taf
#include <soc.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/espi_saf.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(espi_taf, CONFIG_ESPI_LOG_LEVEL);
static const struct dev... | /content/code_sandbox/drivers/espi/espi_taf_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,623 |
```c
/*
*
*/
#include <zephyr/drivers/espi.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_espi_config(const struct device *dev,
struct espi_cfg *cfg)
{
struct espi_cfg cfg_copy;
K_OOPS(K_SYSCALL_DRIVER_ESPI(dev, config));
K_OOPS(k_usermode_from_copy(&cfg_copy, cfg,
sizeo... | /content/code_sandbox/drivers/espi/espi_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,600 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_espi_saf
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/espi_saf.h>
#include <zephyr/logging/log.h>
#include "espi_utils.h"
LOG_MODULE_REGISTER(espi_saf, CONFIG_ESPI_LOG_LEVEL);
/* SAF EC Por... | /content/code_sandbox/drivers/espi/espi_saf_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,051 |
```unknown
config ESPI_IT8XXX2
bool "ITE IT8XXX2 embedded controller ESPI driver"
default y
depends on DT_HAS_ITE_IT8XXX2_ESPI_ENABLED
depends on SOC_IT8XXX2
help
Enable ITE IT8XXX2 ESPI driver.
if ESPI_IT8XXX2
config ESPI_OOB_CHANNEL
default y
config ESPI_PERIPHERAL_8042_KBC
default y
config ESPI_PERIPH... | /content/code_sandbox/drivers/espi/Kconfig.it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,217 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_espi_v2
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ecia.h>
#include <zephyr/dt-bindings/i... | /content/code_sandbox/drivers/espi/espi_mchp_xec_v2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15,145 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_host_sub
/**
* @file
* @brief Nuvoton NPCX host sub modules driver
*
* This file contains the drivers of NPCX Host Sub-Modules that serve as an
* interface between the Host and Core domains. Please refer the block diagram.
*
* ... | /content/code_sandbox/drivers/espi/host_subs_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,950 |
```unknown
# Microchip XEC ESPI configuration options
config ESPI_XEC
bool "XEC Microchip ESPI driver"
default y
depends on DT_HAS_MICROCHIP_XEC_ESPI_ENABLED
help
Enable the Microchip XEC ESPI driver for MEC15xx family.
config ESPI_XEC_V2
bool "XEC Microchip ESPI V2 driver"
default y
depends on DT_HAS_MICR... | /content/code_sandbox/drivers/espi/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,447 |
```objective-c
/*
*
*/
/**
* @file Header with definitions for eSPI drivers callback functions
*/
#ifndef ZEPHYR_DRIVERS_ESPI_UTILS_H_
#define ZEPHYR_DRIVERS_ESPI_UTILS_H_
/**
* @brief Generic function to insert or remove a callback from a callback list.
*
* @param callbacks A pointer to the original list of ... | /content/code_sandbox/drivers/espi/espi_utils.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 430 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_ESPI_MCHP_XEC_ESPI_V2_H_
#define ZEPHYR_DRIVERS_ESPI_MCHP_XEC_ESPI_V2_H_
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/pinctrl.h>
/* #define ESPI_XEC_V2_DEBUG 1 */
struct espi_isr {
uint8_t girq_id;
uint8_t ... | /content/code_sandbox/drivers/espi/espi_mchp_xec_v2.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 802 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_espi_saf_v2
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/espi_saf.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_x... | /content/code_sandbox/drivers/espi/espi_saf_mchp_xec_v2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,998 |
```unknown
# NPCX eSPI driver configuration options
config ESPI_NPCX
bool "Nuvoton NPCX embedded controller (EC) ESPI driver"
default y
depends on SOC_FAMILY_NPCX
depends on DT_HAS_NUVOTON_NPCX_ESPI_ENABLED
help
This option enables the Intel Enhanced Serial Peripheral Interface
(eSPI) for NPCX family of pr... | /content/code_sandbox/drivers/espi/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,068 |
```unknown
# eSPI configuration options
menuconfig ESPI
bool "Enhanced Serial Peripheral Interface (eSPI) bus drivers"
help
Enable ESPI Driver.
if ESPI
source "drivers/espi/Kconfig.xec"
source "drivers/espi/Kconfig.npcx"
source "drivers/espi/Kconfig.espi_emul"
source "drivers/espi/Kconfig.it8xxx2"
module =... | /content/code_sandbox/drivers/espi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,389 |
```c
/*
*
*
* This driver creates fake eSPI buses which can contain emulated devices
* (mainly host), implemented by a separate emulation driver.
* The API between this driver/controller and device emulators attached
* to its bus is defined by struct emul_espi_device_api.
*/
#define DT_DRV_COMPAT zephyr_espi_em... | /content/code_sandbox/drivers/espi/espi_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,819 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_espi_host_dev
#include <zephyr/kernel.h>
#include <soc.h>
#include <errno.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ecia.h>
#include <zephyr/dt-bind... | /content/code_sandbox/drivers/espi/espi_mchp_xec_host_v2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,068 |
```c
/*
*
*
* This driver creates fake MSPI buses which can contain emulated devices,
* implemented by separate emulation drivers.
* The API between this driver and its emulators is defined by
* struct mspi_emul_driver_api.
*/
#define DT_DRV_COMPAT zephyr_mspi_emul_controller
#define LOG_LEVEL CONFIG_MSPI_LOG_... | /content/code_sandbox/drivers/mspi/mspi_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,891 |
```unknown
config MSPI_EMUL
bool "MSPI emulator"
default y
depends on DT_HAS_ZEPHYR_MSPI_EMUL_CONTROLLER_ENABLED
depends on EMUL
select MSPI_XIP
select MSPI_SCRAMBLE
select MSPI_TIMING
select GPIO
help
Enable the MSPI emulator driver. This is a fake driver in that it
does not talk to real hardware. Inst... | /content/code_sandbox/drivers/mspi/Kconfig.mspi_emul | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```unknown
config MSPI_AMBIQ_AP3
bool "Ambiq Apollo3 series MSPI driver"
default y
depends on DT_HAS_AMBIQ_MSPI_CONTROLLER_ENABLED
select AMBIQ_HAL
select AMBIQ_HAL_USE_MSPI
select MSPI_XIP
select MSPI_SCRAMBLE
select MSPI_TIMING
select GPIO
help
Enable driver for Ambiq MSPI.
config MSPI_AMBIQ_BUFF_RAM_L... | /content/code_sandbox/drivers/mspi/Kconfig.ambiq | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 176 |
```objective-c
/*
*
*/
#ifndef MSPI_AMBIQ_H_
#define MSPI_AMBIQ_H_
#include <am_mcu_apollo.h>
/* Hand-calculated minimum heap sizes needed to return a successful
* 1-byte allocation. See details in lib/os/heap.[ch]
*/
#define MSPI_AMBIQ_HEAP_MIN_SIZE (sizeof(void *) > 4 ? 56 : 44)
#define MSPI_AMBIQ_HEAP_DEFIN... | /content/code_sandbox/drivers/mspi/mspi_ambiq.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 552 |
```unknown
# MSPI driver configuration options
#
# MSPI Drivers
#
menuconfig MSPI
bool "Multi-bit Serial Peripheral Interface (MSPI) bus drivers"
help
Enable support for the MSPI hardware bus.
if MSPI
config MSPI_ASYNC
bool "Asynchronous call support"
select POLL
help
This option enables the asynchronous... | /content/code_sandbox/drivers/mspi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 343 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_it8xxx2_espi
#include <assert.h>
#include <zephyr/drivers/espi.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/interrupt_controller/wuc_ite_it8xxx2.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <soc.h>
#include <soc_dt.h>
#include "soc_espi.h... | /content/code_sandbox/drivers/espi/espi_it8xxx2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19,233 |
```c
/*
*
*/
#define DT_DRV_COMPAT ambiq_mspi_controller
#include <zephyr/logging/log.h>
#include <zephyr/logging/log_instance.h>
LOG_MODULE_REGISTER(mspi_ambiq_ap3);
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/ms... | /content/code_sandbox/drivers/mspi/mspi_ambiq_ap3.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12,630 |
```c
/*
*
*/
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L /* Required for gmtime_r */
#include <zephyr/drivers/gnss.h>
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <string.h>
#include <time.h>
#inclu... | /content/code_sandbox/drivers/gnss/gnss_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,377 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_GNSS_GNSS_PARSE_H_
#define ZEPHYR_DRIVERS_GNSS_GNSS_PARSE_H_
#include <zephyr/types.h>
/**
* @brief Parse decimal string to nano parts
*
* @example "-1231.3512" -> -1231351200000
*
* @param str The decimal string to be parsed
* @param nano Destination for parsed ... | /content/code_sandbox/drivers/gnss/gnss_parse.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 439 |
```unknown
config GNSS_U_BLOX_M10
bool "U-BLOX M10 GNSS Module"
default y
depends on GNSS
depends on DT_HAS_U_BLOX_M10_ENABLED
depends on GNSS_REFERENCE_FRAME_WGS84
select MODEM_MODULES
select MODEM_BACKEND_UART
select MODEM_CHAT
select MODEM_UBX
select GNSS_PARSE
select GNSS_NMEA0183
select GNSS_NMEA0183_... | /content/code_sandbox/drivers/gnss/Kconfig.u_blox_m10 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 222 |
```unknown
config GNSS_LUATOS_AIR530Z
bool "Luatos Air530z GNSS device"
default y
depends on GNSS
depends on DT_HAS_LUATOS_AIR530Z_ENABLED
depends on GNSS_REFERENCE_FRAME_WGS84
select MODEM_MODULES
select MODEM_BACKEND_UART
select MODEM_CHAT
select GNSS_PARSE
select GNSS_NMEA0183
select GNSS_NMEA0183_MATCH
... | /content/code_sandbox/drivers/gnss/Kconfig.luatos_air530z | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 199 |
```c
/*
*
*/
#include <zephyr/drivers/gnss.h>
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/modem/chat.h>
#include <zephyr/modem/ubx.h>
#include <zephyr/modem/backend/uart.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <string.h>
#include <stdlib.h>
#include "gnss_nmea0183.... | /content/code_sandbox/drivers/gnss/gnss_u_blox_m10.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,906 |
```objective-c
/*
*
*/
/*
* The GNSS NMEA0183 match is a set of modem_chat match handlers and a context to be
* passed to said handlers, to parse the NMEA0183 messages received from a NMEA0183
* based GNSS device.
*
* The context struct gnss_nmea0183_match_data *data is placed as the first member
* of the data... | /content/code_sandbox/drivers/gnss/gnss_nmea0183_match.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 879 |
```unknown
config GNSS_NMEA_GENERIC
bool "Generic GNSS NMEA device"
default y
depends on GNSS
depends on DT_HAS_GNSS_NMEA_GENERIC_ENABLED
depends on GNSS_REFERENCE_FRAME_WGS84
select MODEM_MODULES
select MODEM_BACKEND_UART
select MODEM_CHAT
select GNSS_PARSE
select GNSS_NMEA0183
select GNSS_NMEA0183_MATCH
... | /content/code_sandbox/drivers/gnss/Kconfig.generic | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 194 |
```c
/*
*
*/
#include "gnss_dump.h"
#include <stdlib.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <string.h>
#if CONFIG_GNSS_DUMP_TO_LOG
static char dump_buf[CONFIG_GNSS_DUMP_TO_LOG_BUF_SIZE];
#endif /* CONFIG_GNSS_DUMP_TO_LOG */
static const char *gnss_fix_status_to_str(enum gnss_fix_st... | /content/code_sandbox/drivers/gnss/gnss_dump.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,520 |
```c
/*
*
*/
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/kernel.h>
#include <zephyr/modem/chat.h>
#include <string.h>
#include "gnss_parse.h"
#include "gnss_nmea0183.h"
#include "gnss_nmea0183_match.h"
static int gnss_nmea0183_match_parse_utc(char **argv, uint16_t argc, uint32_t *utc)
{
int64_... | /content/code_sandbox/drivers/gnss/gnss_nmea0183_match.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,023 |
```unknown
config GNSS_EMUL
bool "Emulated GNSS driver"
default y
depends on DT_HAS_ZEPHYR_GNSS_EMUL_ENABLED
depends on GNSS_REFERENCE_FRAME_WGS84
select TIMEOUT_64BIT
help
Enable emulated GNSS driver.
``` | /content/code_sandbox/drivers/gnss/Kconfig.emul | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "gnss_parse.h"
#define GNSS_PARSE_NANO_KNOTS_IN_MMS (1943840LL)
#define GNSS_PARSE_NANO (1000000000LL)
#define GNSS_PARSE_MICRO (1000000LL)... | /content/code_sandbox/drivers/gnss/gnss_parse.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 897 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_GNSS_GNSS_NMEA0183_H_
#define ZEPHYR_DRIVERS_GNSS_GNSS_NMEA0183_H_
#include <zephyr/drivers/gnss.h>
/**
* @brief Compute NMEA0183 checksum
*
* @example "PAIR002" -> 0x38
*
* @param str String from which checksum is computed
*
* @retval checksum
*/
uint8_t gnss_... | /content/code_sandbox/drivers/gnss/gnss_nmea0183.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,525 |
```c
/*
*
*/
#include <zephyr/drivers/gnss.h>
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/modem/chat.h>
#include <zephyr/modem/backend/uart.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/gpio.h>
#include <string.h>
#include "gnss_nmea0183.h"
#include "gnss_nm... | /content/code_sandbox/drivers/gnss/gnss_luatos_air530z.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,910 |
```c
/*
*
*/
#include <zephyr/drivers/gnss.h>
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/modem/chat.h>
#include <zephyr/modem/backend/uart.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/pm/device.h>
#include <string.h>
#include "gnss_nmea0183.h"
#include "gnss_nm... | /content/code_sandbox/drivers/gnss/gnss_nmea_generic.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,541 |
```unknown
config GNSS_QUECTEL_LCX6G
bool "Quectel LCX6G GNSS modem driver"
default y
depends on GNSS
depends on DT_HAS_QUECTEL_LC26G_ENABLED || DT_HAS_QUECTEL_LC76G_ENABLED || DT_HAS_QUECTEL_LC86G_ENABLED
depends on GNSS_REFERENCE_FRAME_WGS84
select MODEM_MODULES
select MODEM_BACKEND_UART
select MODEM_CHAT
s... | /content/code_sandbox/drivers/gnss/Kconfig.quectel_lcx6g | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 271 |
```c
/*
*
*/
#include <zephyr/drivers/gnss.h>
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/modem/chat.h>
#include <zephyr/modem/backend/uart.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/pm/device_runtime.h>
#include <string.h>
#inclu... | /content/code_sandbox/drivers/gnss/gnss_quectel_lcx6g.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,874 |
```unknown
menuconfig GNSS
bool "GNSS drivers"
select EXPERIMENTAL
help
Enable GNSS drivers and configuration.
if GNSS
config GNSS_SATELLITES
bool "GNSS satellites support"
help
Enable GNSS sattelites callback.
config GNSS_DUMP
bool "GNSS dump support"
depends on LOG
help
Enable GNSS dump library
... | /content/code_sandbox/drivers/gnss/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 447 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_GNSS_GNSS_DUMP_H_
#define ZEPHYR_DRIVERS_GNSS_GNSS_DUMP_H_
#include <zephyr/drivers/gnss.h>
/**
* @brief Dump struct gnss_info as string
*
* @param str Destination for dumped GNSS info
* @param strsize Size of str
* @param info GNSS info to dump
*
* @retval 0 if... | /content/code_sandbox/drivers/gnss/gnss_dump.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 425 |
```c
/*
*
*/
#include <zephyr/drivers/gnss/gnss_publish.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/iterable_sections.h>
static K_SEM_DEFINE(semlock, 1, 1);
void gnss_publish_data(const struct device *dev, const struct gnss_data *data)
{
(void)k_sem_take(&semlock, K_FOREVER);
STRUCT_SECTION_FOREACH(gnss_... | /content/code_sandbox/drivers/gnss/gnss_publish.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 246 |
```c
/*
*
*/
#include "gnss_u_blox_protocol.h"
const uint32_t ubx_baudrate[UBX_BAUDRATE_COUNT] = {
4800,
9600,
19200,
38400,
57600,
115200,
230400,
460800,
921600,
};
static inline int ubx_validate_payload_size_ack(uint8_t msg_id, uint16_t payload_size)
{
switch (msg_id) {
case UBX_ACK_ACK:
return pay... | /content/code_sandbox/drivers/gnss/gnss_u_blox_protocol/gnss_u_blox_protocol.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,572 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <string.h>
#include <stdarg.h>
#include <stdarg.h>
#include "gnss_nmea0183.h"
#include "gnss_parse.h"
#define GNSS_NMEA0183_PICO_DEGREES_IN_DEGREE (1000000000000ULL)
#define GNSS_NMEA0183_PICO_DEGREES_IN_MINUTE (GNSS_NMEA0183_PICO_DEGREES_IN_DEGREE / 60UL... | /content/code_sandbox/drivers/gnss/gnss_nmea0183.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,083 |
```objective-c
/*
*
*/
/* Referred some enum definitions from file "include/zephyr/drivers/gnss/ublox_neo_m8_defines.h"
* from the pull request #46447 (link - path_to_url
*/
#ifndef ZEPHYR_U_BLOX_PROTOCOL_DEFINES_
#define ZEPHYR_U_BLOX_PROTOCOL_DEFINES_
enum ubx_gnss_id {
UBX_GNSS_ID_GPS = 0,
UBX_GNSS_ID_SBAS ... | /content/code_sandbox/drivers/gnss/gnss_u_blox_protocol/gnss_u_blox_protocol_defines.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,629 |
```unknown
menuconfig DISK_DRIVER_LOOPBACK
bool "Loopback Disk"
depends on FILE_SYSTEM
help
Enables mounting the contents of a file as a separate disk.
if DISK_DRIVER_LOOPBACK
config LOOPBACK_DISK_SECTOR_SIZE
int "Loopback disk sector size"
default 512
help
Sets the sector size used for loopback-mounted ... | /content/code_sandbox/drivers/disk/Kconfig.loopback | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 110 |
```unknown
config DISK_DRIVER_RAM
bool "RAM Disk"
depends on DT_HAS_ZEPHYR_RAM_DISK_ENABLED
default y
help
RAM buffer used to emulate storage disk.
This option can be used to test the file
system.
if DISK_DRIVER_RAM
module = RAMDISK
module-str = ramdisk
source "subsys/logging/Kconfig.template.log_config... | /content/code_sandbox/drivers/disk/Kconfig.ram | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```c
/*
*
*/
#include <sys/unistd.h>
#include <zephyr/drivers/disk.h>
#include <zephyr/fs/fs.h>
#include <zephyr/fs/fs_interface.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/loopback_disk.h>
LOG_MODULE_REGISTER(loopback_disk_access, CONFIG_LOOPBACK_DISK_LOG_LEVEL);
#def... | /content/code_sandbox/drivers/disk/loopback_disk.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,319 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.