-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release-ready BMM350. This driver will be added to Zephyr soon, but with this, customers can already try it out on their Thingy:91 X devices. Signed-off-by: Maximilian Deubel <[email protected]>
- Loading branch information
1 parent
2e8ae9b
commit 5d9adcd
Showing
17 changed files
with
2,018 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2024 Bosch Sensortec GmbH | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
zephyr_library() | ||
zephyr_library_sources(bmm350.c bmm350_i2c.c) | ||
zephyr_library_sources_ifdef(CONFIG_BMM350_TRIGGER bmm350_trigger.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# BMM350 Geomagnetic sensor configuration options | ||
|
||
# Copyright (c) 2024 Bosch Sensortec GmbH | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
menuconfig BMM350 | ||
bool "BMM350 I2C Geomagnetic Chip" | ||
default y | ||
depends on DT_HAS_BOSCH_BMM350_ENABLED | ||
select I2C | ||
help | ||
Enable driver for BMM350 I2C-based Geomagnetic sensor. | ||
if BMM350 | ||
|
||
choice BMM350_TRIGGER_MODE | ||
prompt "Trigger mode" | ||
default BMM350_TRIGGER_NONE | ||
help | ||
Specify the type of triggering to be used by the driver. | ||
|
||
config BMM350_TRIGGER_NONE | ||
bool "No trigger" | ||
|
||
config BMM350_TRIGGER_GLOBAL_THREAD | ||
bool "Use global thread" | ||
select BMM350_TRIGGER | ||
|
||
config BMM350_TRIGGER_OWN_THREAD | ||
bool "Use own thread" | ||
select BMM350_TRIGGER | ||
|
||
config BMM350_TRIGGER_DIRECT | ||
bool "Use IRQ handler" | ||
select BMM350_TRIGGER | ||
endchoice | ||
|
||
config BMM350_TRIGGER | ||
bool | ||
|
||
config BMM350_SAMPLING_RATE_RUNTIME | ||
bool "Dynamic sampling rate" | ||
help | ||
Enable alteration of sampling rate attribute at runtime. | ||
config BMM350_THREAD_PRIORITY | ||
int "Own thread priority" | ||
depends on BMM350_TRIGGER_OWN_THREAD | ||
default 10 | ||
help | ||
Priority of the thread used by the driver to handle interrupts. | ||
|
||
config BMM350_THREAD_STACK_SIZE | ||
int "Own thread stack size" | ||
depends on BMM350_TRIGGER_OWN_THREAD | ||
default 1024 | ||
help | ||
Stack size of thread used by the driver to handle interrupts. | ||
|
||
endif # BMM350 |
Oops, something went wrong.