1# BMA280 Three Axis Accelerometer configuration options
2
3# Copyright (c) 2016 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig BMA280
7	bool "BMA280 Three Axis Accelerometer Family"
8	default y
9	depends on DT_HAS_BOSCH_BMA280_ENABLED
10	select I2C
11	help
12	  Enable driver for BMA280 I2C-based triaxial accelerometer sensor
13	  family.
14
15if BMA280
16
17choice
18	prompt "Trigger mode"
19	default BMA280_TRIGGER_GLOBAL_THREAD
20	help
21	  Specify the type of triggering to be used by the driver.
22
23config BMA280_TRIGGER_NONE
24	bool "No trigger"
25
26config BMA280_TRIGGER_GLOBAL_THREAD
27	bool "Use global thread"
28	depends on GPIO
29	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMA280),int1-gpios)
30	select BMA280_TRIGGER
31
32config BMA280_TRIGGER_OWN_THREAD
33	bool "Use own thread"
34	depends on GPIO
35	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMA280),int1-gpios)
36	select BMA280_TRIGGER
37
38endchoice
39
40config BMA280_TRIGGER
41	bool
42
43config BMA280_THREAD_PRIORITY
44	int "Thread priority"
45	depends on BMA280_TRIGGER_OWN_THREAD
46	default 10
47	help
48	  Priority of thread used by the driver to handle interrupts.
49
50config BMA280_THREAD_STACK_SIZE
51	int "Thread stack size"
52	depends on BMA280_TRIGGER_OWN_THREAD
53	default 1024
54	help
55	  Stack size of thread used by the driver to handle interrupts.
56
57choice
58	prompt "Acceleration measurement range"
59	default BMA280_PMU_RANGE_2G
60	help
61	  Measurement range for acceleration values.
62
63config BMA280_PMU_RANGE_2G
64	bool "+/-2g"
65
66config BMA280_PMU_RANGE_4G
67	bool "+/-4g"
68
69config BMA280_PMU_RANGE_8G
70	bool "+/-8g"
71
72config BMA280_PMU_RANGE_16G
73	bool "+/-16g"
74
75endchoice
76
77choice
78	prompt "Acceleration data filter bandwidth"
79	default BMA280_PMU_BW_7
80	help
81	  Bandwidth of filtered acceleration data.
82
83config BMA280_PMU_BW_1
84	bool "7.81Hz"
85
86config BMA280_PMU_BW_2
87	bool "15.63HZ"
88
89config BMA280_PMU_BW_3
90	bool "31.25Hz"
91
92config BMA280_PMU_BW_4
93	bool "62.5Hz"
94
95config BMA280_PMU_BW_5
96	bool "125Hz"
97
98config BMA280_PMU_BW_6
99	bool "250HZ"
100
101config BMA280_PMU_BW_7
102	bool "500Hz"
103
104config BMA280_PMU_BW_8
105	bool "unfiltered"
106
107endchoice
108
109endif # BMA280
110