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 default y 10 depends on DT_HAS_HOPERF_HP206C_ENABLED 11 select I2C 12 help 13 Enable HopeRF HP206C barometer and altimeter support. 14 15if HP206C 16 17config HP206C_OSR_RUNTIME 18 bool "Oversampling rate set at runtime" 19 default y 20 21config HP206C_OSR 22 int "Oversampling rate" 23 depends on !HP206C_OSR_RUNTIME 24 default 4096 25 help 26 Allowed values: 4096, 2048, 1024, 512, 256, 128 27 28config HP206C_ALT_OFFSET_RUNTIME 29 bool "Altitude offset set at runtime" 30 default y 31 32config HP206C_ALT_OFFSET 33 int "Altitude offset (in cm)" 34 depends on !HP206C_ALT_OFFSET_RUNTIME 35 default 0 36 help 37 Value, in cm, that will be used to compensate altitude calculation. 38 For more info on how to choose this value, consult section 6.1.1 in 39 the datasheet. 40 41endif # HP206C 42