ADXL372: add names for KConfig choices

This patch adds names to the KConfig choices of the ADXL372 driver.

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
This commit is contained in:
Maximilian Deubel 2022-07-14 14:38:02 +02:00 committed by Fabio Baltieri
parent 1cf8de4b40
commit d8e0dd1804

View file

@ -28,7 +28,7 @@ config ADXL372_SPI
endchoice endchoice
choice choice ADXL372_OP_MODE
prompt "Operating mode" prompt "Operating mode"
default ADXL372_PEAK_DETECT_MODE default ADXL372_PEAK_DETECT_MODE
@ -49,7 +49,7 @@ config ADXL372_MEASUREMENT_MODE
endchoice endchoice
choice choice ADXL372_ODR_FREQ
prompt "Accelerometer sampling frequency (ODR)" prompt "Accelerometer sampling frequency (ODR)"
default ADXL372_ODR_6400HZ if ADXL372_PEAK_DETECT_MODE default ADXL372_ODR_6400HZ if ADXL372_PEAK_DETECT_MODE
default ADXL372_ODR_400HZ if ADXL372_MEASUREMENT_MODE default ADXL372_ODR_400HZ if ADXL372_MEASUREMENT_MODE
@ -71,7 +71,7 @@ config ADXL372_ODR_6400HZ
endchoice endchoice
choice choice ADXL372_BW_FREQ
prompt "Low-Pass (Antialiasing) Filter corner frequency" prompt "Low-Pass (Antialiasing) Filter corner frequency"
default ADXL372_BW_200HZ if ADXL372_ODR_400HZ default ADXL372_BW_200HZ if ADXL372_ODR_400HZ
default ADXL372_BW_400HZ if ADXL372_ODR_800HZ default ADXL372_BW_400HZ if ADXL372_ODR_800HZ
@ -106,7 +106,7 @@ config ADXL372_BW_3200HZ
endchoice endchoice
choice choice ADXL372_HPF_CORNER
prompt "High-Pass Filter corner frequency" prompt "High-Pass Filter corner frequency"
default ADXL372_HPF_CORNER0 default ADXL372_HPF_CORNER0
help help
@ -182,7 +182,7 @@ config ADXL372_REFERENCED_ACTIVITY_DETECTION_MODE
activity detection to be based not on an absolute threshold, activity detection to be based not on an absolute threshold,
but on a deviation from a reference point or orientation. but on a deviation from a reference point or orientation.
choice choice ADXL372_TRIGGER_MODE
prompt "Trigger mode" prompt "Trigger mode"
default ADXL372_TRIGGER_NONE default ADXL372_TRIGGER_NONE
help help