text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```c
/*
*
*/
#include <zephyr/drivers/usb/usb_bc12.h>
#include <zephyr/internal/syscall_handler.h>
static inline int z_vrfy_bc12_set_role(const struct device *dev, enum bc12_role role)
{
K_OOPS(K_SYSCALL_DRIVER_BC12(dev, set_role));
return z_impl_bc12_set_role(dev, role);
}
static inline int z_vrfy_bc12_set_res... | /content/code_sandbox/drivers/usb/bc12/bc12_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 163 |
```unknown
config USB_BC12_PI3USB9201
bool "Diodes PI3USB9201"
default y
depends on DT_HAS_DIODES_PI3USB9201_ENABLED
help
This is a Dual-Role USB Charging-Type Detector. It can operate in
host or client mode. It supports Battery Charging Specification, rev
1.2 (BC1.2) with Standard/Charging/Dedicated down... | /content/code_sandbox/drivers/usb/bc12/Kconfig.pi3usb9201 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 399 |
```c
/*
*
*
* Emulator for Diodes PI3USB9201 Dual-Role USB Charging-Type Detector.
*/
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/gpio/gpio_emul.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c_emul.h>
#include <zephyr/drivers/usb/emul_bc12.h>
#include <zephy... | /content/code_sandbox/drivers/usb/bc12/emul_bc12_pi3usb9201.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,914 |
```unknown
#
config DAC_SAM
bool "Atmel SAM DAC driver"
default y
depends on DT_HAS_ATMEL_SAM_DAC_ENABLED
help
Enable Atmel SAM MCU Family Digital Audio Converter (DAC) driver.
``` | /content/code_sandbox/drivers/dac/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```unknown
# DAC configuration options
#
config DAC_MCUX_DAC
bool "NXP Kinetis MCUX DAC driver"
default y
depends on DT_HAS_NXP_KINETIS_DAC_ENABLED
help
Enable the driver for the NXP Kinetis MCUX DAC.
config DAC_MCUX_DAC32
bool "NXP Kinetis MCUX DAC32 driver"
default y
depends on DT_HAS_NXP_KINETIS_DAC32_E... | /content/code_sandbox/drivers/dac/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 243 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_dac
#include <errno.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <soc.h>
#include <stm32_ll_dac.h>
#define LOG_LEVEL CONFIG_DAC_LOG_LEVEL
#include <zephyr/l... | /content/code_sandbox/drivers/dac/dac_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,239 |
```unknown
# DAC configuration options
#
config DAC_AD56XX
bool "Analog Devices AD56xx DAC driver"
default y
select SPI
depends on DT_HAS_ADI_AD5628_ENABLED \
|| DT_HAS_ADI_AD5648_ENABLED \
|| DT_HAS_ADI_AD5668_ENABLED \
|| DT_HAS_ADI_AD5672_ENABLED \
|| DT_HAS_ADI_AD5674_ENABLED \
|| DT_HAS_ADI_AD5676_... | /content/code_sandbox/drivers/dac/Kconfig.ad56xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 221 |
```c
/*
*
*/
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
LOG_MODULE_REGISTER(dac_ad56xx, CONFIG_DAC_LOG_LEVEL);
/*
* These values are actually all w... | /content/code_sandbox/drivers/dac/dac_ad56xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,893 |
```unknown
# DAC configuration options
#
config DAC_STM32
bool "STM32 DAC driver"
default y
depends on DT_HAS_ST_STM32_DAC_ENABLED
help
Enable the driver implementation for the stm32xx DAC
``` | /content/code_sandbox/drivers/dac/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```c
/*
*
*/
/**
* @file
* @brief DAC shell commands.
*/
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/dac.h>
#include <stdlib.h>
struct args_index {
uint8_t device;
uint8_t channel;
uint8_t value;
uint8_t resolution;
};
static const struct args_index args_indx = {
.device = 1,
.channel = 2,
... | /content/code_sandbox/drivers/dac/dac_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 491 |
```c
/*
*/
/** @file
* @brief DAC driver for Atmel SAM MCU family.
*
* Remarks:
* Only SAME70, SAMV71 series devices are currently supported. Please submit a
* patch.
*/
#define DT_DRV_COMPAT atmel_sam_dac
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <soc.h>
#include <zephyr/device.h>
#include... | /content/code_sandbox/drivers/dac/dac_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,349 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_gau_dac
#include <zephyr/drivers/dac.h>
#include <fsl_dac.h>
#define LOG_LEVEL CONFIG_DAC_LOG_LEVEL
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(nxp_gau_dac);
struct nxp_gau_dac_config {
DAC_Type *base;
dac_conversion_rate_t conversion_rate ... | /content/code_sandbox/drivers/dac/dac_mcux_gau.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 852 |
```unknown
config DAC_AD559X
bool "AD559x DAC driver"
default y
depends on DT_HAS_ADI_AD559X_DAC_ENABLED
select MFD
help
Enable the AD559x DAC driver.
``` | /content/code_sandbox/drivers/dac/Kconfig.ad559x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```unknown
# ESP32 DAC configuration options
config DAC_ESP32
bool "ESP32 DAC driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_DAC_ENABLED
help
Enable the ESP32 DAC driver
``` | /content/code_sandbox/drivers/dac/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```c
/*
*
*/
#include <zephyr/drivers/dac.h>
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/kernel.h>
static inline int z_vrfy_dac_channel_setup(const struct device *dev,
const struct dac_channel_cfg *user_channel_cfg)
{
struct dac_channel_cfg channel_cfg;
K_OOPS(K_SYSCALL_DRIVER_DAC(dev, ... | /content/code_sandbox/drivers/dac/dac_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 225 |
```c
/*
*
*/
#define DT_DRV_COMPAT gd_gd32_dac
#include <errno.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/gd32.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/dac.h>
#include <gd32_dac.h>
#include <zephyr/logging/log.h>
LO... | /content/code_sandbox/drivers/dac/dac_gd32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,223 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_dac
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/drivers/clock_control.h>
#include <hal/rtc_io_types.h>
#include <hal/rtc_io_hal.h>
#include <hal/rtc_io_ll.h>
#include "driver/dac.h"
#include <zephyr/logging/log.h>
L... | /content/code_sandbox/drivers/dac/dac_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 625 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam0_dac
#include <errno.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_sam0, CONFIG_DAC_LOG_LEVEL);
/*
* Maps between the DTS reference property names and register values. N... | /content/code_sandbox/drivers/dac/dac_sam0.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 969 |
```unknown
# DAC configuration options
#
config DAC_DACX0501
bool "TI DACx0501 DAC driver"
default y
depends on DT_HAS_TI_DACX0501_ENABLED
select I2C
help
Enable the driver for the TI DACx0501.
if DAC_DACX0501
config DAC_DACX0501_INIT_PRIORITY
int "Init priority"
default 80
help
TI DACx0501 DAC device... | /content/code_sandbox/drivers/dac/Kconfig.dacx0501 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 115 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp4725
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_mcp4725, CONFIG_DAC_LOG_LEVEL);
/* Information in this file comes from MCP4725 datasheet revision D
* found at pat... | /content/code_sandbox/drivers/dac/dac_mcp4725.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,123 |
```c
/*
*/
#define DT_DRV_COMPAT adi_ad559x_dac
#include <zephyr/drivers/dac.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/mfd/ad559x.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_ad559x, CONFIG_DAC_LOG_LEVEL);
#define AD559X_DAC_RESOLUTION 12
#define... | /content/code_sandbox/drivers/dac/dac_ad559x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 813 |
```unknown
config DAC_AD569X
bool "Analog Devices AD5691 / AD5692 / AD5693 DAC driver"
default y
select I2C
depends on DT_HAS_ADI_AD5691_ENABLED || DT_HAS_ADI_AD5692_ENABLED || DT_HAS_ADI_AD5693_ENABLED
help
Enable the driver for the Analog Devices AD569X.
``` | /content/code_sandbox/drivers/dac/Kconfig.ad569x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
# DAC configuration options
#
config DAC_GD32
bool "GD32 DAC driver"
default y
depends on DT_HAS_GD_GD32_DAC_ENABLED
help
Enable GigaDevice GD32 DAC driver
``` | /content/code_sandbox/drivers/dac/Kconfig.gd32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
#include <zephyr/dt-bindings/dac/dacx0508.h>
LOG_MODULE_REGISTER(dac_dacx0508, CONFIG_DAC_LOG_LEVEL);
#define DACX0508_REG_DEVICE_ID 0x01U
#define DACX0508_REG_CONFIG 0x03U... | /content/code_sandbox/drivers/dac/dac_dacx0508.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,981 |
```unknown
# DAC configuration options
#
config DAC_DACX0508
bool "TI DACx0508 DAC driver"
default y
select SPI
depends on DT_HAS_TI_DAC60508_ENABLED || DT_HAS_TI_DAC70508_ENABLED || \
DT_HAS_TI_DAC80508_ENABLED
help
Enable the driver for the TI DACx0508.
if DAC_DACX0508
config DAC_DACX0508_INIT_PRIORI... | /content/code_sandbox/drivers/dac/Kconfig.dacx0508 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 120 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_dacx3608, CONFIG_DAC_LOG_LEVEL);
/* Register addresses */
#... | /content/code_sandbox/drivers/dac/dac_dacx3608.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,916 |
```c
/*
* Driver for Linear Technology LTC1660/LTC1665 DAC
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_ltc166x, CONFIG_DAC_LOG_LEVEL);
#define LTC166X_REG_MASK GENMASK(15, 12)
#define LTC1... | /content/code_sandbox/drivers/dac/dac_ltc166x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,001 |
```c
/*
*
*/
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
LOG_MODULE_REGISTER(dac_ad569x, CONFIG_DAC_LOG_LEVEL);
#define AD569X_CTRL_GAIN(x) FIELD_PREP(BIT(11), x)
#define AD569X_CTR... | /content/code_sandbox/drivers/dac/dac_ad569x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,415 |
```unknown
# DAC configuration options
#
config DAC_DACX3608
bool "TI DACX3608 DAC driver"
default y
select I2C
depends on DT_HAS_TI_DAC43608_ENABLED || DT_HAS_TI_DAC53608_ENABLED
help
Enable the driver for the TI DACX3608.
if DAC_DACX3608
config DAC_DACX3608_INIT_PRIORITY
int "Init priority"
default 80
... | /content/code_sandbox/drivers/dac/Kconfig.dacx3608 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 112 |
```unknown
# DAC configuration options
#
config DAC_LTC166X
bool "Linear Technology LTC166X DAC"
default y
select SPI
depends on DT_HAS_LLTC_LTC1660_ENABLED || DT_HAS_LLTC_LTC1665_ENABLED
help
Enable the driver for the Linear Technology LTC166X DAC
if DAC_LTC166X
config DAC_LTC166X_INIT_PRIORITY
int "Init ... | /content/code_sandbox/drivers/dac/Kconfig.ltc166x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 114 |
```unknown
# DAC configuration options
#
# DAC options
#
menuconfig DAC
bool "Digital-to-Analog Converter (DAC) drivers"
help
Enable DAC (Digital to Analog Converter) driver configuration.
if DAC
module = DAC
module-str = DAC
source "subsys/logging/Kconfig.template.log_config"
config DAC_SHELL
bool "DAC shel... | /content/code_sandbox/drivers/dac/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 289 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_dac32
#include <zephyr/kernel.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/pinctrl.h>
#include <fsl_dac32.h>
LOG_MODULE_REGISTER(dac_mcux_dac32, CONFIG_DAC_LOG_LEVEL);
struct mcux_dac32_config {
DAC_Type *base;
dac32_... | /content/code_sandbox/drivers/dac/dac_mcux_dac32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 915 |
```unknown
# DAC configuration options
#
config DAC_MCP4725
bool "Microchip MCP4725 DAC driver"
default y
select I2C
depends on DT_HAS_MICROCHIP_MCP4725_ENABLED
help
Enable the driver for the Microchip MCP4725.
if DAC_MCP4725
config DAC_MCP4725_INIT_PRIORITY
int "Init priority"
default 80
help
Microch... | /content/code_sandbox/drivers/dac/Kconfig.mcp4725 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 107 |
```c
/*
*
*/
/**
* @brief Driver for Texas Instruments DACx0501 series
*
* Device driver for the Texas Instruments DACx0501 series of devices: DAC60501, DAC70501 and
* DAC80501: Digital to Analog Converters with a single channel output and with 12, 14 and 16
* bits resolution respectively. Data sheet can be fo... | /content/code_sandbox/drivers/dac/dac_dacx0501.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,607 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_dac
#include <zephyr/kernel.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
#include <fsl_dac.h>
LOG_MODULE_REGISTER(dac_mcux_dac, CONFIG_DAC_LOG_LEVEL);
struct mcux_dac_config {
DAC_Type *base;
dac_reference_voltage_source_t reference;
bool lo... | /content/code_sandbox/drivers/dac/dac_mcux_dac.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 714 |
```unknown
config DAC_SAM0
bool "Atmel SAM0 series DAC Driver"
default y
depends on DT_HAS_ATMEL_SAM0_DAC_ENABLED
help
Enables the Atmel SAM0 MCU Family Digital-to-Analog (DAC) driver.
``` | /content/code_sandbox/drivers/dac/Kconfig.sam0 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpdac
#include <zephyr/kernel.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/logging/log.h>
#include <fsl_dac.h>
LOG_MODULE_REGISTER(dac_mcux_lpdac, CONFIG_DAC_LOG_LEVEL);
struct mcux_lpdac_config {
LPDAC_Type *base;
dac_reference_voltage_source_t ref_voltage;
bool l... | /content/code_sandbox/drivers/dac/dac_mcux_lpdac.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 750 |
```unknown
#
config DAC_MCP4728
bool "Microchip MCP4728 DAC driver"
default y
select I2C
depends on DT_HAS_MICROCHIP_MCP4728_ENABLED
help
Enable driver for the Microchip MCP4728.
if DAC_MCP4728
config DAC_MCP4728_INIT_PRIORITY
int "Init priority"
default 80
help
Microchip MCP4728 device driver initiali... | /content/code_sandbox/drivers/dac/Kconfig.mcp4728 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```unknown
# Atmel SAM TRNG configuration
config PWM_SAM
bool "Atmel SAM MCU Family PWM Driver"
default y
depends on DT_HAS_ATMEL_SAM_PWM_ENABLED
help
Enable PWM driver for Atmel SAM MCUs.
``` | /content/code_sandbox/drivers/pwm/Kconfig.sam | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
# Organisation (CSIRO) ABN 41 687 119 230.
# Hidden option for turning on the dummy driver for vnd,pwm devices
# used in testing.
config PWM_TEST
def_bool DT_HAS_VND_PWM_ENABLED
depends on DT_HAS_VND_PWM_ENABLED
``` | /content/code_sandbox/drivers/pwm/Kconfig.test | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp4728
#include <zephyr/kernel.h>
#include <zephyr/drivers/dac.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_mcp4728, CONFIG_DAC_LOG_LEVEL);
#define MCP4728_MAX_CHANNEL 4U
#define MCP4728_RESOLUTION 0xC
#define MCP4728_... | /content/code_sandbox/drivers/dac/dac_mcp4728.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 959 |
```unknown
# STM32 PWM configuration options
config PWM_MCUX
bool "MCUX PWM driver"
default y
depends on DT_HAS_NXP_IMX_PWM_ENABLED
help
Enable mcux pwm driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.mcux | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_qtmr_pwm
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <fsl_qtmr.h>
#include <fsl_clock.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_mcux_qtmr... | /content/code_sandbox/drivers/pwm/pwm_mcux_qtmr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,488 |
```unknown
# MCUXpresso SDK FTM PWM
config PWM_MCUX_FTM
bool "MCUX FTM PWM driver"
default y
depends on DT_HAS_NXP_KINETIS_FTM_PWM_ENABLED
select PINCTRL
help
Enable support for mcux ftm pwm driver.
config PWM_CAPTURE_MCUX_FTM_FILTER_VALUE
int "MCUX FTM PWM capture filter value"
depends on PWM_MCUX_FTM && ... | /content/code_sandbox/drivers/pwm/Kconfig.mcux_ftm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 119 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_imx_pwm
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/clock_control.h>
#include <soc.h>
#include <fsl_pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_mcux, CONFIG_PWM_... | /content/code_sandbox/drivers/pwm/pwm_mcux.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,182 |
```unknown
#
#
#
menuconfig PWM_LITEX
bool "LiteX PWM driver"
default y
depends on DT_HAS_LITEX_PWM_ENABLED
help
Enable support for LiteX PWM driver
config PWM_LITEX_INIT_PRIORITY
int "Init priority"
default 70
depends on PWM_LITEX
help
PWM device driver initialization priority.
``` | /content/code_sandbox/drivers/pwm/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```c
/*
*
*/
#define DT_DRV_COMPAT xlnx_xps_timer_1_00_a_pwm
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(xlnx_axi_timer_pwm, CONFIG_PWM_LOG_LEVEL);
/* AXI Timer v2.0 registers offsets (Se... | /content/code_sandbox/drivers/pwm/pwm_xlnx_axi_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,742 |
```c
/*
*
* Heavily based on pwm_mcux_ftm.c, which is:
*
*/
#define DT_DRV_COMPAT nxp_kinetis_tpm
#include <zephyr/drivers/clock_control.h>
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <soc.h>
#include <fsl_tpm.h>
#include <fsl_clock.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/... | /content/code_sandbox/drivers/pwm/pwm_mcux_tpm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,545 |
```unknown
config PWM_NXP_S32_EMIOS
bool "NXP S32 PWM-eMIOS driver"
default y
depends on DT_HAS_NXP_S32_EMIOS_PWM_ENABLED
select NXP_S32_EMIOS
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
Enable support for the NXP S32 PWM-eMIOS.
``` | /content/code_sandbox/drivers/pwm/Kconfig.nxp_s32_emios | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```unknown
# GECKO PWM configuration options
config PWM_GECKO
bool "GECKO MCU PWM driver"
default y
depends on DT_HAS_SILABS_GECKO_PWM_ENABLED
select SOC_GECKO_TIMER
help
This option enables the PWM driver for EXX32 GECKO family of
processors. Say y if you wish to use PWM port on EXX32
MCU.
``` | /content/code_sandbox/drivers/pwm/Kconfig.gecko | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```c
/*
*
*/
#include <nrfx_pwm.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <hal/nrf_gpio.h>
#include <stdbool.h>
#include <zephyr/linker/devicetree_regions.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_nrfx, CONFIG_PWM_... | /content/code_sandbox/drivers/pwm/pwm_nrfx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,479 |
```unknown
config PWM_NXP_FLEXIO
bool "NXP Flexio PWM driver"
default y
depends on DT_HAS_NXP_FLEXIO_ENABLED
depends on CLOCK_CONTROL
depends on DT_HAS_NXP_FLEXIO_PWM_ENABLED
select MCUX_FLEXIO
help
Enable flexio based pwm driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.nxp_flexio | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
# STM32 PWM configuration options
config PWM_STM32
bool "STM32 MCU PWM driver"
default y
depends on DT_HAS_ST_STM32_PWM_ENABLED
select USE_STM32_LL_TIM
select USE_STM32_LL_RCC if SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X
select RESET
help
This option enables the PWM driver... | /content/code_sandbox/drivers/pwm/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 120 |
```unknown
config PWM_CC13XX_CC26XX_TIMER
bool "TI SimpleLink CC13xx/CC26xx GPT timer PWM driver"
default y
depends on DT_HAS_TI_CC13XX_CC26XX_TIMER_PWM_ENABLED
help
Enables TI SimpleLink CC13xx/CC26xx GPT timer PWM driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.cc13xx_cc26xx_timer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
* Organisation (CSIRO) ABN 41 687 119 230.
*
*/
/*
* This is not a real PWM driver. It is used to instantiate struct
* devices for the "vnd,pwm" devicetree compatible used in test code.
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/pwm.h>
#define DT_DRV_COMPAT vnd_pwm
static int vnd_pwm_set_c... | /content/code_sandbox/drivers/pwm/pwm_test.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 405 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_flexio_pwm
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <fsl_flexio.h>
#include <fsl_clock.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
... | /content/code_sandbox/drivers/pwm/pwm_nxp_flexio.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,218 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_pwm
#include <errno.h>
#include <soc.h>
#include <stm32_ll_rcc.h>
#include <stm32_ll_tim.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h... | /content/code_sandbox/drivers/pwm/pwm_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,646 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_pwm
#include <zephyr/kernel.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/logging/l... | /content/code_sandbox/drivers/pwm/pwm_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,177 |
```unknown
# Nordic Semiconductor nRF5x s/w PWM configuration options
config PWM_NRF_SW
bool "Nordic Semiconductor nRF family S/W PWM"
default y if !PWM_NRFX
depends on DT_HAS_NORDIC_NRF_SW_PWM_ENABLED
select NRFX_GPIOTE
select NRFX_PPI if HAS_HW_NRF_PPI
select NRFX_DPPI if HAS_HW_NRF_DPPIC
help
Enable driv... | /content/code_sandbox/drivers/pwm/Kconfig.nrf_sw | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 184 |
```unknown
# ESP32 PWM LED configuration options
config PWM_LED_ESP32
bool "ESP32 PWM LED driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_LEDC_ENABLED
help
This option enables the PWM LED driver for ESP32 family of
processors.
config MCPWM_ESP32
bool "ESP32 MCPWM driver"
default y
depends on DT_HAS_... | /content/code_sandbox/drivers/pwm/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 114 |
```unknown
# Intel Blinky PWM configuration options
config PWM_INTEL_BLINKY
bool "Blinky PWM driver"
default y
depends on DT_HAS_INTEL_BLINKY_PWM_ENABLED
help
Enable the INTEL PCH PWM driver found on Intel SoCs
``` | /content/code_sandbox/drivers/pwm/Kconfig.intel_blinky | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#define DT_DRV_COMPAT gd_gd32_pwm
#include <errno.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/gd32.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/sys/util_macro.h>
#include <gd32_timer.h... | /content/code_sandbox/drivers/pwm/pwm_gd32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,652 |
```c
/*
*
*/
#define DT_DRV_COMPAT sifive_pwm0
#include <zephyr/arch/cpu.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/pwm.h>
#include <soc.h>
LOG_MODULE_REGISTER(pwm_sifive, CONFIG_PWM_LOG_LEVEL);
/* Macro... | /content/code_sandbox/drivers/pwm/pwm_sifive.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,706 |
```unknown
# (c) Meta Platforms, Inc. and affiliates.
config PWM_MCUX_CTIMER
bool "MCUX CTimer PWM driver"
default y
depends on DT_HAS_NXP_CTIMER_PWM_ENABLED
help
Enable ctimer based pwm driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.mcux_ctimer | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_pca9685_pwm
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/sys/util_macro.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_pca9685, CONFIG_PWM_LOG_LEVEL);
#define OSC_CLOCK_MAX ... | /content/code_sandbox/drivers/pwm/pwm_pca9685.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,050 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_pwm
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pwm.h>
#ifdef CONFIG_SOC_SERIES_MEC172X
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/... | /content/code_sandbox/drivers/pwm/pwm_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,410 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_blinky_pwm
#include <errno.h>
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/sys/util.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/pwm.h>
#define PWM_ENABLE 0x80000000
#define PWM_S... | /content/code_sandbox/drivers/pwm/pwm_intel_blinky.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 862 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_pwm
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control/atmel_sam_pmc.h>
#include <soc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_sam, CONFIG_PWM_LOG_LE... | /content/code_sandbox/drivers/pwm/pwm_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,029 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_pwt
#include <zephyr/drivers/clock_control.h>
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <fsl_pwt.h>
#include <fsl_clock.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGIST... | /content/code_sandbox/drivers/pwm/pwm_mcux_pwt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,606 |
```unknown
# NUMAKER PWM Driver configuration options
config PWM_NUMAKER
bool "Nuvoton NuMaker MCU PWM driver"
default y
select HAS_NUMAKER_PWM
depends on DT_HAS_NUVOTON_NUMAKER_PWM_ENABLED
help
This option enables the PWM driver for Nuvoton NuMaker family of
processors.
Say y if you wish to enable NuMa... | /content/code_sandbox/drivers/pwm/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
# SiFive Freedom PWM configuration options
config PWM_SIFIVE
bool "SiFive Freedom PWM driver"
default y
depends on DT_HAS_SIFIVE_PWM0_ENABLED
help
Enable the PWM driver for the SiFive Freedom platform
``` | /content/code_sandbox/drivers/pwm/Kconfig.sifive | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```unknown
# Reneas R-Car PWM configuration options
config PWM_RCAR
bool "Renesas R-Car PWM Driver"
default y
depends on SOC_FAMILY_RENESAS_RCAR
depends on DT_HAS_RENESAS_PWM_RCAR_ENABLED
help
Enable Renesas R-Car PWM Driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.rcar | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```c
/*
*
*/
#define DT_DRV_COMPAT nordic_nrf_sw_pwm
#include <soc.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <nrfx_gpiote.h>
#include <helpers/nrfx_gppi.h>
#include <hal/nrf_gpio.h>
#include <hal/nrf_rtc.h>
#include <hal/nrf_timer.h>
#include <zephyr/logging/log.h>
LOG_... | /content/code_sandbox/drivers/pwm/pwm_nrf_sw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,515 |
```c
/*
*
*/
#define DT_DRV_COMPAT litex_pwm
#include <zephyr/device.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/types.h>
#include <soc.h>
#define REG_EN_ENABLE 0x1
#define REG_EN_DISABLE 0x0
/* PWM device in LiteX has only one channel */
#define NUMBER_OF_CHANNELS 1
struct... | /content/code_sandbox/drivers/pwm/pwm_litex.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 547 |
```unknown
# IT8XXX2 PWM configuration options
config PWM_ITE_IT8XXX2
bool "ITE IT8XXX2 embedded controller (EC) PWM driver"
default y
depends on DT_HAS_ITE_IT8XXX2_PWM_ENABLED
help
Enable PWM driver for it8xxx2_evb.
Supports three 16-bit prescalers each with 8-bit cycle timer, and
eight PWM channels ... | /content/code_sandbox/drivers/pwm/Kconfig.it8xxx2 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 96 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <device_imx.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_imx, CONFIG_PWM_LOG_LEVEL);
#define PWM_PWMSR_FIFOAV_4WORDS 0x4
#define PWM_PWMCR_SWR(x) ... | /content/code_sandbox/drivers/pwm/pwm_imx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,331 |
```unknown
# MCUX TPM PWM
config PWM_MCUX_TPM
bool "MCUX TPM PWM driver"
default y
depends on DT_HAS_NXP_KINETIS_TPM_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable the MCUX TPM PWM driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.mcux_tpm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_capture, CONFIG_PWM_LOG_LEVEL);
struct z_pwm_capture_cb_data {
uint32_t period;
uint32_t pulse;
struct k_sem sem;
int status;
};
static void z_pwm_capture_cycles_callback(const stru... | /content/code_sandbox/drivers/pwm/pwm_capture.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 458 |
```unknown
# Xilinx AXI Timer
config PWM_XLNX_AXI_TIMER
bool "Xilinx AXI Timer driver"
default y
depends on DT_HAS_XLNX_XPS_TIMER_1_00_A_PWM_ENABLED
help
Enable PWM support for the Xilinx AXI Timer v2.0 IP.
``` | /content/code_sandbox/drivers/pwm/Kconfig.xlnx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
config PWM_XMC4XXX_CCU4
bool "Infineon XMC4XXX CCU4 driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_CCU4_PWM_ENABLED
help
Enables Infineon XMC4XXX CCU4 PWM driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.xmc4xxx_ccu4 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_mcpwm
#include <hal/mcpwm_hal.h>
#include <hal/mcpwm_ll.h>
#include <driver/mcpwm.h>
#include <soc.h>
#include <errno.h>
#include <string.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clo... | /content/code_sandbox/drivers/pwm/pwm_mc_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,545 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_pwm_rcar
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/clock_control/renesas_cpg_mssr.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/pwm.h>
#include <soc.h>
#define LOG_LEVEL CONFIG_PWM_LOG_LEVEL
#... | /content/code_sandbox/drivers/pwm/pwm_rcar.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,240 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_npcx_pwm
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/dt-bindings/clock/npcx_clock.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_npc... | /content/code_sandbox/drivers/pwm/pwm_npcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,799 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_ledc
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <hal/ledc_hal.h>
#include <hal/ledc_types.h>
#include <soc.h>
#include <errno.h>
#include <string.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/kernel.h>
#include <zephyr/drive... | /content/code_sandbox/drivers/pwm/pwm_led_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,235 |
```unknown
# RV32M1 TPM PWM
config PWM_RV32M1_TPM
bool "RV32M1 TPM PWM driver"
default y
depends on DT_HAS_OPENISA_RV32M1_TPM_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
help
Enable the RV32M1 TPM PWM driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.rv32m1_tpm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_ftm_pwm
#include <zephyr/drivers/clock_control.h>
#include <errno.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/irq.h>
#include <soc.h>
#include <fsl_ftm.h>
#include <fsl_clock.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
LOG_MODULE_RE... | /content/code_sandbox/drivers/pwm/pwm_mcux_ftm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,922 |
```unknown
config PWM_GD32
bool "GigaDevice GD32 PWM driver"
default y
depends on DT_HAS_GD_GD32_PWM_ENABLED
help
Enable the GigaDevice GD32 PWM driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.gd32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_pwmbbled
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pwm.h>
#ifdef CONFIG_SOC_SERIES_MEC172X
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_contro... | /content/code_sandbox/drivers/pwm/pwm_mchp_xec_bbled.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,827 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_ccu8_pwm
#include <soc.h>
#include <zephyr/dt-bindings/pwm/pwm.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <xmc_ccu8.h>
#include <xmc_scu.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_xmc4xxx_ccu8, CONFIG_PWM_LOG_... | /content/code_sandbox/drivers/pwm/pwm_xmc4xxx_ccu8.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,703 |
```unknown
# Microchip XEC PWM configuration options
config PWM_XEC
bool "Microchip XEC PWM"
default y
depends on DT_HAS_MICROCHIP_XEC_PWM_ENABLED
select PINCTRL
help
Enable driver to utilize PWM on the Microchip XEC IP block.
config PWM_BBLED_XEC
bool "Microchip XEC PWM-BBLED"
default y
depends on DT_HAS... | /content/code_sandbox/drivers/pwm/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 125 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_timer_pwm
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/pwm.h>
#include <driverlib/gpio.h>
#include <driverlib/prcm.h>
#include <driverlib/timer.h>
#include <inc/hw_memmap.h>
#include <inc/hw_types.h>
#include <ti/dr... | /content/code_sandbox/drivers/pwm/pwm_cc13xx_cc26xx_timer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,859 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_ccu4_pwm
#include <soc.h>
#include <zephyr/dt-bindings/pwm/pwm.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <xmc_ccu4.h>
#include <xmc_scu.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(pwm_xmc4xxx_ccu4, CONFIG_PWM_LOG_... | /content/code_sandbox/drivers/pwm/pwm_xmc4xxx_ccu4.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 978 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max31790_pwm
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/mfd/max31790.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pwm/max31790.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>... | /content/code_sandbox/drivers/pwm/pwm_max31790.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,819 |
```unknown
# NPCX PWM driver configuration options
config PWM_NPCX
bool "Nuvoton NPCX embedded controller (EC) PWM driver"
default y
depends on DT_HAS_NUVOTON_NPCX_PWM_ENABLED
help
This option enables the PWM driver for NPCX family of
processors.
Say y if you wish to use pwm ports on NPCX MCU.
``` | /content/code_sandbox/drivers/pwm/Kconfig.npcx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
# MCUX PWT PWM
config PWM_MCUX_PWT
bool "MCUX PWT PWM capture driver"
default y
depends on DT_HAS_NXP_KINETIS_PWT_ENABLED
depends on CLOCK_CONTROL && PWM_CAPTURE
select PINCTRL
help
Enable the MCUX Pulse Width Timer (PWT) PWM capture driver.
``` | /content/code_sandbox/drivers/pwm/Kconfig.mcux_pwt | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```unknown
config PWM_NRFX
bool "nRF PWM nrfx driver"
default y
depends on DT_HAS_NORDIC_NRF_PWM_ENABLED
select NRFX_PWM0 if HAS_HW_NRF_PWM0
select NRFX_PWM1 if HAS_HW_NRF_PWM1
select NRFX_PWM2 if HAS_HW_NRF_PWM2
select NRFX_PWM3 if HAS_HW_NRF_PWM3
select NRFX_PWM20 if HAS_HW_NRF_PWM20
select NRFX_PWM21 if HA... | /content/code_sandbox/drivers/pwm/Kconfig.nrfx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 212 |
```c
/*
*
*/
#define DT_DRV_COMPAT ite_it8xxx2_pwm
#include <zephyr/device.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/dt-bindings/pwm/it8xxx2_pwm.h>
#include <errno.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <soc_dt.h>
#include <stdlib.h>
#include <zephyr/l... | /content/code_sandbox/drivers/pwm/pwm_ite_it8xxx2.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,941 |
```c
/*
* (c) Meta Platforms, Inc. and affiliates.
*
*/
#define DT_DRV_COMPAT nxp_ctimer_pwm
#include <errno.h>
#include <fsl_ctimer.h>
#include <fsl_clock.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/dt-bindings/clock/mcux_lpc_sy... | /content/code_sandbox/drivers/pwm/pwm_mcux_ctimer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,279 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/clock_control.h>
#include <Emios_Mcl_Ip.h>
#include <Emios_Pwm_Ip.h>
#ifdef CONFIG_PWM_CAPTURE
#include <Emios_Icu_Ip.h>
#endif
#define LOG_MODULE_NAME nxp_s32_emios_pwm
#include <z... | /content/code_sandbox/drivers/pwm/pwm_nxp_s32_emios.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,706 |
```unknown
#
#
#
config PWM_MAX31790
bool "MAX31790 6-channel I2C-bus PWM controller"
default y
depends on DT_HAS_MAXIM_MAX31790_PWM_ENABLED
select MFD
help
Enable driver for MAX31790 6-channel I2C-bus PWM controller.
``` | /content/code_sandbox/drivers/pwm/Kconfig.max31790 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.