1# HopeRF Electronic HP206C precision barometer and altimeter configuration
2# options
3
4# Copyright (c) 2016 Intel Corporation
5# SPDX-License-Identifier: Apache-2.0
6
7menuconfig HP206C
8	bool "HopeRF HP206C precision barometer and altimeter sensor"
9	depends on I2C
10	help
11	  Enable HopeRF HP206C barometer and altimeter support.
12
13if HP206C
14
15config HP206C_OSR_RUNTIME
16	bool "Oversampling rate set at runtime"
17	default y
18
19config HP206C_OSR
20	int "Oversampling rate"
21	depends on !HP206C_OSR_RUNTIME
22	default 4096
23	help
24	  Allowed values: 4096, 2048, 1024, 512, 256, 128
25
26config HP206C_ALT_OFFSET_RUNTIME
27	bool "Altitude offset set at runtime"
28	default y
29
30config HP206C_ALT_OFFSET
31	int "Altitude offset (in cm)"
32	depends on !HP206C_ALT_OFFSET_RUNTIME
33	default 0
34	help
35	  Value, in cm, that will be used to compensate altitude calculation.
36	  For more info on how to choose this value, consult section 6.1.1 in
37	  the datasheet.
38
39endif # HP206C
40