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
rsource "*/Kconfig"
``` | /content/code_sandbox/drivers/pinctrl/renesas/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
config PINCTRL_RPI_PICO
bool "RaspberryPi Pico pin controller driver"
default y
depends on DT_HAS_RASPBERRYPI_PICO_PINCTRL_ENABLED
select PICOSDK_USE_GPIO
help
RaspberryPi Pico pinctrl driver
``` | /content/code_sandbox/drivers/pinctrl/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```unknown
config PINCTRL_RZT2M
bool "Renesas RZ/T2M pin controller driver"
default y
depends on DT_HAS_RENESAS_RZT2M_PINCTRL_ENABLED
help
Renesas RZ/T2M pinctrl driver
``` | /content/code_sandbox/drivers/pinctrl/renesas/rz/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_rzt2m_pinctrl
#include <zephyr/arch/cpu.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#define PORT_NSR DT_INST_REG_ADDR_BY_NAME(0, port_nsr)
#define PTADR DT_INST_REG_ADDR_BY_NAME(0, ptadr)
/* Port m mode control register */
#define PMC(port) (PORT_NS... | /content/code_sandbox/drivers/pinctrl/renesas/rz/pinctrl_rzt2m.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 662 |
```c
/*
*
*/
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <string.h>
#define DT_DRV_COMPAT renesas_ra_pinctrl
#define PORT_NUM 15
#define PIN_NUM 16
enum {
PWPR_PFSWE_POS = 6,
PWPR_B0WI_POS = 7,
};
static inline uint32_t pinctrl_ra_read_PmnFPS(size_t port, size_t pin)
{
return sys_... | /content/code_sandbox/drivers/pinctrl/renesas/ra/pinctrl_renesas_ra.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 668 |
```unknown
config PINCTRL_RENESAS_RA
bool "Renesas RA series pin controller driver"
default y
depends on DT_HAS_RENESAS_RA_PINCTRL_ENABLED
help
Enable Renesas RA series pin controller driver.
config PINCTRL_RENESAS_RA_PFS
bool "Renesas RA pinctrl driver"
default y
depends on DT_HAS_RENESAS_RA_PINCTRL_PFS_EN... | /content/code_sandbox/drivers/pinctrl/renesas/ra/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```c
/*
*
*/
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#define PORT_POS (8)
int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt, uintptr_t reg)
{
bsp_io_port_pin_t port_pin;
R_BSP_PinAccessEnable();
for (uint8_t i = 0U; i < pin_cnt; i++) {
const pinctrl_soc_pin_t *pin = &pin... | /content/code_sandbox/drivers/pinctrl/renesas/ra/pinctrl_ra.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 149 |
```c
/*
*
*/
#include <zephyr/drivers/pinctrl.h>
#include <DA1469xAB.h>
/** Utility macro to retrieve starting mode register and pin count for GPIO port from DT */
#define GPIO_PORT_ENTRY(nodelabel) \
{ DT_REG_ADDR_BY_IDX(DT_NODELABEL(nodelabel), 1), \
DT_PROP(DT_NODELABEL(nodelabel), ngpios) }
struc... | /content/code_sandbox/drivers/pinctrl/renesas/smartbond/pinctrl_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 421 |
```unknown
config PINCTRL_SMARTBOND
bool "Renesas SmartBond(tm) pinctrl driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_PINCTRL_ENABLED
help
Enable pinctrl driver for Renesas SmartBond(tm) MCU family.
``` | /content/code_sandbox/drivers/pinctrl/renesas/smartbond/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_PINCTRL_PFC_RCAR_H_
#define ZEPHYR_DRIVERS_PINCTRL_PFC_RCAR_H_
#include <stdint.h>
#include <pinctrl_soc.h>
const struct pfc_bias_reg *pfc_rcar_get_bias_regs(void);
const struct pfc_drive_reg *pfc_rcar_get_drive_regs(void);
/**
* @brief set the register index for a g... | /content/code_sandbox/drivers/pinctrl/renesas/rcar/pfc_rcar.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 165 |
```c
/*
*
*
*/
#include <pinctrl_soc.h>
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r8a77951.h>
const struct pfc_drive_reg pfc_drive_regs[] = {
/* DRVCTRL0 */
{ 0x0300, {
{ PIN_QSPI0_SPCLK, 28, 2 }, /* QSPI0_SPCLK */
{ PIN_QSPI0_MOSI_IO0, 24, 2 }, /* QSPI0_MOSI_IO0 */
{ PIN_... | /content/code_sandbox/drivers/pinctrl/renesas/rcar/pfc_r8a77951.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,156 |
```c
/*
*
*
*/
#include <pinctrl_soc.h>
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r8a77961.h>
const struct pfc_drive_reg pfc_drive_regs[] = {
/* DRVCTRL0 */
{ 0x0300, {
{ PIN_QSPI0_SPCLK, 28, 2 }, /* QSPI0_SPCLK */
{ PIN_QSPI0_MOSI_IO0, 24, 2 }, /* QSPI0_MOSI_IO0 */
{ PIN_... | /content/code_sandbox/drivers/pinctrl/renesas/rcar/pfc_r8a77961.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,156 |
```c
/*
*
*
*/
#define DT_DRV_COMPAT renesas_rcar_pfc
#include "pfc_rcar.h"
#include <zephyr/arch/cpu.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/init.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/device_mmio.h>
#define PFC_RCAR_PMMR 0x0
/* Gen3 only has one base... | /content/code_sandbox/drivers/pinctrl/renesas/rcar/pfc_rcar.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,473 |
```unknown
config PINCTRL_RCAR_PFC
bool "Pin controller driver for Renesas RCar SoC"
default y
depends on DT_HAS_RENESAS_RCAR_PFC_ENABLED
help
Enable pin controller driver for Renesas RCar SoC
config PINCTRL_RCAR_VOLTAGE_CONTROL
bool "Voltage control functionality of Renesas R-Car PFC driver"
default y if SO... | /content/code_sandbox/drivers/pinctrl/renesas/rcar/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```c
/*
*
*/
#include <zephyr/syscall_handler.h>
#include <zephyr/drivers/haptics.h>
static inline int z_vrfy_haptics_start_output(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_DRIVER_HAPTICS(dev, start_output));
return z_impl_haptics_start_output(dev);
}
#include <syscalls/haptics_start_output_mrsh.c>
static i... | /content/code_sandbox/drivers/haptics/haptics_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 140 |
```c
/*
*
*
* DRV2605 Datasheet: path_to_url
*/
#define DT_DRV_COMPAT ti_drv2605
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/haptics.h>
#include <zephyr/drivers/haptics/drv2605.h>
#include <zephyr/kernel.h>
#in... | /content/code_sandbox/drivers/haptics/drv2605.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,193 |
```unknown
#
menuconfig HAPTICS
bool "Haptic feedback drivers"
help
Enable haptics driver configuration.
if HAPTICS
module = HAPTICS
module-str = haptics
source "subsys/logging/Kconfig.template.log_config"
config HAPTICS_INIT_PRIORITY
int "Haptic driver init priority"
default 90
help
Haptic driver initia... | /content/code_sandbox/drivers/haptics/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```unknown
config HAPTICS_DRV2605
bool "DRV2605 Haptics Driver"
default y
depends on DT_HAS_TI_DRV2605_ENABLED
select I2C
help
Enable I2C-based driver for the Texas Instruments DRV2605 Haptics
Driver.
``` | /content/code_sandbox/drivers/haptics/Kconfig.drv2605 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
config RTC_ATMEL_SAM
bool "Atmel SAM RTC driver"
default y
depends on DT_HAS_ATMEL_SAM_RTC_ENABLED
help
Atmel Real-Time Clock (RTC) driver used on SAM SoC series.
``` | /content/code_sandbox/drivers/rtc/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
# Author: Sri Surya <srisurya@linumiz.com>
config RTC_AM1805
bool "AMBIQ AM1805 RTC driver"
default y
depends on DT_HAS_AMBIQ_AM1805_ENABLED
select I2C
help
Enable the AMBIQ AM1805 RTC driver.
if RTC_AM1805
config RTC_AM1805_THREAD_STACK_SIZE
int "Stack size for the am1805 interrupt thread"
def... | /content/code_sandbox/drivers/rtc/Kconfig.am1805 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 162 |
```unknown
config RTC_AMBIQ
bool "AMBIQ RTC driver"
default y
depends on DT_HAS_AMBIQ_RTC_ENABLED
select AMBIQ_HAL
help
Enable the AMBIQ RTC driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.ambiq | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```c
/*
*
*
*/
#include <errno.h>
#include <pinctrl_soc.h>
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r8a779f0.h>
const struct pfc_drive_reg pfc_drive_regs[] = {
/* DRV0CTRL0 */
{ 0x80, {
{ RCAR_GP_PIN(0, 7), 28, 3 }, /* TX0 */
{ RCAR_GP_PIN(0, 6), 24, 3 }, /* RX0 */
{ RCAR_GP_PIN(0, 5), 20, 3... | /content/code_sandbox/drivers/pinctrl/renesas/rcar/pfc_r8a779f0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,676 |
```unknown
# Intel SoC RTC configuration options
config RTC_MOTOROLA_MC146818
bool "RTC driver for x86 CMOS/RTC clock"
default y if !COUNTER
depends on DT_HAS_MOTOROLA_MC146818_ENABLED
``` | /content/code_sandbox/drivers/rtc/Kconfig.mc146818 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_fake_rtc
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/drivers/rtc/rtc_fake.h>
#ifdef CONFIG_ZTEST
#include <zephyr/ztest.h>
#endif /* CONFIG_ZTEST */
DEFINE_FAKE_VALUE_FUNC(int, rtc_fake_set_time, const struct devi... | /content/code_sandbox/drivers/rtc/rtc_fake.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 772 |
```unknown
config RTC_STM32
bool "STM32 RTC driver"
default y if !COUNTER
depends on DT_HAS_ST_STM32_RTC_ENABLED && !SOC_SERIES_STM32F1X
select USE_STM32_LL_RTC
select USE_STM32_LL_PWR
select USE_STM32_LL_RCC
help
Build RTC driver for STM32 SoCs, excluding STM32F1 series.
``` | /content/code_sandbox/drivers/rtc/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include "rtc_utils.h"
#include <stdint.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/rtc.h>
... | /content/code_sandbox/drivers/rtc/rtc_pcf8563.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,098 |
```c
/*
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/rtc.h>
#include <time.h>
#include <stdlib.h>
/* Formats accepted when setting date and/or time */
static const char format_iso8601[] = "%FT%T";
static const char format_time[] = "%T"; /* hh:mm:ss */
static const cha... | /content/code_sandbox/drivers/rtc/rtc_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,455 |
```c
/*
*
*/
#define DT_DRV_COMPAT motorola_mc146818
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/sys/util.h>
#include <zephyr/spinlock.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/sys/sys_io.h>
#define RTC_... | /content/code_sandbox/drivers/rtc/rtc_mc146818.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,767 |
```c
/*
*
*
*/
#define DT_DRV_COMPAT st_stm32_rtc
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/clock_control.h>
... | /content/code_sandbox/drivers/rtc/rtc_ll_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,459 |
```unknown
# NUMAKER RTC Driver configuration options
config RTC_NUMAKER
bool "Nuvoton NuMaker MCU RTC driver"
default y
select HAS_NUMAKER_RTC
depends on DT_HAS_NUVOTON_NUMAKER_RTC_ENABLED
help
This option enables the RTC driver for Nuvoton NuMaker family of
processors.
Say y if you wish to enable NuMa... | /content/code_sandbox/drivers/rtc/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
# Fake RTC configuration options
#
config RTC_FAKE
bool "Fake RTC driver"
default y
depends on DT_HAS_ZEPHYR_FAKE_RTC_ENABLED
help
Enable support for the FFF-based fake RTC driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.fake | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```c
/*
*
*/
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/spinlock.h>
#include <hardware/irq.h>
#include <hardware/rtc.h>
#include <hardware/regs/rtc.h>
#include "rtc_utils.h"
#define D... | /content/code_sandbox/drivers/rtc/rtc_rpi_pico.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,312 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_pcf8523
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(pcf8523, CONFIG_RTC_LOG_LEVEL);
/* PCF8523 register address... | /content/code_sandbox/drivers/rtc/rtc_pcf8523.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,989 |
```c
/*
*
*/
#include <zephyr/drivers/rtc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/util.h>
#include "rtc_utils.h"
#define DT_DRV_COMPAT ambiq_rtc
LOG_MODULE_REGISTER(ambiq_rtc, CONFIG_RTC_LOG_LEVEL);
#include <am_mcu_apollo.h>
#define AMBIQ_RTC_ALARM_TIME_MASK ... | /content/code_sandbox/drivers/rtc/rtc_ambiq.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,968 |
```unknown
config RTC_RV3028
bool "Micro Crystal RV3028 I2C extreme low power RTC driver"
default y
depends on DT_HAS_MICROCRYSTAL_RV3028_ENABLED
select I2C
help
Enable the Micro Crystal RV3028 I2C RTC driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.rv3028 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```unknown
config RTC_SMARTBOND
bool "Smartbond RTC driver"
depends on DT_HAS_RENESAS_SMARTBOND_RTC_ENABLED
default y
help
Build RTC driver for Smartbond SoCs.
``` | /content/code_sandbox/drivers/rtc/Kconfig.smartbond | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```c
/*
*
*/
#define DT_DRV_COMPAT microcrystal_rv3028
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "rtc_utils.h"
LOG_MODULE_REGISTER(rv3028, CONFIG_RTC_LOG_LEVEL);
... | /content/code_sandbox/drivers/rtc/rtc_rv3028.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,472 |
```c
/*
*
*/
#include <zephyr/drivers/rtc.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc_time *timeptr)
{
K_OOPS(K_SYSCALL_DRIVER_RTC(dev, set_time));
K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
return z_impl_r... | /content/code_sandbox/drivers/rtc/rtc_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 741 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_rtc
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
#include <zephyr/spinlock.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/dr... | /content/code_sandbox/drivers/rtc/rtc_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,294 |
```unknown
config RTC_EMUL
bool "Emulated RTC driver"
default y
depends on DT_HAS_ZEPHYR_RTC_EMUL_ENABLED
help
Enable emulated Real-Time Clock (RTC) driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.emul | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```unknown
# NXP PCF8523 RTC
config RTC_PCF8563
bool "NXP PCF8563 RTC driver"
default y
depends on DT_HAS_NXP_PCF8563_ENABLED
select I2C
help
Enable the NXP PCF8563 RTC driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.pcf8563 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_rtc_emul
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/rtc.h>
#include "rtc_utils.h"
struct rtc_emul_data;
struct rtc_emul_work_delayable {
struct k_work_delayable dwork;
const struct device *dev;
};
struct rtc_emul_alarm {
struct rtc... | /content/code_sandbox/drivers/rtc/rtc_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,958 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_RTC_RTC_UTILS_H_
#define ZEPHYR_DRIVERS_RTC_RTC_UTILS_H_
#include <stdbool.h>
#include <stdint.h>
#include <zephyr/drivers/rtc.h>
/**
* @brief Validate a datetime with a mask
*
* Ensure that any fields selected by mask contain a valid value.
*
* @param timeptr Th... | /content/code_sandbox/drivers/rtc/rtc_utils.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 142 |
```unknown
# Author: Arunmani Alagarsamy <arunmani27100@gmail.com>
config RTC_DS1307
bool "MAXIM DS1307 RTC driver"
default y
depends on DT_HAS_MAXIM_DS1307_ENABLED
select I2C
help
Enable the MAXIM DS1307 RTC driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.ds1307 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```unknown
# Author: Daniel Kampert <DanielKampert@Kampis-Elektroecke.de>
config RTC_RV8263
bool "Micro Crystal RV-8263-C8 RTC driver"
default y
depends on DT_HAS_MICROCRYSTAL_RV_8263_C8_ENABLED
select I2C
help
Micro Crystal RV-8263-C8 RTC driver.
``` | /content/code_sandbox/drivers/rtc/Kconfig.rv8263 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```c
/*
*
*/
#include <stdbool.h>
#include <stdint.h>
#include <zephyr/drivers/rtc.h>
#include "rtc_utils.h"
bool rtc_utils_validate_rtc_time(const struct rtc_time *timeptr, uint16_t mask)
{
if ((mask & RTC_ALARM_TIME_MASK_SECOND) && (timeptr->tm_sec < 0 || timeptr->tm_sec > 59)) {
return false;
}
if ((mask... | /content/code_sandbox/drivers/rtc/rtc_utils.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 407 |
```unknown
menuconfig RTC
bool "Real-Time Clock (RTC) drivers"
help
Enable RTC driver configuration.
if RTC
module = RTC
module-str = rtc
source "subsys/logging/Kconfig.template.log_config"
config RTC_INIT_PRIORITY
int "RTC init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
RTC device driver initial... | /content/code_sandbox/drivers/rtc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 355 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_RTC_RTC_LL_STM32_H_
#define ZEPHYR_DRIVERS_RTC_RTC_LL_STM32_H_
#ifdef CONFIG_RTC_ALARM
/* STM32 RTC alarms, A & B, LL masks are equal */
#define RTC_STM32_ALRM_MASK_ALL LL_RTC_ALMA_MASK_ALL
#define RTC_STM32_ALRM_MASK_SECONDS LL_RTC_ALMA_MASK_SECONDS
#define RTC_STM32... | /content/code_sandbox/drivers/rtc/rtc_ll_stm32.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 564 |
```c
/*
*
* Author: Arunmani Alagarsamy <arunmani27100@gmail.com>
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/util.h>
#define DT_DRV_COMPAT maxim_ds1307
LOG_MODULE_REGISTER(ds1307, CONFIG_RTC_LOG_LEVEL);
/*... | /content/code_sandbox/drivers/rtc/rtc_ds1307.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,447 |
```unknown
# NXP PCF8523 RTC
config RTC_PCF8523
bool "NXP PCF8523 RTC driver"
default y
depends on DT_HAS_NXP_PCF8523_ENABLED
select I2C
help
Enable the NXP PCF8523 RTC driver.
if RTC_PCF8523
choice RTC_PCF8523_OFFSET_MODE
prompt "Offset mode"
default RTC_PCF8523_OFFSET_MODE_SLOW
depends on RTC_CALIBRATI... | /content/code_sandbox/drivers/rtc/Kconfig.pcf8523 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 349 |
```c
/*
*
* Author: Sri Surya <srisurya@linumiz.com>
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/util.h>
#define DT_DRV_COMPAT ambiq_am1805
LOG_MODULE_REGISTER(am1805, CONFIG... | /content/code_sandbox/drivers/rtc/rtc_am1805.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,275 |
```c
* Author: Daniel Kampert <DanielKampert@kampis-Elektroecke.de>
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include "rtc_utils.h"
#... | /content/code_sandbox/drivers/rtc/rtc_rv8263.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,642 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/irq.h>
#include <zephyr/sys/util.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/smartbond_clock_control.h>
#includ... | /content/code_sandbox/drivers/rtc/rtc_smartbond.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,926 |
```unknown
config RTC_RPI_PICO
bool "Raspberry Pi Pico RTC driver"
default y
depends on DT_HAS_RASPBERRYPI_PICO_RTC_ENABLED
select PICOSDK_USE_RTC
depends on RESET
``` | /content/code_sandbox/drivers/rtc/Kconfig.rpi_pico | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```unknown
config COUNTER_SAM_TC
bool "Atmel SAM MCU family counter (TC) driver"
default y
depends on DT_HAS_ATMEL_SAM_TC_ENABLED
help
Enable the Atmel SAM MCU family counter (TC) driver.
``` | /content/code_sandbox/drivers/counter/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_rtc_timer
/*
* Include esp-idf headers first to avoid
* redefining BIT() macro
*/
#include "soc/rtc_cntl_reg.h"
#include "soc/rtc.h"
#include <esp_rom_sys.h>
#include <hal/rtc_cntl_ll.h>
#include <zephyr/device.h>
#include <zephyr/drivers/counter.h>
#include <z... | /content/code_sandbox/drivers/counter/counter_esp32_rtc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,654 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_rtc
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/rtc.h>
#include <zephyr/sys/util.h>
#include <string.h>
#include <soc.h>
#define RTC_SAM_REG_GET_FIELD(value, field) \
((RTC_##field##_Msk & value) >> RTC_##fiel... | /content/code_sandbox/drivers/rtc/rtc_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,192 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_pit
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/irq.h>
#include <fsl_pit.h>
#define LOG_MODULE_NAME counter_pit
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_COUNTER_LOG_LEVEL);
/* Device holds ... | /content/code_sandbox/drivers/counter/counter_nxp_pit.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,276 |
```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/drivers/counter.h>
#include <zephyr/irq.h>
#include <fsl_lptmr.h>
struct mcux_lptmr_config {
struct counter_config_info... | /content/code_sandbox/drivers/counter/counter_mcux_lptmr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,531 |
```unknown
config COUNTER_MCUX_LPC_RTC
bool "MCUX LPC RTC driver"
default y
depends on DT_HAS_NXP_LPC_RTC_ENABLED || \
DT_HAS_NXP_LPC_RTC_HIGHRES_ENABLED
help
Enable the LPC rtc driver.
config COUNTER_MCUX_LPC_RTC_1HZ
bool "MCUX LPC RTC 1Hz counter driver"
default y
depends on DT_HAS_NXP_LPC_RTC_ENABLE... | /content/code_sandbox/drivers/counter/Kconfig.mcux_lpc_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 158 |
```unknown
# Kconfig Andes ATCPIT100 configuration option
#
#
config COUNTER_ANDES_ATCPIT100
bool "Andes ATCPIT100 PIT driver"
default y
depends on DT_HAS_ANDESTECH_ATCPIT100_ENABLED
help
Enable driver for the Andes ATCPIT100 PIT controller.
``` | /content/code_sandbox/drivers/counter/Kconfig.andes_atcpit100 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```c
/*
*
*/
#define DT_DRV_COMPAT arm_cmsdk_timer
#include <zephyr/drivers/counter.h>
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <zephyr/drivers/clock_control/arm_clock_control.h>
#include "timer_cmsdk_apb.h"
typedef void (*timer_confi... | /content/code_sandbox/drivers/counter/timer_tmr_cmsdk_apb.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,648 |
```unknown
# STM32 Cube LL RTC
menuconfig COUNTER_RTC_STM32
bool "STM32 Counter RTC driver"
default y if !RTC
depends on DT_HAS_ST_STM32_RTC_ENABLED
select USE_STM32_LL_RTC
select USE_STM32_LL_PWR
select USE_STM32_LL_RCC
select USE_STM32_LL_EXTI
help
Build RTC driver for STM32 SoCs.
Tested on STM32 C0, ... | /content/code_sandbox/drivers/counter/Kconfig.stm32_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 280 |
```c
/*
*
*/
#define DT_DRV_COMPAT ambiq_counter
#include <zephyr/drivers/counter.h>
#include <zephyr/spinlock.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
/* ambiq-sdk includes */
#include <am_mcu_apollo.h>
LOG_MODULE_REGISTER(ambiq_counter, CONFIG_COUNTER_LOG_LEVEL);
... | /content/code_sandbox/drivers/counter/counter_ambiq_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,450 |
```unknown
#
config COUNTER_AMBIQ
bool "Ambiq Counter Driver"
default y
depends on DT_HAS_AMBIQ_COUNTER_ENABLED
select AMBIQ_HAL
select AMBIQ_HAL_USE_TIMER
help
Enables the Counter driver for Ambiq devices.
``` | /content/code_sandbox/drivers/counter/Kconfig.ambiq | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```unknown
config COUNTER_TIMER_STM32
bool "STM32 counter driver"
default y
depends on DT_HAS_ST_STM32_COUNTER_ENABLED
select USE_STM32_LL_TIM
select RESET
help
Enable the counter driver for STM32 family of processors.
``` | /content/code_sandbox/drivers/counter/Kconfig.stm32_timer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#define DT_DRV_COMPAT arm_cmsdk_dtimer
#include <limits.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <zephyr/drivers/clock_control/arm_clock_control.h>
#include <zephyr/irq.h>
#include "... | /content/code_sandbox/drivers/counter/timer_dtmr_cmsdk_apb.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,805 |
```c
/*
*
*/
/*
* MRT (Multirate timer) is a lightweight timer with multiple independent channels, each capable
* of signalling the shared interrupt with a different period. This driver treats all the channels
* as separate devices adhering to the counter API. The parent device is responsible for the
* initiali... | /content/code_sandbox/drivers/counter/counter_nxp_mrt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,210 |
```objective-c
/*
*
*/
#ifndef __COUNTER_ACE_V1X_ART_REGS__
#define __COUNTER_ACE_V1X_ART_REGS__
#if CONFIG_ACE_V1X_ART_COUNTER
#define ACE_ART_COUNTER_ID DT_NODELABEL(ace_art_counter)
#define ACE_TIMESTAMP_ID DT_NODELABEL(ace_timestamp)
#define ACE_TSCTRL (DT_REG_ADDR(ACE_TIMESTAMP_ID))
#define ACE_ARTCS (DT_RE... | /content/code_sandbox/drivers/counter/counter_ace_v1x_art_regs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 248 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <counter/counter_ace_v1x_rtc_regs.h>
static int counter_ace_v1x_rtc_get_value(const struct device *dev,
uint64_t *value)
{
ARG_UNUSED(dev);
uint32_t h... | /content/code_sandbox/drivers/counter/counter_ace_v1x_rtc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 296 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_snvs_rtc
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mcux_snvs, CONFIG_COUNTER_LOG_LEVEL);
#if CONFIG_COUNTER_MCUX_SNVS_SRTC
#define MCUX_SNVS_SRTC
#define MCUX_SNVS_NUM_CHANNELS 2
#else
#define MCUX_SNVS_NUM_CHANNELS 1
#endif
#include <zephyr/drivers/counter.h>
... | /content/code_sandbox/drivers/counter/counter_mcux_snvs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,494 |
```objective-c
/*
*
*/
#ifndef __COUNTER_ACE_V1X_RTC_REGS__
#define __COUNTER_ACE_V1X_RTC_REGS__
#if CONFIG_ACE_V1X_RTC_COUNTER
#define ACE_RTC_COUNTER_ID DT_NODELABEL(ace_rtc_counter)
#define ACE_RTCWC (DT_REG_ADDR(ACE_RTC_COUNTER_ID))
#define ACE_RTCWC_LO ACE_RTCWC
#define ACE_RTCWC_HI ACE_RTCWC + 0x04
#endif
... | /content/code_sandbox/drivers/counter/counter_ace_v1x_rtc_regs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_smartbond_timer
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/clock_control/smartbond_clock_control.h>
#include <zephyr/irq.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/pm/policy.h>
#i... | /content/code_sandbox/drivers/counter/counter_smartbond_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,148 |
```unknown
# Silicon Labs Gecko Counter driver config
config COUNTER_GECKO_RTCC
bool "Silicon Labs Gecko Counter (RTCC) driver"
default y
depends on DT_HAS_SILABS_GECKO_RTCC_ENABLED
select SOC_GECKO_CMU
select SOC_GECKO_RTCC
help
Enable counter driver based on RTCC module for Silicon Labs Gecko
chips.
co... | /content/code_sandbox/drivers/counter/Kconfig.gecko | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 157 |
```c
/*
*
*/
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/counter.h>
/* For those APIs that just take one argument which is a counter driver
* instance and return an integral value
*/
#define COUNTER_HANDLER(name) \
static inline int z_vrfy_counter_##name(const struct device *dev) \
{ \... | /content/code_sandbox/drivers/counter/counter_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,351 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_stimer
#include <errno.h>
#include <stddef.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <em_cmu.h>
#include <sl_atomic.h>
#include <sl_sleeptimer.h>
#include... | /content/code_sandbox/drivers/counter/counter_gecko_stimer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,354 |
```unknown
# ESP32 General Purpose Timer configuration
config COUNTER_TMR_ESP32
bool "ESP32 Counter Driver based on GP-Timers"
default y
depends on DT_HAS_ESPRESSIF_ESP32_TIMER_ENABLED
help
Enables the Counter driver API based on Espressif's General
Purpose Timers for ESP32 series devices.
config COUNTER_T... | /content/code_sandbox/drivers/counter/Kconfig.esp32_tmr | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 139 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/kernel.h>
#include <zephyr/spinlock.h>
#include <soc.h>
#include <counter/counter_ace_v1x_art_regs.h>
static struct k_spinlock lock;
static void counter_ace_v1x_art_ionte_set(bool new_timesta... | /content/code_sandbox/drivers/counter/counter_ace_v1x_art.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 771 |
```unknown
config COUNTER_NXP_S32_SYS_TIMER
bool "NXP S32 System Timer Module driver"
default y
depends on DT_HAS_NXP_S32_SYS_TIMER_ENABLED
select CLOCK_CONTROL
help
Enable support for NXP S32 System Timer Module (STM) driver.
``` | /content/code_sandbox/drivers/counter/Kconfig.nxp_s32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```c
/*
*/
/**
* @file
*
* Counter driver for the Quad Timer through the MCUxpresso SDK. Based mainly on counter_mcux_gpt.c
*
* Each quad timer module has four channels (0-3) that can operate independently, but the Zephyr
* counter-API does not support starting or stopping different channels independently. Henc... | /content/code_sandbox/drivers/counter/counter_mcux_qtmr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,848 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_rtcc
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <soc.h>
#include <em_cmu.h>
#include <em_rtcc.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(cou... | /content/code_sandbox/drivers/counter/counter_gecko_rtcc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,658 |
```unknown
# Counter driver for x86 "CMOS" clock
config COUNTER_CMOS
bool "Counter driver for x86 CMOS/RTC clock"
default y if !RTC
depends on DT_HAS_MOTOROLA_MC146818_ENABLED
``` | /content/code_sandbox/drivers/counter/Kconfig.cmos | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc_ctimer
#include <zephyr/drivers/counter.h>
#include <fsl_ctimer.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(mcux_ctimer, CONFIG_COUNTER_... | /content/code_sandbox/drivers/counter/counter_mcux_ctimer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,612 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_gpt
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/irq.h>
#include <fsl_gpt.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/barrier.h>
LOG_MODULE_REGISTER(mcux_gpt, CONFIG_COUNTER_LOG_LEVEL);
#define DEV_CFG(_dev) (... | /content/code_sandbox/drivers/counter/counter_mcux_gpt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,915 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_epit
#include <zephyr/drivers/counter.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#include "clock_freq.h"
#include "epit.h"
#define COUNTER_MAX_RELOAD 0xFFFFFFFF
struct imx_epit_config {
struct counter_config_info info;
EPIT_Type *base;
uint16_t prescaler;
};... | /content/code_sandbox/drivers/counter/counter_imx_epit.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,277 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam0_tc32
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(counter_sam0_tc32, CONFIG_COUNTER_LOG_LEVEL);
struct counter_sam0_tc32_... | /content/code_sandbox/drivers/counter/counter_sam0_tc32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,449 |
```c
/*
*
*/
#include <zephyr/drivers/counter.h>
#include <zephyr/shell/shell.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#define ARGV_DEV 1
#define ARGV_CHN 2
#define ARGV_PERIODIC_TIME 2
#define ARGV_ONESHOT_TIME 3
/* number of periodic interrupts */
#define PERIODIC_CYCLES ... | /content/code_sandbox/drivers/counter/counter_timer_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,531 |
```unknown
#
#
config COUNTER_MAXIM_DS3231
bool "Maxim DS3231 RTC/TCXO"
default y
depends on DT_HAS_MAXIM_DS3231_ENABLED
depends on I2C
select POLL
select NOTIFY
help
Enable counter driver based on Maxim DS3231 I2C device.
``` | /content/code_sandbox/drivers/counter/Kconfig.maxim_ds3231 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
config COUNTER_SMARTBOND_TIMER
bool "Renesas SmartBond(tm) counter driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_TIMER_ENABLED
select CLOCK_CONTROL_SMARTBOND
select CLOCK_CONTROL
help
Enable the counter driver for for Renesas SmartBond(tm) family of processors.
``` | /content/code_sandbox/drivers/counter/Kconfig.smartbond_timer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```unknown
# MCUXpresso SDK CTIMER
config COUNTER_MCUX_CTIMER
bool "MCUX CTIMER driver"
default y
depends on DT_HAS_NXP_LPC_CTIMER_ENABLED
help
Enable support for MCUX CTIMER driver.
config COUNTER_MCUX_CTIMER_RESERVE_CHANNEL_FOR_SETTOP
bool "reserve a ctimer channel to set the top value"
default y
depends... | /content/code_sandbox/drivers/counter/Kconfig.mcux_ctimer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_timer
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <soc/rtc_cntl_reg.h>
#include <soc/timer_group_reg.h>
#include <periph_ctrl.h>
#include <driver/timer_types_legacy.h>
#include <soc/periph_defs.h>
#include <hal/timer_hal.h>
#include... | /content/code_sandbox/drivers/counter/counter_esp32_tmr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,098 |
```unknown
# ESP32 RTC Timer configuration
config COUNTER_RTC_ESP32
bool "ESP32 Counter driver based on the RTC Timer"
default y
depends on DT_HAS_ESPRESSIF_ESP32_RTC_TIMER_ENABLED
help
Enables the Counter driver API based on Espressif's RTC
Timer for ESP32 series devices.
``` | /content/code_sandbox/drivers/counter/Kconfig.esp32_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_tc
/** @file
* @brief Atmel SAM MCU family counter (TC) driver.
*
* This version of the driver uses a single channel to provide a basic 16-bit
* counter (on SAM4E series the counter is 32-bit). Remaining TC channels could
* be used in the future to provide additiona... | /content/code_sandbox/drivers/counter/counter_sam_tc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,606 |
```unknown
# MCUXpresso SDK SNVS (Secure) RTC
config COUNTER_MCUX_SNVS
bool "IMX SNVS RTC driver"
default y
depends on DT_HAS_NXP_IMX_SNVS_RTC_ENABLED
help
Enable support for the IMX SNVS High/Low Power clock.
config COUNTER_MCUX_SNVS_SRTC
bool "IMX SNVS SRTC low power support"
depends on COUNTER_MCUX_SNVS
... | /content/code_sandbox/drivers/counter/Kconfig.mcux_snvs | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 166 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_counter
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/clock_control/stm32_clock_control.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/irq.h>
#include <zephyr/sys/atomic.h>
#include <stm32_ll_tim.h>
#include <stm32_ll_rcc.h>
#include <zephyr/loggin... | /content/code_sandbox/drivers/counter/counter_ll_stm32_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,357 |
```c
/*
*
*/
#include <hardware/timer.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/irq.h>
#include <cmsis_core.h>
#define LOG_LEVEL CONFIG_COUNTER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MOD... | /content/code_sandbox/drivers/counter/counter_rpi_pico_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,815 |
```unknown
# MCUXpresso SDK RTC
config COUNTER_MCUX_RTC
bool "MCUX RTC driver"
default y
depends on DT_HAS_NXP_KINETIS_RTC_ENABLED
help
Enable support for mcux rtc driver.
``` | /content/code_sandbox/drivers/counter/Kconfig.mcux_rtc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```c
/*
*
*/
#include <zephyr/drivers/counter.h>
#include <hal/nrf_rtc.h>
#ifdef CONFIG_CLOCK_CONTROL_NRF
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
#endif
#include <haly/nrfy_rtc.h>
#include <zephyr/sys/atomic.h>
#ifdef DPPI_PRESENT
#include <nrfx_dppi.h>
#e... | /content/code_sandbox/drivers/counter/counter_nrfx_rtc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,111 |
```c
/*
* an affiliate of Cypress Semiconductor Corporation
*
*/
/**
* @brief Counter driver for Infineon CAT1 MCU family.
*/
#define DT_DRV_COMPAT infineon_cat1_counter
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/pinctrl.h>
#include <cyhal_timer.h>
#include <cyhal_gpio.h>
#include <cyhal_tcpw... | /content/code_sandbox/drivers/counter/counter_ifx_cat1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,387 |
```unknown
# MCUXpresso SDK TPM
config COUNTER_MCUX_TPM
bool "MCUX TPM counter driver"
default y
depends on DT_HAS_NXP_TPM_TIMER_ENABLED
help
Enable support for mcux Timer PWM Module (TPM) counter driver.
``` | /content/code_sandbox/drivers/counter/Kconfig.mcux_tpm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.