From 5fb28d3c1443fc7e4861cb4a45d34dab1d9056f9 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Tue, 28 Apr 2020 11:35:12 +0530 Subject: [PATCH] drivers/sps30 : Expose to Kconfig Expose configurations to Kconfig --- drivers/Kconfig.net | 1 + drivers/sps30/Kconfig | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 drivers/sps30/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index f7fba01ebc59b..8633f4522a3ed 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -21,4 +21,5 @@ rsource "ads101x/Kconfig" rsource "hdc1000/Kconfig" rsource "mag3110/Kconfig" rsource "mma8x5x/Kconfig" +rsource "sps30/Kconfig" endmenu # Sensor Device Drivers diff --git a/drivers/sps30/Kconfig b/drivers/sps30/Kconfig new file mode 100644 index 0000000000000..a9627f1056f8e --- /dev/null +++ b/drivers/sps30/Kconfig @@ -0,0 +1,24 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# +menuconfig KCONFIG_MODULE_SPS30 + bool "Configure SPS30 driver" + depends on MODULE_SPS30 + help + Configure the SPS30 driver using Kconfig. + +if KCONFIG_MODULE_SPS30 + +config SPS30_ERROR_RETRY + int "Maximum error retries" + default 500 + help + Maximum number of automatic retries on communication errors. + Change this to 0 if more fine-grained feedback is required. + The value may be increased if the device is connected over + suboptimal wiring. + +endif # KCONFIG_MODULE_SPS30