1# MS5607 pressure sensor configuration options
2
3# Copyright (c) 2019 Thomas Schmid <tom@lfence.de>
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig MS5607
7	bool "MS5607 pressure and temperature sensor"
8	default y
9	depends on DT_HAS_MEAS_MS5607_ENABLED
10	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_MEAS_MS5607),i2c)
11	select SPI if $(dt_compat_on_bus,$(DT_COMPAT_MEAS_MS5607),spi)
12	help
13	  Enable driver for MS5607 pressure and temperature sensor.
14
15if MS5607
16
17choice
18	prompt "Pressure oversampling."
19	default MS5607_PRES_OVER_2048X
20
21config MS5607_PRES_OVER_256X
22	bool "x256"
23
24config MS5607_PRES_OVER_512X
25	bool "x512"
26
27config MS5607_PRES_OVER_1024X
28	bool "x1024"
29
30config MS5607_PRES_OVER_2048X
31	bool "x2048"
32
33config MS5607_PRES_OVER_4096X
34	bool "x4096"
35
36endchoice
37
38
39choice
40	prompt "Temperature oversampling."
41	default MS5607_TEMP_OVER_2048X
42
43config MS5607_TEMP_OVER_256X
44	bool "x256"
45
46config MS5607_TEMP_OVER_512X
47	bool "x512"
48
49config MS5607_TEMP_OVER_1024X
50	bool "x1024"
51
52config MS5607_TEMP_OVER_2048X
53	bool "x2048"
54
55config MS5607_TEMP_OVER_4096X
56	bool "x4096"
57
58endchoice
59
60endif # MS5607
61