samples: sensor: Remove hmc5883l magnetometer sample
The magn_polling sample application now supports the hmc5883l driver, so
we can remove this driver-specific sample.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
diff --git a/samples/sensor/hmc5883l/CMakeLists.txt b/samples/sensor/hmc5883l/CMakeLists.txt
deleted file mode 100644
index 147c0a4..0000000
--- a/samples/sensor/hmc5883l/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-
-cmake_minimum_required(VERSION 3.20.0)
-find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
-project(hmc5883l)
-
-FILE(GLOB app_sources src/*.c)
-target_sources(app PRIVATE ${app_sources})
diff --git a/samples/sensor/hmc5883l/README.txt b/samples/sensor/hmc5883l/README.txt
deleted file mode 100644
index 0214bc4..0000000
--- a/samples/sensor/hmc5883l/README.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-Title: hmc5883l
-
-Description:
-
-A simple example using the hmc5883l 3-axis magnetometer sensor.
diff --git a/samples/sensor/hmc5883l/boards/frdm_k64f.overlay b/samples/sensor/hmc5883l/boards/frdm_k64f.overlay
deleted file mode 100644
index 98acb01..0000000
--- a/samples/sensor/hmc5883l/boards/frdm_k64f.overlay
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Copyright (c) 2019, Linaro Ltd.
- *
- * SPDX-License-Identifier: Apache-2.0
- */
-
-&i2c0 {
- hmc5883l@1e {
- compatible = "honeywell,hmc5883l";
- reg = <0x1E>;
- int-gpios = <&gpioc 12 GPIO_ACTIVE_LOW>;
- label = "HMC5883L";
- };
-};
diff --git a/samples/sensor/hmc5883l/prj.conf b/samples/sensor/hmc5883l/prj.conf
deleted file mode 100644
index 60c12da..0000000
--- a/samples/sensor/hmc5883l/prj.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-CONFIG_I2C=y
-CONFIG_GPIO=y
-CONFIG_SENSOR=y
-CONFIG_HMC5883L=y
-CONFIG_HMC5883L_TRIGGER_GLOBAL_THREAD=y
-CONFIG_CBPRINTF_FP_SUPPORT=y
diff --git a/samples/sensor/hmc5883l/sample.yaml b/samples/sensor/hmc5883l/sample.yaml
deleted file mode 100644
index 6a9b72a..0000000
--- a/samples/sensor/hmc5883l/sample.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-sample:
- name: HMC5883L Sensor Sample
-tests:
- sample.sensor.hmc5883l:
- harness: sensor
- tags: sensors
- depends_on: i2c gpio
- filter: dt_compat_enabled("honeywell,hmc5883l")
diff --git a/samples/sensor/hmc5883l/src/main.c b/samples/sensor/hmc5883l/src/main.c
deleted file mode 100644
index 9bcced0..0000000
--- a/samples/sensor/hmc5883l/src/main.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2019, Linaro Ltd.
- *
- * SPDX-License-Identifier: Apache-2.0
- */
-
-#include <zephyr/zephyr.h>
-#include <zephyr/device.h>
-#include <zephyr/drivers/sensor.h>
-#include <stdio.h>
-#include <zephyr/sys/printk.h>
-
-
-static int32_t read_sensor(const struct device *sensor)
-{
- struct sensor_value val[3];
- int32_t ret = 0;
-
- ret = sensor_sample_fetch(sensor);
- if (ret) {
- printk("sensor_sample_fetch failed ret %d\n", ret);
- goto end;
- }
-
- ret = sensor_channel_get(sensor, SENSOR_CHAN_MAGN_XYZ, val);
- if (ret < 0) {
- printf("Cannot read sensor channels\n");
- goto end;
- }
-
- printf("( x y z ) = ( %f %f %f )\n", sensor_value_to_double(&val[0]),
- sensor_value_to_double(&val[1]),
- sensor_value_to_double(&val[2]));
-
-end:
- return ret;
-}
-
-void main(void)
-{
- const struct device *dev = DEVICE_DT_GET_ONE(honeywell_hmc5883l);
-
- if (!device_is_ready(dev)) {
- printk("Device %s is not ready\n", dev->name);
- return;
- }
-
- printk("device is %p, name is %s\n", dev, dev->name);
-
- while (1) {
- read_sensor(dev);
- k_sleep(K_MSEC(1000));
- }
-}