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