Skip to content

Commit

Permalink
sensor: Introduce Phosense XBR818 Driver
Browse files Browse the repository at this point in the history
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 <mail@massdriver.space>
  • Loading branch information
VynDragon committed Nov 15, 2024
1 parent d4b7bf9 commit dca5ff1
Show file tree
Hide file tree
Showing 9 changed files with 620 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ add_subdirectory_ifdef(CONFIG_TH02 th02)
add_subdirectory_ifdef(CONFIG_TSIC_XX6 tsic_xx6)
add_subdirectory_ifdef(CONFIG_VEAA_X_3 veaa_x_3)
add_subdirectory_ifdef(CONFIG_VOLTAGE_DIVIDER voltage_divider)
add_subdirectory_ifdef(CONFIG_XBR818 xbr818)
add_subdirectory_ifdef(CONFIG_TACH_ENE_KB1200 ene_tach_kb1200)

zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/sensor.h)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ source "drivers/sensor/th02/Kconfig"
source "drivers/sensor/tsic_xx6/Kconfig"
source "drivers/sensor/veaa_x_3/Kconfig"
source "drivers/sensor/voltage_divider/Kconfig"
source "drivers/sensor/xbr818/Kconfig"
source "drivers/sensor/ene_tach_kb1200/Kconfig"

endif # SENSOR
5 changes: 5 additions & 0 deletions drivers/sensor/xbr818/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_XBR818 xbr818.c)
10 changes: 10 additions & 0 deletions drivers/sensor/xbr818/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

config XBR818
bool "XBR818 Radar"
default y
depends on DT_HAS_PHOSENSE_XBR818_ENABLED
select I2C
help
Enable driver for the Phosense XBR818 Radar Sensor
Loading

0 comments on commit dca5ff1

Please sign in to comment.