-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13966 from akshaim/Kconfig_sps30
drivers/sps30 : Expose Configurations to Kconfig
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 number of 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters