Skip to content

Commit 0cbbc0e

Browse files
committed
sensor: Introduce Phosense XBR818 Driver
This Introduces a driver for the i2c interface of Phosense XBR818. XBR818 is a 10.525Ghz Radar chip with builtin detection algorithm. Signed-off-by: Camille BAUD <[email protected]>
1 parent a9f23cc commit 0cbbc0e

File tree

10 files changed

+619
-0
lines changed

10 files changed

+619
-0
lines changed

drivers/sensor/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ add_subdirectory_ifdef(CONFIG_TH02 th02)
6363
add_subdirectory_ifdef(CONFIG_TSIC_XX6 tsic_xx6)
6464
add_subdirectory_ifdef(CONFIG_VEAA_X_3 veaa_x_3)
6565
add_subdirectory_ifdef(CONFIG_VOLTAGE_DIVIDER voltage_divider)
66+
add_subdirectory_ifdef(CONFIG_XBR818 xbr818)
6667
add_subdirectory_ifdef(CONFIG_TACH_ENE_KB1200 ene_tach_kb1200)
6768

6869
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/sensor.h)

drivers/sensor/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ source "drivers/sensor/th02/Kconfig"
149149
source "drivers/sensor/tsic_xx6/Kconfig"
150150
source "drivers/sensor/veaa_x_3/Kconfig"
151151
source "drivers/sensor/voltage_divider/Kconfig"
152+
source "drivers/sensor/xbr818/Kconfig"
152153
source "drivers/sensor/ene_tach_kb1200/Kconfig"
153154

154155
endif # SENSOR
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()
4+
5+
zephyr_library_sources_ifdef(CONFIG_XBR818 xbr818.c)

drivers/sensor/xbr818/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config XBR818
5+
bool "XBR818 Radar"
6+
default y
7+
depends on DT_HAS_PHOSENSE_XBR818_ENABLED
8+
select I2C
9+
help
10+
Enable driver for the Phosense XBR818 Radar Sensor

0 commit comments

Comments
 (0)