drivers/sensors/Kconfig: Fix HC-SR04 configuration

Signed-off-by: Rodrigo Sim rcsim10@gmail.com
This commit is contained in:
Rodrigo Sim 2024-05-18 12:28:05 -03:00 committed by Alan Carvalho de Assis
parent 8fb458b7fe
commit 29775f824b
2 changed files with 16 additions and 17 deletions

View File

@ -63,7 +63,6 @@
#include "stm32_hcsr04.h" #include "stm32_hcsr04.h"
#endif #endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/

View File

@ -478,6 +478,22 @@ config SENSORS_HCSR04
---help--- ---help---
Enable driver support for the HC-SR04 Distance Sensor. Enable driver support for the HC-SR04 Distance Sensor.
if SENSORS_HCSR04
config HCSR04_DEBUG
bool "Debug support for the HC-SR04"
default n
---help---
Enables debug features for the HC-SR04
config HCSR04_NPOLLWAITERS
int "Number of waiters to poll"
default 1
---help---
Number of waiters to poll
endif # SENSORS_HCSR04
config SENSORS_HYT271 config SENSORS_HYT271
bool "IST HYT271 Humidity and Temperature Sensor support" bool "IST HYT271 Humidity and Temperature Sensor support"
default n default n
@ -506,22 +522,6 @@ config SENSORS_HYT271_THREAD_STACKSIZE
---help--- ---help---
The stack size for the worker thread. The stack size for the worker thread.
if SENSORS_HCSR04
config HCSR04_DEBUG
bool "Debug support for the HC-SR04"
default n
---help---
Enables debug features for the HC-SR04
config HCSR04_NPOLLWAITERS
int "Number of waiters to poll"
default 1
---help---
Number of waiters to poll
endif # SENSORS_HCSR04
config SENSORS_ISL29023 config SENSORS_ISL29023
bool "Renesas ISL29023 ALS sensor" bool "Renesas ISL29023 ALS sensor"
default n default n