text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_LOG=y
CONFIG_SHELL=y
CONFIG_SENSOR_SHELL=y
CONFIG_SERIAL=y
CONFIG_SENSOR=y
CONFIG_SENSOR_LOG_LEVEL_DBG=y
``` | /content/code_sandbox/samples/sensor/co2_polling/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```restructuredtext
.. co2:
Generic CO2 polling sample
##########################
Overview
********
A sensor sample that demonstrates how to poll a CO2 sensor.
Building and Running
********************
This sample reads the CO2 sensor and print the values continuously.
.. zephyr-app-commands::
:zephyr-app: sam... | /content/code_sandbox/samples/sensor/co2_polling/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```yaml
sample:
name: CO2 sensor sample
tests:
sample.sensor.co2:
harness: sensor
tags: sensors
filter: dt_alias_exists("co2")
depends_on: serial uart_interrupt_driven
``` | /content/code_sandbox/samples/sensor/co2_polling/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 49 |
```unknown
/ {
aliases {
co2 = &explorir_m;
};
};
&lpuart1 {
status = "okay";
current-speed = <9600>;
explorir_m: explorir_m {
compatible = "gss,explorir-m";
status = "okay";
};
};
``` | /content/code_sandbox/samples/sensor/co2_polling/boards/nucleo_h563zi.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```unknown
CONFIG_UART_INTERRUPT_DRIVEN=y
``` | /content/code_sandbox/samples/sensor/co2_polling/boards/nucleo_h563zi.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(MAIN);
int main(void)
{
struct sensor_value value;
const struct device *const dev = DEVICE_DT_GET(DT_ALIAS(co2));
if (!device_is_ready(dev)) {
LOG_ERR("%s is not ready", dev->name);
... | /content/code_sandbox/samples/sensor/co2_polling/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 159 |
```unknown
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SENSOR=y
CONFIG_LED=y
CONFIG_GROW_R502A_TRIGGER_OWN_THREAD=y
# Minimum stack size needed
CONFIG_GROW_R502A_THREAD_STACK_SIZE=1536
``` | /content/code_sandbox/samples/sensor/grow_r502a/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 51 |
```restructuredtext
.. _grow_r502a:
GROW_R502A Fingerprint Sensor
#############################
Overview
********
This sample has the below functionalities:
#. Sensor LED is controlled using led APIs from zephyr subsystem.
#. Shows the number of fingerprints stored in the sensor.
#. Shows the sensor device's config... | /content/code_sandbox/samples/sensor/grow_r502a/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 470 |
```yaml
#
#
sample:
name: grow_r502a fingerprint sensor sample
tests:
sample.sensor.grow_r502a:
tags: sensors
harness: sensor
build_only: true
depends_on: serial
filter: dt_compat_enabled("hzgrow,r502a")
``` | /content/code_sandbox/samples/sensor/grow_r502a/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```unknown
&pinctrl {
uart2_default: uart2_default {
group1 {
pinmux = <UART2_TX_GPIO32>;
};
group2 {
pinmux = <UART2_RX_GPIO33>;
bias-pull-up;
};
};
};
&uart2 {
status = "okay";
current-speed = <57600>;
pinctrl-0 = <&uart2_default>;
pinctrl-names = "default";
fps {
#address-cells=<1>;
#si... | /content/code_sandbox/samples/sensor/grow_r502a/boards/esp32_devkitc_wroom_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 190 |
```unknown
&pinctrl {
uart2_default: uart2_default {
group1 {
pinmux = <UART2_TX_GPIO32>;
};
group2 {
pinmux = <UART2_RX_GPIO33>;
bias-pull-up;
};
};
};
&uart2 {
status = "okay";
current-speed = <57600>;
pinctrl-0 = <&uart2_default>;
pinctrl-names = "default";
fps {
#address-cells=<1>;
#si... | /content/code_sandbox/samples/sensor/grow_r502a/boards/yd_esp32_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 167 |
```restructuredtext
MAX6675 K-thermocouple to digital converter
###########################################
Overview
********
This is a sample application to read an external MAX6675
cold-junction-compensated K-thermocouple to digital converter.
Requirements
************
- MAX6675 wired to your board SPI bus
- K-th... | /content/code_sandbox/samples/sensor/max6675/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 265 |
```unknown
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_SPI=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/max6675/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor/grow_r502a.h>
#include <zephyr/drivers/led.h>
static bool enroll;
static struct sensor_value fid_get, count, find, de... | /content/code_sandbox/samples/sensor/grow_r502a/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,315 |
```yaml
sample:
name: MAX6675 K-thermocouple to digital converter
tests:
sample.sensor.max6675:
tags: sensors
harness: console
depends_on: spi
harness_config:
type: multi_line
ordered: true
regex:
- "Temperature: ([0-9\\.]+) C"
fixture: fixture_spi_max6675
filter:... | /content/code_sandbox/samples/sensor/max6675/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 98 |
```unknown
/*
*
*/
&arduino_spi {
max6675@0 {
compatible = "maxim,max6675";
reg = <0>;
spi-max-frequency = <4300000>;
};
};
``` | /content/code_sandbox/samples/sensor/max6675/boards/nucleo_f030r8.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 45 |
```c
/*
*
*/
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
/**
* @file Sample app using the MAX6675 cold-junction-compensated K-thermocouple
* to digital converter.
*
* This app will read and display the sensor temperature every second.
*/
int ma... | /content/code_sandbox/samples/sensor/max6675/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 273 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_GPIO=y
CONFIG_SENSOR=y
#CONFIG_MCP9808_TRIGGER_NONE=y
CONFIG_MCP9808_TRIGGER_OWN_THREAD=y
#CONFIG_MCP9808_TRIGGER_GLOBAL_THREAD=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/mcp9808/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```yaml
sample:
name: MCP9808 Temperature Sensor
tests:
sample.sensor.mcp9808:
harness: sensor
tags: sensors
depends_on: i2c
filter: dt_compat_enabled("microchip,mcp9808")
platform_allow: nucleo_l053r8
integration_platforms:
- nucleo_l053r8
``` | /content/code_sandbox/samples/sensor/mcp9808/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```restructuredtext
.. _mcp9808-sample:
MCP9808 Temperature Sensor
##########################
Overview
********
This sample application periodically (0.5 Hz) measures the ambient
temperature. The result is written to the console.
If triggered measurements are enabled the sample initializes and
maintains a |plusminu... | /content/code_sandbox/samples/sensor/mcp9808/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 694 |
```unknown
/*
*
*/
&i2c0 {
mcp9808@18 {
compatible = "microchip,mcp9808";
reg = <0x18>;
int-gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};
``` | /content/code_sandbox/samples/sensor/mcp9808/boards/particle_xenon.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
/*
*
*/
&i2c1 {
mcp9808@18 {
compatible = "microchip,mcp9808";
reg = <0x18>;
int-gpios = <&gpiob 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
resolution = <3>;
};
};
``` | /content/code_sandbox/samples/sensor/mcp9808/boards/nucleo_l031k6.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```unknown
/*
*
*/
&i2c1 {
mcp9808@18 {
compatible = "microchip,mcp9808";
reg = <0x18>;
int-gpios = <&gpioa 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
resolution = <3>;
};
};
``` | /content/code_sandbox/samples/sensor/mcp9808/boards/nucleo_l053r8.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
/*
*
*/
&i2c0 {
mcp9808@18 {
compatible = "microchip,mcp9808";
reg = <0x18>;
int-gpios = <&gpioc 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};
``` | /content/code_sandbox/samples/sensor/mcp9808/boards/frdm_k64f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#define UCEL_PER_CEL 1000000
#define UCEL_PER_MCEL 1000
#define TEMP_INITIAL_CEL 25
#define TEMP_WINDOW_HALF_UCEL 500000
static const char *now_str(void)
{
static char buf[16]; /* ...HH:MM:SS.M... | /content/code_sandbox/samples/sensor/mcp9808/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,022 |
```restructuredtext
.. _max30101:
MAX30101 Heart Rate Sensor
##########################
Overview
********
A sensor application that demonstrates how to poll data from the max30101 heart
rate sensor.
Building and Running
********************
This project configures the max30101 sensor on the :ref:`hexiwear` board t... | /content/code_sandbox/samples/sensor/max30101/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 223 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_LOG=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_SENSOR_LOG_LEVEL_DBG=y
``` | /content/code_sandbox/samples/sensor/max30101/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 28 |
```yaml
sample:
description: TBD
name: TBD
tests:
sample.sensor.max30101:
harness: sensor
tags: sensors
platform_allow: hexiwear/mk64f12
depends_on: i2c
integration_platforms:
- hexiwear/mk64f12
``` | /content/code_sandbox/samples/sensor/max30101/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
int main(void)
{
struct sensor_value green;
const struct device *const dev = DEVICE_DT_GET_ANY(maxim_max30101);
if (dev == NULL) {
printf("Could not get max30101 device\n");
return 0;
}
if (!device_is_ready(dev))... | /content/code_sandbox/samples/sensor/max30101/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 175 |
```unknown
/*
*
*/
&i2c0 {
max30101@57 {
status = "okay";
};
};
&gpioa {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/max30101/boards/hexiwear_mk64f12.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SPI=y
CONFIG_SENSOR=y
CONFIG_LSM6DSL_TRIGGER_GLOBAL_THREAD=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/lsm6dsl/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```yaml
sample:
name: LSM6DSL accelerometer and gyrometer sensor
tests:
sample.sensor.lsm6dsl:
harness: console
tags: sensors
depends_on: lsm6dsl
timeout: 15
harness_config:
type: multi_line
ordered: true
regex:
- "accel x:[-.0-9]* ms/2 y:[-.0-9]* ms/2 z:[-.0-9]* ms/2"
... | /content/code_sandbox/samples/sensor/lsm6dsl/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 150 |
```restructuredtext
.. _lsm6dsl:
LSM6DSL: IMU sensor Monitor
###########################
Overview
********
This sample sets the LSM6DSL accelerometer and gyroscope to 104Hz
and enable a trigger on data ready. It displays on the console the
values for accelerometer and gyroscope, plus optionally the values of
any magn... | /content/code_sandbox/samples/sensor/lsm6dsl/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 543 |
```restructuredtext
.. _vcnl4040_sample:
VCNL4040: proximity and ambient light sensor
############################################
Overview
********
This sample periodically measures proximity and light for
5 sec in the interval of 300msec in polling mode. Then threshold trigger mode
is enabled with the high thres... | /content/code_sandbox/samples/sensor/vcnl4040/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 309 |
```unknown
CONFIG_PRINTK=y
CONFIG_GPIO=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_VCNL4040_TRIGGER_GLOBAL_THREAD=y
CONFIG_VCNL4040_ENABLE_ALS=y
``` | /content/code_sandbox/samples/sensor/vcnl4040/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```yaml
sample:
name: VCNL4040 Sensor Sample
tests:
sample.sensor.vcnl4040:
harness: sensor
platform_allow: adafruit_feather_stm32f405
integration_platforms:
- adafruit_feather_stm32f405
tags: sensors
filter: dt_compat_enabled("vishay,vcnl4040")
``` | /content/code_sandbox/samples/sensor/vcnl4040/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 82 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/util.h>
static int print_samples;
static int lsm6dsl_trig_cnt;
static struct sensor_value accel_x_out, accel_y_out, accel_z_out;
static struct sensor_value gyro_x_out, gyro_... | /content/code_sandbox/samples/sensor/lsm6dsl/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,439 |
```unknown
/*
*
*/
&feather_i2c {
vcnl4040@60 {
compatible = "vishay,vcnl4040";
reg = <0x60>;
int-gpios = <&feather_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
led-current = <200>;
led-duty-cycle = <320>;
proximity-it = "8";
proximity-trigger = "close";
als-it = <640>;
};
};
``` | /content/code_sandbox/samples/sensor/vcnl4040/boards/adafruit_feather_stm32f405.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys_clock.h>
#include <stdio.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#define MAX_TEST_TIME 5000
#define SLEEPTIME 300
static void print_proxy_data(const struct device *... | /content/code_sandbox/samples/sensor/vcnl4040/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 836 |
```restructuredtext
.. _tmp108_sample:
TMP108 sample
#############
Description
***********
This sample writes the temperature to the console once every 3 seconds. There are
macro definitions included for turning off and on alerts if that is set up, and
also using low power one shot mode.
Requirements
************
... | /content/code_sandbox/samples/sensor/tmp108/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 207 |
```unknown
CONFIG_SENSOR=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_I2C=y
CONFIG_ASSERT=y
``` | /content/code_sandbox/samples/sensor/tmp108/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 28 |
```unknown
#
#
#
mainmenu "TMP108 sample application"
config APP_REPORT_TEMP_ALERTS
bool "Report over and under temperature alerts"
default n
config APP_ENABLE_ONE_SHOT
bool "One shot low power mode"
default n
help
One shot requires a callback to be invoked after the tmp108 has
woken up and taken a temperat... | /content/code_sandbox/samples/sensor/tmp108/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 265 |
```yaml
sample:
name: TMP 108 Temperature Sensor Sample
tests:
sample.sensor.tmp108:
harness: console
tags: sensors
depends_on:
- i2c
- gpio
filter: dt_compat_enabled("ti,tmp108")
harness_config:
type: multi_line
regex:
- "temperature is *.*C"
``` | /content/code_sandbox/samples/sensor/tmp108/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```restructuredtext
.. _lps22hh_i3c:
LPS22HH: Temperature and Pressure Monitor (I3C)
###############################################
Overview
********
This sample periodically reads pressure from the LPS22HH MEMS pressure
sensor and displays it on the console.
Requirements
************
This sample uses the LPS22HH ... | /content/code_sandbox/samples/sensor/lps22hh_i3c/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 670 |
```c
/*
*
*/
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/tmp108.h>
void temperature_one_shot(const struct device *dev,
const struct sensor_trigger *trigger)
{
struct sensor_value temp_value;
int result;
result = sensor_channel_get(dev,
... | /content/code_sandbox/samples/sensor/tmp108/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 953 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_I3C=y
CONFIG_SENSOR=y
CONFIG_LPS22HH_TRIGGER_GLOBAL_THREAD=y
``` | /content/code_sandbox/samples/sensor/lps22hh_i3c/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```yaml
sample:
name: LPS22HH Temperature and Pressure Monitor (using I3C)
tests:
sample.sensor.lps22hh.i3c:
harness: console
tags: sensors
depends_on: i3c
filter: dt_compat_enabled("st,lps22hh")
build_only: true
harness_config:
type: multi_line
ordered: true
regex:
... | /content/code_sandbox/samples/sensor/lps22hh_i3c/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```unknown
CONFIG_PRINTK=y
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/max44009/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```unknown
&i3c0 {
status = "okay";
/*
* There might be other connected I2C devices
* (for example, if using Arduino shield) which
* cannot tolerate high clock speed. So slow
* down the clock.
*/
i2c-scl-hz = <400000>;
i3c-scl-hz = <400000>;
i3c-od-scl-hz = <400000>;
clk-divider = <12>;
clk-divider-s... | /content/code_sandbox/samples/sensor/lps22hh_i3c/boards/mimxrt685_evk_mimxrt685s_cm33.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 183 |
```yaml
sample:
name: MAX44009 light sensor
description: >
This is a sample app to read an external MAX44009 light sensor via I2C
interface
tests:
sample.sensor.max44009:
tags: sensors
harness: console
depends_on: i2c
harness_config:
type: multi_line
ordered: true
regex:
... | /content/code_sandbox/samples/sensor/max44009/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 129 |
```unknown
/*
*
*/
&i2c0 {
max44009@4a {
compatible = "maxim,max44009";
reg = <0x4a>;
int-gpios = <&gpioc 6 0>;
};
};
``` | /content/code_sandbox/samples/sensor/max44009/boards/frdm_k64f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/sensor.h>
/**
* @file Sample app using the MAX44009 light sensor through ARC I2C.
*
* This app will read the sensor reading via I2C interface and show
* the result every 4 seconds.
*/
int main(void)
{
const struct... | /content/code_sandbox/samples/sensor/max44009/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 273 |
```unknown
CONFIG_ASSERT=y # validation
CONFIG_I2C=y
CONFIG_GPIO=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/ti_hdc/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21 |
```yaml
sample:
name: TI HDC Humidity/Temperature Sensor
tests:
sample.sensor.ti_hdc:
harness: sensor
platform_allow:
- reel_board
- nucleo_l496zg
integration_platforms:
- reel_board
tags: sensors
depends_on: i2c
``` | /content/code_sandbox/samples/sensor/ti_hdc/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```restructuredtext
.. _ti_hdc_sample:
TI_HDC Sample
##############
Description
***********
This sample application periodically takes Temperature and Humidity
using the ti_hdc sensor driver. The result is written to the console.
Requirements
************
This sample needs a compatible sensor like HDC1010 or HDC10... | /content/code_sandbox/samples/sensor/ti_hdc/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 569 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/gpio.h>
int main(void)
{
printk("Running on %s!\n", CONFIG_ARCH);
const struct device *cons... | /content/code_sandbox/samples/sensor/ti_hdc/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 283 |
```unknown
/*
*
*/
&arduino_i2c {
ti_hdc: ti_hdc@40 {
compatible = "ti,hdc","ti,hdc1080";
reg = <0x40>;
};
};
``` | /content/code_sandbox/samples/sensor/ti_hdc/boards/nucleo_l496zg.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
CONFIG_ADC=y
CONFIG_SENSOR=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/grove_light/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```yaml
common:
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
name: Grove Light Sensor
tests:
sample.sensor.grove_light:
tags:
- drivers
- sensor
- grove
- light
platform_allow: nrf52dk/nrf52832
integration_platforms:
- nrf52dk/nrf52832
harness: grove
depends_on: adc... | /content/code_sandbox/samples/sensor/grove_light/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```restructuredtext
.. _grove_light:
Grove Light Sensor
##################
Overview
********
This sample application gets the output of the grove light sensor and prints it to the console, in
units of lux, once every second.
Requirements
************
To use this sample, the following hardware is required:
* A boa... | /content/code_sandbox/samples/sensor/grove_light/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 312 |
```unknown
/*
*
*/
/ {
ntc {
compatible = "seeed,grove-light";
io-channels = <&arduino_adc 0>;
};
};
``` | /content/code_sandbox/samples/sensor/grove_light/boards/nrf52dk_nrf52832.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <stdio.h>
#include <zephyr/drivers/sensor.h>
#define SLEEP_TIME K_MSEC(1000)
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ONE(seeed_grove_light);
if (!device_is_ready(dev)) {
printk("sensor: device not ready.\n");
r... | /content/code_sandbox/samples/sensor/grove_light/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 186 |
```unknown
/*
*/
&arduino_i2c {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
iaqcore: iaqcore@5a {
compatible = "ams,iaqcore";
reg = <0x5a>;
};
};
``` | /content/code_sandbox/samples/sensor/ams_iAQcore/app.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```unknown
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/ams_iAQcore/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```yaml
sample:
description: Demonstration of the AMS iAQ-core Digital VOC Sensor driver
name: iAQcore sample
tests:
sample.sensor.iaqcore:
harness: sensor
tags: samples
depends_on:
- i2c
- arduino_i2c
``` | /content/code_sandbox/samples/sensor/ams_iAQcore/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```restructuredtext
.. _ams_iaqcore:
ams iAQcore Indoor air quality sensor
#####################################
Overview
********
This sample application demonstrates how to use the ams iAQcore sensor to
measure CO2 equivalent and VOC. The CO2 value is a predicted value derived from
VOC. The values are fetched and ... | /content/code_sandbox/samples/sensor/ams_iAQcore/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 273 |
```unknown
CONFIG_I2C=y
CONFIG_GPIO=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/sx9500/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/printk.h>
int main(void)
{
const struct device *dev;
struct sensor_value co2, voc;
dev = DEVICE_DT_GET_ONE(ams_iaqcore);
if (!device_is_ready(dev)) {
printk("sensor: device not ready.\n"... | /content/code_sandbox/samples/sensor/ams_iAQcore/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 225 |
```yaml
sample:
name: SX9500 Sensor Sample
tests:
sample.sensor.sx9500:
harness: sensor
tags: sensors
depends_on:
- i2c
- gpio
filter: dt_compat_enabled("semtech,sx9500")
``` | /content/code_sandbox/samples/sensor/sx9500/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```unknown
/*
*
*/
&i2c0 {
sx9500@28 {
compatible = "semtech,sx9500";
reg = <0x28>;
int-gpios = <&gpioc 6 GPIO_ACTIVE_LOW>;
};
};
``` | /content/code_sandbox/samples/sensor/sx9500/boards/frdm_k64f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/printk.h>
#ifdef CONFIG_SX9500_TRIGGER
static void sensor_trigger_handler(const struct device *dev,
const struct sensor_trigger *trig)
{
struct sensor_value prox_valu... | /content/code_sandbox/samples/sensor/sx9500/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 442 |
```restructuredtext
.. _lps22hh:
LPS22HH: Temperature and Pressure Monitor
#########################################
Overview
********
This sample periodically reads pressure from the LPS22HH MEMS pressure
sensor and displays it on the console.
Requirements
************
This sample uses the LPS22HH sensor controll... | /content/code_sandbox/samples/sensor/lps22hh/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 314 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/lps22hh/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 24 |
```yaml
sample:
name: LPS22HH Temperature and Pressure Monitor
tests:
sample.sensor.lps22hh:
harness: console
tags: sensors
depends_on: i2c
filter: dt_compat_enabled("st,lps22hh")
harness_config:
type: multi_line
ordered: true
regex:
- "Temperature: (.*)"
- "Pre... | /content/code_sandbox/samples/sensor/lps22hh/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 102 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/util.h>
static void process_sample(const struct device *dev)
{
static unsigned int obs;
struct sensor_value pressure, temp;
if (sensor_sample_fetch(dev) < 0) {
printf("... | /content/code_sandbox/samples/sensor/lps22hh/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 510 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/bme680/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```yaml
sample:
name: BME680 Sensor sample
tests:
sample.sensor.bme680:
harness: sensor
tags:
- samples
- sensor
integration_platforms:
- nrf52840dk/nrf52840
platform_allow:
- nrf52840dk/nrf52840
- adafruit_feather_nrf52840_sense
``` | /content/code_sandbox/samples/sensor/bme680/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```restructuredtext
.. _bme680:
BME680: Integrated environmental sensor
#####################################################
Description
***********
This sample application periodically (every 3s) measures the ambient temperature
in degrees Celsius, atmospheric pressure in kilopascal, relative humidity in percentag... | /content/code_sandbox/samples/sensor/bme680/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 490 |
```unknown
/*
*
*/
&i2c0 {
bme680@76 {
compatible = "bosch,bme680";
reg = <0x76>;
};
};
``` | /content/code_sandbox/samples/sensor/bme680/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```unknown
/*
*
*
* i2c interface for the Feather nRF52840 Express and the
* Adafruit BME680.
*/
&i2c0 {
compatible = "nordic,nrf-twi";
bme680: bme680@77 {
compatible = "bosch,bme680";
reg = <0x77>;
};
};
``` | /content/code_sandbox/samples/sensor/bme680/boards/adafruit_feather_nrf52840_sense.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ONE(bosch_bme680);
struct sensor_value temp, press, humidity, gas_res;
if (!device_is_ready(dev)) {
printk("sensor: device no... | /content/code_sandbox/samples/sensor/bme680/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 307 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/mpr/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```yaml
sample:
name: MPR Pressure Sensor
tests:
sample.sensor.mpr:
harness: sensor
tags: sensors
platform_allow: arduino_due
integration_platforms:
- arduino_due
``` | /content/code_sandbox/samples/sensor/mpr/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```restructuredtext
.. _mpr-sample:
MPR Pressure Sensor
###################
Overview
********
This sample application periodically (1Hz) measures atmospheric pressure in
kilopascal. The result is written to the console.
References
**********
- MPR: path_to_url
Wiring
******
This sample uses an MPRLS0025PA00001A ... | /content/code_sandbox/samples/sensor/mpr/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 287 |
```unknown
/*
*
*/
&twi0 {
mpr@18 {
compatible = "honeywell,mpr";
reg = <0x18>;
};
};
``` | /content/code_sandbox/samples/sensor/mpr/boards/arduino_due.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 36 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ONE(honeywell_mpr);
int rc;
if (!device_is_ready(dev)) {
printf("Device %s is not ready\n", dev->name);
return 0;
}
whil... | /content/code_sandbox/samples/sensor/mpr/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 218 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_I3C=y
CONFIG_SENSOR=y
CONFIG_LSM6DSO_TRIGGER_GLOBAL_THREAD=y
``` | /content/code_sandbox/samples/sensor/lsm6dso_i2c_on_i3c/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```yaml
sample:
name: LSM6DSO accelerometer and gyrometer sensor (I2C on I3C bus)
tests:
sample.sensor.lsm6dso.i2c_on_i3c_bus:
harness: console
tags: sensors
depends_on: i3c
filter: dt_compat_enabled("st,lsm6dso")
timeout: 15
build_only: true
harness_config:
type: multi_line
... | /content/code_sandbox/samples/sensor/lsm6dso_i2c_on_i3c/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 183 |
```restructuredtext
.. _lsm6dso_i2c_on_i3c:
LSM6DSO: IMU Sensor Monitor (I2C on I3C bus)
############################################
Overview
********
This sample sets the date rate of LSM6DSO accelerometer and gyroscope to
12.5Hz and enables a trigger on data ready. It displays on the console
the values for acceler... | /content/code_sandbox/samples/sensor/lsm6dso_i2c_on_i3c/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 612 |
```unknown
&i3c0 {
status = "okay";
/*
* There might be other connected I2C devices
* (for example, if using Arduino shield) which
* cannot tolerate high clock speed. So slow
* down the clock.
*/
i2c-scl-hz = <400000>;
i3c-scl-hz = <400000>;
i3c-od-scl-hz = <400000>;
clk-divider = <12>;
clk-divider-s... | /content/code_sandbox/samples/sensor/lsm6dso_i2c_on_i3c/boards/mimxrt685_evk_mimxrt685s_cm33.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 181 |
```restructuredtext
.. _fuel_gauge-samples:
Fuel Gauge Samples
##################
.. toctree::
:maxdepth: 1
:glob:
**/*
``` | /content/code_sandbox/samples/fuel_gauge/fuel_gauge.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```unknown
# Requires GPIO lines for interrupts,
# so disable trigger mode and use polling mode for now.
CONFIG_LSM6DSO_TRIGGER_GLOBAL_THREAD=n
CONFIG_LSM6DSO_TRIGGER_NONE=y
``` | /content/code_sandbox/samples/sensor/lsm6dso_i2c_on_i3c/boards/mimxrt685_evk_cm33.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 41 |
```unknown
CONFIG_FUEL_GAUGE=y
``` | /content/code_sandbox/samples/fuel_gauge/max17048/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```yaml
sample:
name: MAX17048 Sensor sample
tests:
sample.sensor.max17048:
build_only: true
platform_allow: nrf52dk/nrf52832
integration_platforms:
- nrf52dk/nrf52832
tags: fuel_gauge
``` | /content/code_sandbox/samples/fuel_gauge/max17048/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```restructuredtext
.. _MAX17048_sample:
MAX17048 Li-Ion battery fuel gauge
###################################
Overview
********
This sample shows how to use the Zephyr :ref:`fuel_gauge_api` API driver for the `MAX17048` fuel gauge.
.. _MAX17048: path_to_url
The sample periodically reads battery percentage and po... | /content/code_sandbox/samples/fuel_gauge/max17048/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 339 |
```unknown
/*
*
*/
&i2c0 {
status = "okay";
compatible = "nordic,nrf-twim";
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
max17048:max17048@36 {
compatible = "maxim,max17048";
status = "ok";
reg = <0x36 >;
};
};
``` | /content/code_sandbox/samples/fuel_gauge/max17048/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 104 |
```c
/*
*
*/
#include "zephyr/sys/util.h"
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/fuel_gauge.h>
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ANY(maxim_max17048);
int ret = 0;
if (dev == NULL) {
printk("\nError: no devic... | /content/code_sandbox/samples/fuel_gauge/max17048/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 394 |
```restructuredtext
.. _tfm_integration-samples:
TF-M Integration Samples
########################
.. toctree::
:maxdepth: 1
:glob:
*/*
Overview
********
These TF-M integration examples can be used with a supported Armv8-M board, and
demonstrate how the TF-M APIs can be used with Zephyr.
Trusted Firmware ... | /content/code_sandbox/samples/tfm_integration/tfm_integration.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 412 |
```unknown
#
#
#
CONFIG_BUILD_WITH_TFM=y
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_USE_NS_APP=y
CONFIG_TFM_REGRESSION_S=y
CONFIG_TFM_REGRESSION_NS=y
# Regression tests are included if a related secure partition is enabled.
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CON... | /content/code_sandbox/samples/tfm_integration/tfm_regression_test/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 130 |
```yaml
common:
tags:
- trusted-firmware-m
- mcuboot
modules:
- psa-arch-tests
platform_allow:
- nrf5340dk/nrf5340/cpuapp/ns
- nrf9160dk/nrf9160/ns
- nrf9161dk/nrf9161/ns
- v2m_musca_s1/musca_s1/ns
integration_platforms:
- nrf5340dk/nrf5340/cpuapp/ns
harness: console
harness_... | /content/code_sandbox/samples/tfm_integration/tfm_regression_test/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.