1# Bosch BMG160 gyroscope configuration options
2
3# Copyright (c) 2016 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig BMG160
7	bool "Bosch BMG160 gyroscope support"
8	default y
9	depends on DT_HAS_BOSCH_BMG160_ENABLED
10	select I2C
11	help
12	  Enable Bosch BMG160 gyroscope support.
13
14if BMG160
15
16choice
17	prompt "BMG160 I2C bus speed"
18	default BMG160_I2C_SPEED_STANDARD
19
20config BMG160_I2C_SPEED_STANDARD
21	bool "Standard"
22	help
23	  Standard bus speed of up to 100kHz.
24
25config BMG160_I2C_SPEED_FAST
26	bool "Fast"
27	help
28	  Fast bus speed of up to 400KHz.
29endchoice
30
31choice
32	prompt "Trigger mode"
33	default BMG160_TRIGGER_GLOBAL_THREAD
34	help
35	  Specify the type of triggering to be used by the driver.
36
37config BMG160_TRIGGER_NONE
38	bool "No trigger"
39
40config BMG160_TRIGGER_GLOBAL_THREAD
41	bool "Use global thread"
42	select BMG160_TRIGGER
43
44config BMG160_TRIGGER_OWN_THREAD
45	bool "Use own thread"
46	select BMG160_TRIGGER
47endchoice
48
49config BMG160_TRIGGER
50	bool
51
52config BMG160_THREAD_PRIORITY
53	int "Own thread priority"
54	depends on BMG160_TRIGGER_OWN_THREAD
55	default 10
56	help
57	  The priority of the thread used for handling interrupts.
58
59config BMG160_THREAD_STACK_SIZE
60	int "Own thread stack size"
61	depends on BMG160_TRIGGER_OWN_THREAD
62	default 1024
63	help
64	  The thread stack size.
65
66choice
67	prompt "Gyroscope range setting."
68	default BMG160_RANGE_RUNTIME
69
70config BMG160_RANGE_RUNTIME
71	bool "Set at runtime."
72
73config BMG160_RANGE_2000DPS
74	bool "2000 DPS"
75
76config BMG160_RANGE_1000DPS
77	bool "1000 DPS"
78
79config BMG160_RANGE_500DPS
80	bool "500 DPS"
81
82config BMG160_RANGE_250DPS
83	bool "250 DPS"
84
85config BMG160_RANGE_125DPS
86	bool "125 DPS"
87endchoice
88
89choice
90	prompt "Gyroscope sampling frequency."
91	default BMG160_ODR_RUNTIME
92
93config BMG160_ODR_RUNTIME
94	bool "Set at runtime."
95
96config BMG160_ODR_100
97	bool "100 Hz"
98
99config BMG160_ODR_200
100	bool "200 Hz"
101
102config BMG160_ODR_400
103	bool "400 Hz"
104
105config BMG160_ODR_1000
106	bool "1000 Hz"
107
108config BMG160_ODR_2000
109	bool "2000 Hz"
110endchoice
111
112endif # BMG160
113