zephyr/drivers/sensor/bmm150/Kconfig
Ulf Magnusson 19d7803546 drivers: sensor: Kconfig: Remove redundant 'default n' properties
Bool symbols implicitly default to 'n'.

A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you
want to override a 'default y' on the base definition of the symbol. It
isn't used like that on any of these symbols though.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-06-27 17:20:10 -05:00

71 lines
1.5 KiB
Plaintext

# Kconfig - BMM150 Geomagnetic sensor configuration options
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig BMM150
bool "BMM150 I2C Geomagnetic Chip"
depends on I2C
help
Enable driver for BMM150 I2C-based Geomagnetic sensor.
if BMM150
config BMM150_DEV_NAME
string "BMM150 device name"
default "bmm150"
config BMM150_I2C_ADDR
hex "BMM150 I2C slave address"
default 0x10
help
Specify the I2C slave address for the BMM150.
Possible addresses are 0x10,0x11,0x12,0x13.
config BMM150_I2C_MASTER_DEV_NAME
string "I2C master where BMM150 is connected"
default "I2C_0"
help
Specify the device name of the I2C master device to which BMM150
is connected.
choice
prompt "Default preset"
default BMM150_PRESET_REGULAR
help
Specify the default preset (x/y oversampling, z oversampling, sampling
frequency).
config BMM150_PRESET_LOW_POWER
bool "Low power (3, 3, 10)"
config BMM150_PRESET_REGULAR
bool "Regular (9, 15, 10)"
config BMM150_PRESET_ENHANCED_REGULAR
bool "Enhanced regular (15, 27, 10)"
config BMM150_PRESET_HIGH_ACCURACY
bool "High accuracy (47, 83, 20)"
endchoice
config BMM150_SAMPLING_RATE_RUNTIME
bool "Enable dynamic sampling rate"
help
Enable alteration of sampling rate attribute at runtime.
config BMM150_SAMPLING_REP_XY
bool "Enable dynamic XY oversampling"
help
Enable alteration of XY oversampling at runtime.
config BMM150_SAMPLING_REP_Z
bool "Enable dynamic Z oversampling"
help
Enable alteration of Z oversampling at runtime.
endif # BMM150