1# BMC150 magnetometer sensor configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig BMC150_MAGN 7 bool "BMC150_MAGN I2C Magnetometer Chip" 8 default y 9 depends on DT_HAS_BOSCH_BMC150_MAGN_ENABLED 10 select I2C 11 help 12 Enable driver for BMC150 I2C-based magnetometer sensor. 13 14if BMC150_MAGN 15 16menu "Attributes" 17 18choice 19 prompt "Default preset" 20 default BMC150_MAGN_PRESET_REGULAR 21 help 22 Specify the default preset (x/y oversampling, z oversampling, sampling 23 frequency). 24 25config BMC150_MAGN_PRESET_LOW_POWER 26 bool "Low power (3, 3, 10)" 27 28config BMC150_MAGN_PRESET_REGULAR 29 bool "Regular (9, 15, 10)" 30 31config BMC150_MAGN_PRESET_ENHANCED_REGULAR 32 bool "Enhanced regular (15, 27, 10)" 33 34config BMC150_MAGN_PRESET_HIGH_ACCURACY 35 bool "High accuracy (47, 83, 20)" 36 37endchoice 38 39config BMC150_MAGN_SAMPLING_RATE_RUNTIME 40 bool "Dynamic sampling rate" 41 help 42 Enable alteration of sampling rate attribute at runtime. 43 44config BMC150_MAGN_SAMPLING_REP_XY 45 bool "Dynamic XY oversampling" 46 help 47 Enable alteration of XY oversampling at runtime. 48 49config BMC150_MAGN_SAMPLING_REP_Z 50 bool "Dynamic Z oversampling" 51 help 52 Enable alteration of Z oversampling at runtime. 53 54endmenu 55 56config BMC150_MAGN_TRIGGER 57 bool "Triggers" 58 depends on GPIO 59 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMC150_MAGN),drdy-gpios) 60 help 61 Enable triggers for BMC150 magnetometer 62 63config BMC150_MAGN_TRIGGER_THREAD_STACK 64 int "Thread stack size" 65 depends on BMC150_MAGN_TRIGGER 66 default 1024 67 help 68 Specify the internal thread stack size. 69 70config BMC150_MAGN_TRIGGER_DRDY 71 bool "Data ready trigger" 72 depends on BMC150_MAGN_TRIGGER 73 help 74 Enable data ready interrupt for BMC150 magnetometer 75 76endif # BMC150_MAGN 77