mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 06:41:56 +00:00
This commit converts the existing hcm5883l 3-axis magnetometer driver to use device tree for the I2C and GPIO selection. It also adds a basic sample application for this sensor, using the frdm-k64f development board to demonstrate how the interrupt GPIO pin and I2C bus can be selected. Signed-off-by: Kevin Townsend <kevin@ktownsend.com>
9 lines
187 B
YAML
9 lines
187 B
YAML
sample:
|
|
name: HMC5883L Sensor Sample
|
|
tests:
|
|
sample.sensor.hmc5883l:
|
|
harness: sensor
|
|
tags: sensors
|
|
depends_on: i2c gpio
|
|
filter: dt_compat_enabled("honeywell,hmc5883l")
|