Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/sensor/adi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ add_subdirectory_ifdef(CONFIG_ADXL345 adxl345)
add_subdirectory_ifdef(CONFIG_ADXL362 adxl362)
add_subdirectory_ifdef(CONFIG_ADXL367 adxl367)
add_subdirectory_ifdef(CONFIG_ADXL372 adxl372)
add_subdirectory_ifdef(CONFIG_SENSOR_MAX32664C max32664c)
# zephyr-keep-sorted-stop
1 change: 1 addition & 0 deletions drivers/sensor/adi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ source "drivers/sensor/adi/adxl345/Kconfig"
source "drivers/sensor/adi/adxl362/Kconfig"
source "drivers/sensor/adi/adxl367/Kconfig"
source "drivers/sensor/adi/adxl372/Kconfig"
source "drivers/sensor/adi/max32664c/Kconfig"
# zephyr-keep-sorted-stop
13 changes: 13 additions & 0 deletions drivers/sensor/adi/max32664c/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_sources_ifdef(CONFIG_MAX32664C_USE_FIRMWARE_LOADER max32664c_bl.c)

zephyr_sources_ifdef(CONFIG_MAX32664C_USE_INTERRUPT max32664c_interrupt.c)

zephyr_sources_ifdef(CONFIG_SENSOR_MAX32664C max32664c.c
max32664c_worker.c
max32664c_init.c
max32664c_acc.c
)
45 changes: 45 additions & 0 deletions drivers/sensor/adi/max32664c/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright(c) 2025, Daniel Kampert
# SPDX-License-Identifier: Apache-2.0

config SENSOR_MAX32664C
bool "MAX32664C Driver"
default y
depends on DT_HAS_MAXIM_MAX32664C_ENABLED
select I2C
help
Enable the driver for the MAX32664C biometric sensor hub.

if SENSOR_MAX32664C
config MAX32664C_USE_FIRMWARE_LOADER
bool "Use this option if you want to flash the sensor hub over the I2C firmware loader"

config MAX32664C_USE_EXTERNAL_ACC
bool "Use this option if you want to use an external accelerometer"

config MAX32664C_USE_EXTENDED_REPORTS
bool "Use this option if you want to use extended reports instead of the default reports"

config MAX32664C_USE_STATIC_MEMORY
bool "Disable this option if the driver should use dynamic memory"
default y

config MAX32664C_QUEUE_SIZE
int "Length of the message queue"
default 32

config MAX32664C_SAMPLE_BUFFER_SIZE
depends on MAX32664C_USE_STATIC_MEMORY
int "Length of the sample buffer for the I2C reading thread"
default 64
help
This is the number of samples that will be read from the sensor hub in one go.
The maximum value is 64, but you can set it lower if you want to reduce memory usage.

config MAX32664C_THREAD_STACK_SIZE
int "MAX32664C sample thread stack size"
default 4096

config MAX32664C_USE_INTERRUPT
bool "Use this option if you want to use the MFIO interrupt support"
depends on GPIO
endif
Loading
Loading