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
/ {
zephyr,user {
dac = <&dac1>;
dac-channel-id = <1>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/nucleo_u575zi_q.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/*
*
*/
/ {
zephyr,user {
dac = <&dac>;
dac-channel-id = <0>;
dac-resolution = <8>;
};
};
&dac {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/dac/boards/yd_esp32_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```unknown
/*
*
*/
/ {
zephyr,user {
dac = <&dac>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/gd32f450i_eval.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
/ {
zephyr,user {
dac = <&dac0>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/bl5340_dvk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/ {
zephyr,user {
dac = <&dac1>;
dac-channel-id = <1>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/nucleo_g071rb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/ {
zephyr,user {
dac = <&dac0>;
dac-channel-id = <0>;
dac-resolution = <10>;
};
};
&dac0 {
nxp,conversion-rate = "500K";
nxp,output-voltage-range = "large";
};
``` | /content/code_sandbox/samples/drivers/dac/boards/rd_rw612_bga.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
/ {
zephyr,user {
dac = <&dac0>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/frdm_k64f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/*
*
*/
&dac0 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/dac/boards/bl652_dvk.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
/ {
zephyr,user {
dac = <&dac>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/gd32e103v_eval.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
/ {
zephyr,user {
dac = <&dacc>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/sam_e70_xplained_same70q21b.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/*
*
*/
/ {
zephyr,user {
dac = <&dac>;
dac-channel-id = <0>;
dac-resolution = <8>;
};
};
&dac {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/dac/boards/esp32_devkitc_wrover_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```unknown
/ {
zephyr,user {
dac = <&dac1>;
dac-channel-id = <1>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/nucleo_l152re.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/ {
zephyr,user {
dac = <&dac0>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/frdm_k22f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/*
*
*/
/ {
zephyr,user {
dac = <&dac>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/longan_nano.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```unknown
/ {
zephyr,user {
dac = <&dac1>;
dac-channel-id = <1>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/nucleo_f207zg.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/*
*
*/
/ {
/*
* Please note on the FRDM-MCXN947 board, DAC0 output signal port is J1-4.
*/
zephyr,user {
dac = <&dac0>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};
``` | /content/code_sandbox/samples/drivers/dac/boards/frdm_mcxn947.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```yaml
sample:
description: Cadence Nand Driver sample application.
name: cdns_nand
tests:
sample.drivers.flash.soc_flash_nand:
platform_allow:
- intel_socfpga_agilex5_socdk
integration_platforms:
- intel_socfpga_agilex5_socdk
tags:
- flash
- cdns
harness: console
harn... | /content/code_sandbox/samples/drivers/soc_flash_nand/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 225 |
```unknown
# Misc
CONFIG_HEAP_MEM_POOL_SIZE=363840
# Enable Flash
CONFIG_FLASH=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/drivers/soc_flash_nand/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 26 |
```unknown
/*
*/
/* The overlay file should be used to enable any
* dts nodes required by this application for this
* board.
*/
/ {
aliases {
nand = &nand;
};
};
&nand {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/soc_flash_nand/boards/intel_socfpga_agilex5_socdk.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```restructuredtext
.. _video-samples:
Video Samples
#############
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/drivers/video/video.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```restructuredtext
.. zephyr:code-sample:: video-tcpserversink
:name: Video TCP server sink
:relevant-api: video_interface bsd_sockets
Capture video frames and send them over the network to a TCP client.
Description
***********
This sample application gets frames from a video capture device and sends
them ... | /content/code_sandbox/samples/drivers/video/tcpserversink/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 453 |
```unknown
# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NET_TCP=y
CONFIG_NET_IPV4=y
CONFIG_NET_SOCKETS=y
CONFIG_ZVFS_OPEN_MAX=6
CONFIG_POSIX_API=y
# Kernel options
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_INIT_STACKS=y
# Logging
CONFIG_NET_LOG=y
CONFIG_LO... | /content/code_sandbox/samples/drivers/video/tcpserversink/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 239 |
```yaml
sample:
name: Video TCP server sink
tests:
sample.video.tcpserversink:
build_only: true
tags:
- video
- net
- socket
- shield
platform_allow: mimxrt1064_evk
depends_on:
- video
- netif
integration_platforms:
- mimxrt1064_evk
extra_args:
... | /content/code_sandbox/samples/drivers/video/tcpserversink/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 114 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/net/socket.h>
#include <zephyr/drivers/video.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main);
#define VIDEO_DEV_SW "VIDEO_SW_GENERATOR"
#define MY_PORT 5000
#de... | /content/code_sandbox/samples/drivers/video/tcpserversink/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,070 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/sys/printk.h>
#ifndef OFFSET_PAGE
#define OFFSET_PAGE 0x00
#endif
#ifndef NAND_NUM_PAGES
#define NAND_NUM_PAGES 50
#endif
#define NAND_DEV DEVICE_DT_GET(DT_ALIAS(nand)... | /content/code_sandbox/samples/drivers/soc_flash_nand/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 969 |
```unknown
CONFIG_VIDEO=y
CONFIG_VIDEO_SW_GENERATOR=y
CONFIG_SHELL=y
CONFIG_DEVICE_SHELL=y
CONFIG_PRINTK=y
CONFIG_LOG=y
CONFIG_DISPLAY=y
``` | /content/code_sandbox/samples/drivers/video/capture/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```yaml
sample:
name: Video capture
tests:
sample.video.capture:
build_only: true
tags:
- video
- shield
- samples
extra_args:
- platform:mimxrt1064_evk:SHIELD="dvp_fpc24_mt9m114;rk043fn66hs_ctg"
- platform:mimxrt1170_evk/mimxrt1176/cm7:SHIELD="nxp_btb44_ov5640;rk055hdmipi4... | /content/code_sandbox/samples/drivers/video/capture/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 193 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/display.h>
#include <zephyr/drivers/video.h>
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main);
#define VIDEO_DEV_SW "VIDEO_SW_GENERATOR"
#if DT_HAS_CHOSEN(zephyr_display... | /content/code_sandbox/samples/drivers/video/capture/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,398 |
```restructuredtext
.. zephyr:code-sample:: video-capture
:name: Video capture
:relevant-api: video_interface
Use the video API to retrieve video frames from a capture device.
Description
***********
This sample application uses the :ref:`video_api` to capture frames from a video capture
device then uses th... | /content/code_sandbox/samples/drivers/video/capture/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 936 |
```unknown
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=3686800
CONFIG_DMA=y
CONFIG_MCUX_ELCDIF_PXP=y
CONFIG_MCUX_ELCDIF_PXP_ROTATE_90=y
``` | /content/code_sandbox/samples/drivers/video/capture/boards/mimxrt1170_evk_mimxrt1176_cm7.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 40 |
```restructuredtext
.. zephyr:code-sample:: grove-lcd
:name: Grove LCD
:relevant-api: grove_display
Display an incrementing counter and change the backlight color.
Overview
********
This sample displays an incrementing counter through the Grove LCD, with
changing backlight.
Requirements
************
To us... | /content/code_sandbox/samples/drivers/misc/grove_display/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 344 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_I2C=y
CONFIG_GROVE_LCD_RGB=y
``` | /content/code_sandbox/samples/drivers/misc/grove_display/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 26 |
```yaml
sample:
name: Grove LCD Sample
tests:
sample.drivers.misc.grove_display:
tags:
- drivers
- display
harness: grove
depends_on: i2c
filter: dt_compat_enabled("seeed,grove-lcd-rgb")
``` | /content/code_sandbox/samples/drivers/misc/grove_display/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,console = &sercom0;
zephyr,shell-uart = &sercom0;
};
};
&sercom0 {
compatible = "atmel,sam0-uart";
current-speed = <115200>;
rxpo = <1>;
txpo = <0>;
pinctrl-0 = <&sercom0_uart_default>;
pinctrl-names = "default";
};
&sercom2 {
compatible = "atmel,sam0-i2c";
clo... | /content/code_sandbox/samples/drivers/misc/grove_display/boards/serpente.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 201 |
```restructuredtext
.. zephyr:code-sample:: ft800
:name: FT800
:relevant-api: ft8xx_interface
Display various shapes and text using FT800 Embedded Video Engine.
Overview
********
This sample displays a hello message and an incrementing counter using FT800
Embedded Video Engine.
Requirements
************
T... | /content/code_sandbox/samples/drivers/misc/ft800/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 324 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/misc/grove_lcd/grove_lcd.h>
/**
* @file Display a counter through I2C and Grove LCD.
*/
/* sleep time in msec */
#define SLEEPTIME 100
uint8_t clamp_rgb(... | /content/code_sandbox/samples/drivers/misc/grove_display/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 820 |
```yaml
sample:
name: FT800 display sample
tests:
sample.display.ft800:
tags:
- drivers
- display
depends_on: spi
platform_allow: nrf52840dk/nrf52840
extra_args: SHIELD=ftdi_vm800c
harness: display
harness_config:
fixture: spi_display_ft800
``` | /content/code_sandbox/samples/drivers/misc/ft800/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```unknown
CONFIG_SPI=y
CONFIG_FT800=y
``` | /content/code_sandbox/samples/drivers/misc/ft800/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10 |
```restructuredtext
.. zephyr:code-sample:: timeaware-gpio
:name: Time-aware GPIO
:relevant-api: tgpio_interface
Synchronize clocks.
Overview
********
A sample application that can be used with any supported boards. eg. RPL.
prints configuration info to the console. Below functionalities are tested:
1. Per... | /content/code_sandbox/samples/drivers/misc/timeaware_gpio/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 616 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/misc/ft8xx/ft8xx.h>
#include <zephyr/drivers/misc/ft8xx/ft8xx_copro.h>
#include <zephyr/drivers/misc/ft8xx/ft8xx_dl.h>
/**
* @file Display a counter using FT800.
*/
/* sleep time in msec */
#define SLEEPTIME 100
/* touch tags */
#define TAG_PLUS... | /content/code_sandbox/samples/drivers/misc/ft800/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 692 |
```yaml
sample:
name: timeaware_gpio
tests:
sample.drivers.misc.timeaware_gpio:
tags:
- drivers
filter: dt_compat_enabled("intel,timeaware-gpio")
``` | /content/code_sandbox/samples/drivers/misc/timeaware_gpio/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 41 |
```unknown
# nothing here
CONFIG_TIMEAWARE_GPIO=y
``` | /content/code_sandbox/samples/drivers/misc/timeaware_gpio/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 12 |
```restructuredtext
.. zephyr:code-sample:: spi-bitbang
:name: SPI bitbang
:relevant-api: spi_interface
Use the bitbang SPI driver for communicating with a slave.
Overview
********
This sample demonstrates using the bitbang SPI driver. The bitbang driver can
be useful for devices which use a non multiple of... | /content/code_sandbox/samples/drivers/spi_bitbang/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 536 |
```c
/*
*
*/
/**
* @file
* @brief Sample application for timeaware GPIO.
* This example demonstrates the following
* a. How to generate pulses based on ART time on an output pin
* b. How to timestamp a pulse on an input pin
*/
/* Local Includes */
#include <zephyr/sys/util.h>
#include <zephyr/drivers/misc/tim... | /content/code_sandbox/samples/drivers/misc/timeaware_gpio/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 496 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_SPI=y
CONFIG_SPI_BITBANG=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/drivers/spi_bitbang/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```yaml
sample:
name: SPI Bitbang Driver Sample
tests:
sample.drivers.spi.bitbang:
tags:
- drivers
- spi
- gpio
platform_allow: nrf52840dk/nrf52840
depends_on: gpio
harness: console
harness_config:
fixture: gpio_loopback
type: multi_line
ordered: true
re... | /content/code_sandbox/samples/drivers/spi_bitbang/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 254 |
```unknown
/*
*
*/
/ {
spibb0: spibb0 {
compatible = "zephyr,spi-bitbang";
status="okay";
#address-cells = <1>;
#size-cells = <0>;
clk-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
mosi-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
miso-gpios = <&gpio1 2 0>;
cs-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
};
};
``` | /content/code_sandbox/samples/drivers/spi_bitbang/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 119 |
```restructuredtext
.. zephyr:code-sample:: led-pwm
:name: LED PWM
:relevant-api: led_interface
Control PWM LEDs using the LED API.
Overview
********
This sample allows to test the led-pwm driver. The first "pwm-leds" compatible
device instance found in DT is used. For each LEDs attached to this device
(chi... | /content/code_sandbox/samples/drivers/led_pwm/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 251 |
```unknown
CONFIG_LOG=y
CONFIG_PWM=y
CONFIG_LED=y
CONFIG_LOG_MODE_IMMEDIATE=y
``` | /content/code_sandbox/samples/drivers/led_pwm/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```yaml
sample:
description: Demonstration of the PWM LED driver
name: PWM LED sample
tests:
sample.drivers.led.led_pwm:
filter: dt_compat_enabled("pwm-leds")
tags: LED
depends_on: pwm
platform_exclude: reel_board
timeout: 20
harness: console
harness_config:
type: multi_line
... | /content/code_sandbox/samples/drivers/led_pwm/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 177 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(app, LOG_LEVEL_INF);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <stdio.h>
#include <string.h>
#include <zephyr/drivers/spi.h>
#define SPIBB_NODE DT_NODELABEL(spibb0)
/*
* writes 5 9bit words, you c... | /content/code_sandbox/samples/drivers/spi_bitbang/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,347 |
```unknown
/*
*
*/
/ {
/* do not define the led on the pa5 but a pwmleds */
leds {
status = "disabled";
};
};
&pwmleds {
/* NOTE: enable here because it is disabled by default */
status = "okay";
};
&pwm2 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/led_pwm/boards/nucleo_f091rc.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
/*
*
*/
/ {
/* do not define the led on the pa5 but a pwmleds */
leds {
status = "disabled";
};
};
&pwmleds {
/* NOTE: enable here because it is disabled by default */
status = "okay";
};
&pwm2 {
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/led_pwm/boards/nucleo_l073rz.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
/*
*
*/
/ {
/* do not define the leds on the pa5 and pb14 but pwmleds */
leds {
status = "disabled";
};
};
&pwmleds {
/* NOTE: enable here because it is disabled by default */
status = "okay";
};
&timers2 {
pwm2: pwm {
/* Change the pin used for PWM2 channel 1 */
/delete-property/ pinctrl-0;... | /content/code_sandbox/samples/drivers/led_pwm/boards/disco_l475_iot1.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/pwm/pwm.h>
/* MEC172x EVB
* BBLED controller 0 uses GPIO156/LED1 connected to JP71-11
* BBLED controller 1 uses GPIO157/LED2 connected to JP71-13
* BBLED controller 2 uses GPIO153/LED3 connected to JP71-5
* BBLED controller 3 uses GPIO035/PWM8 connected to JP67-19... | /content/code_sandbox/samples/drivers/led_pwm/boards/mec172xevb_assy6906.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 976 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <errno.h>
#include <zephyr/drivers/led.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main, CONFIG_LOG_DEFAULT_LEVEL);
#define LED_PWM_NODE_ID DT_COMPAT_GET_ANY_STATUS_OK... | /content/code_sandbox/samples/drivers/led_pwm/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 862 |
```unknown
/*
*
*/
/ {
/* do not define the leds on the pc7 and pb7 but pwmleds */
leds {
status = "disabled";
};
};
&pwmleds {
/* NOTE: enable here because it is disabled by default */
status = "okay";
};
``` | /content/code_sandbox/samples/drivers/led_pwm/boards/nucleo_u575zi_q.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/pwm/pwm.h>
/* MEC152x EVB
* BBLED controller 0 uses GPIO156/LED0 connected to JP31-13
* BBLED controller 1 uses GPIO157/LED1 connected to JP31-15
* BBLED controller 2 uses GPIO153/LED2 connected to JP31-17
*
* BBLED hardware divides input clock (32KHz or 48MHz) b... | /content/code_sandbox/samples/drivers/led_pwm/boards/mec15xxevb_assy6853.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 757 |
```unknown
/ {
leds {
status = "disabled";
};
pwm_leds {
status = "okay";
};
};
&pwm {
status = "okay";
divider-frac-4 = <15>;
divider-int-4 = <255>;
};
``` | /content/code_sandbox/samples/drivers/led_pwm/boards/rpi_pico.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```unknown
# Due to gpio-leds and pwm-leds are the same RGB LEDs so should not be used
# at the same time, need to disable this config when using pwm-leds.
CONFIG_LED_GPIO=n
``` | /content/code_sandbox/samples/drivers/led_pwm/boards/mr_canhubk3.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```restructuredtext
.. zephyr:code-sample:: is31fl3216a
:name: IS31FL3216A LED
:relevant-api: led_interface
Control up to 16 PWM LEDs connected to an IS31FL3216A driver chip.
Overview
********
This sample controls up to 16 LEDs connected to a is31fl3216a driver.
Each LED is gradually pulsed until it reach ... | /content/code_sandbox/samples/drivers/led_is31fl3216a/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 343 |
```unknown
/*
*
*/
&ftm0 {
clock-source = "fixed";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
};
``` | /content/code_sandbox/samples/drivers/led_pwm/boards/ucans32k1sic.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```yaml
sample:
description: Demonstration of the is31fl3216a LED driver
name: is31fl3216a sample
tests:
sample.drivers.led.is31fl3216a:
filter: dt_compat_enabled("issi,is31fl3216a")
tags: LED
depends_on: i2c
``` | /content/code_sandbox/samples/drivers/led_is31fl3216a/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/led.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main, CONFIG_LOG_DEFAULT_LEVEL);
#define MAX_BRIGHTNESS 100
#define LAST_LED 15
#define SLEEP_DELAY_MS 100
#define FADE_DELAY_MS 10
#define WRITE_CHANNELS_LED... | /content/code_sandbox/samples/drivers/led_is31fl3216a/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 695 |
```unknown
CONFIG_LOG=y
CONFIG_LED=y
``` | /content/code_sandbox/samples/drivers/led_is31fl3216a/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
/*
*
*/
/*
* Example configuration of a is31fl3216a device on an Arduino I2C bus.
*
* Device address 0x74 is assumed. Your device may have a different
* address; check your device documentation if unsure.
*/
&arduino_i2c {
status = "okay";
is31fl3216a@74 {
compatible = "issi,is31fl3216a";
reg =... | /content/code_sandbox/samples/drivers/led_is31fl3216a/boards/arduino_i2c.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 99 |
```restructuredtext
.. zephyr:code-sample:: lora-send
:name: LoRa send
:relevant-api: lora_api
Transmit a preconfigured payload every second using the LoRa radio.
Overview
********
This sample demonstrates how to use the LoRa radio driver to configure
the encoding settings and send data over the radio.
Tra... | /content/code_sandbox/samples/drivers/lora/send/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 288 |
```unknown
CONFIG_LOG=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_LORA=y
CONFIG_PRINTK=y
``` | /content/code_sandbox/samples/drivers/lora/send/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```yaml
common:
tags: lora
depends_on: lora
sample:
description: Demonstration of LoRa Send functionality
name: LoRa Send Sample
tests:
sample.driver.lora.send:
harness: console
harness_config:
type: one_line
regex:
- "<inf> lora_send: Data sent!"
``` | /content/code_sandbox/samples/drivers/lora/send/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/led/led.h>
&flexcomm4 {
status = "okay";
is31fl3216a@74 {
compatible = "issi,is31fl3216a";
reg = <0x74>;
};
};
``` | /content/code_sandbox/samples/drivers/led_is31fl3216a/boards/lpcxpresso55s28.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/lora.h>
#include <errno.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#define DEFAULT_RADIO_NODE DT_ALIAS(lora0)
BUILD_ASSERT(DT_NODE_HAS_STATUS(DEFAULT_RADIO_NODE, okay),
"No default LoRa radio specified in DT");
#define MAX_DATA_... | /content/code_sandbox/samples/drivers/lora/send/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 401 |
```unknown
CONFIG_LOG=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_LORA=y
CONFIG_PRINTK=y
``` | /content/code_sandbox/samples/drivers/lora/receive/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```yaml
common:
tags: lora
depends_on: lora
sample:
description: Demonstration of LoRa Receive functionality
name: LoRa Receive Sample
tests:
sample.driver.lora.receive:
harness: console
harness_config:
type: one_line
regex:
- "<inf> lora_receive: Synchronous reception"
``` | /content/code_sandbox/samples/drivers/lora/receive/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/lora.h>
#include <errno.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#define DEFAULT_RADIO_NODE DT_ALIAS(lora0)
BUILD_ASSERT(DT_NODE_HAS_STATUS(DEFAULT_RADIO_NODE, okay),
"No default LoRa radio specified in DT");
#define MAX_DATA_... | /content/code_sandbox/samples/drivers/lora/receive/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 593 |
```restructuredtext
.. zephyr:code-sample:: lora-receive
:name: LoRa receive
:relevant-api: lora_api
Receive packets in both synchronous and asynchronous mode using the LoRa
radio.
Overview
********
This sample demonstrates how to use the LoRa radio driver to receive packets
both synchronously and asynch... | /content/code_sandbox/samples/drivers/lora/receive/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 870 |
```unknown
config SEQUENCE_SAMPLES
int "Number of samples to be made on the sequence for each channel."
default 5
config SEQUENCE_RESOLUTION
int "Set the resolution of the sequence readings."
default 12
source "Kconfig.zephyr"
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 53 |
```unknown
CONFIG_ADC=y
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```yaml
sample:
name: ADC driver sequence sample
tests:
sample.drivers.adc.adc_sequence:
tags:
- adc
depends_on: adc
platform_allow:
- cy8cproto_063_ble
- cy8cproto_062_4343w
- nrf52840dk/nrf52840
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
integrat... | /content/code_sandbox/samples/drivers/adc/adc_sequence/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 201 |
```c
/*
*
*/
#include <zephyr/drivers/adc.h>
#include <zephyr/kernel.h>
/* ADC node from the devicetree. */
#define ADC_NODE DT_ALIAS(adc0)
/* Auxiliary macro to obtain channel vref, if available. */
#define CHANNEL_VREF(node_id) DT_PROP_OR(node_id, zephyr_vref_mv, 0)
/* Data of ADC device specified in devicetree... | /content/code_sandbox/samples/drivers/adc/adc_sequence/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 825 |
```restructuredtext
.. zephyr:code-sample:: adc_sequence
:name: Analog-to-Digital Converter (ADC) sequence sample
:relevant-api: adc_interface
Read analog inputs from ADC channels, using a sequence.
Overview
********
This sample demonstrates how to use the :ref:`ADC driver API <adc_api>` using sequences.
D... | /content/code_sandbox/samples/drivers/adc/adc_sequence/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 596 |
```unknown
/*
*
*/
/ {
aliases {
adc0 = &adc;
};
};
/ {
zephyr,user {
io-channels = <&adc 0>, <&adc 1>, <&adc 7>;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1_2";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/nrf54h20dk_nrf54h20_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 369 |
```unknown
/*
*
*/
/ {
aliases {
adc0 = &afec0;
};
};
&afec0 {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
};
channel@8 {
reg = <8>;
zephyr,gain = "ADC_GAIN... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/sam_e70_xplained.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/adc/adc.h>
/ {
aliases {
adc0 = &adc0;
};
};
&adc0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/cy8cproto_063_ble.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 228 |
```unknown
/*
*
*/
/ {
aliases {
adc0 = &afec0;
};
};
&afec0 {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
};
channel@8 {
reg = <8>;
zephyr,gain = "ADC_GAIN... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/sam_v71_xult_samv71q21.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 152 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/sam_v71_xult_samv71q21.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mec15xxevb_assy6853.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
/*
*
*/
#include "sam_v71_xult_samv71q21.overlay"
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/sam_v71_xult_samv71q21b.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```unknown
/*
*
*/
/ {
aliases {
adc0 = &adc;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN1>; /* P0.03 */
}... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 200 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mimxrt595_evk_cm33.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
/*
*
*/
/ {
aliases {
adc0 = &adc1;
};
};
&adc1 {
#address-cells = <1>;
#size-cells = <0>;
/*
* To use this sample connect
* J33.1 (ADC1 CH3) and J33.2 (ADC1 CH4) to voltages between 0 and 3.3V
*/
channel@3 {
reg = <3>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mimxrt1040_evk.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 198 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/cy8cproto_062_4343w.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/lpcxpresso55s69_cpu0.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
/*
*
*/
/ {
aliases {
adc0 = &adc0;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <0>;
};
channel@3 {
reg = <3>;
zephyr,gain = "ADC_GAIN_1";
zephyr,referen... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mec172xevb_assy6906.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 142 |
```unknown
/*
*
*/
/ {
zephyr,user {
io-channels = <&adc 0>, <&adc 1>, <&adc 7>;
};
};
/ {
aliases {
adc0 = &adc;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TI... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 363 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/nucleo_c031c6.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/adc/adc.h>
/ {
aliases {
adc0 = &adc2;
};
};
&adc2 {
group-channel = "precision";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
channel@3 {
reg = <3>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mr_canhubk3.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 176 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/adc/mcux-lpadc.h>
/ {
aliases {
adc0 = &lpadc0;
};
};
&lpadc0 {
#address-cells = <1>;
#size-cells = <0>;
/*
* To use this sample:
* LPADC0 CH0A and CH0B are set up in differential mode (B-A)
* - Connect LPADC0 CH0A signal to voltage between 0~1.8V (J30 ... | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mimxrt595_evk_cm33.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 382 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/mec172xevb_assy6906.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/cy8cproto_063_ble.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
```unknown
CONFIG_SEQUENCE_RESOLUTION=12
``` | /content/code_sandbox/samples/drivers/adc/adc_sequence/boards/sam4s_xplained.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.