Skip to content

Commit

Permalink
drivers/sensors/Kconfig: Fix HC-SR04 configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Sim [email protected]
  • Loading branch information
rcsim authored and acassis committed May 19, 2024
1 parent 8fb458b commit 29775f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion boards/arm/stm32/stm32f401rc-rs485/src/stm32_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
#include "stm32_hcsr04.h"
#endif


/****************************************************************************
* Public Functions
****************************************************************************/
Expand Down
32 changes: 16 additions & 16 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,22 @@ config SENSORS_HCSR04
---help---
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
bool "IST HYT271 Humidity and Temperature Sensor support"
default n
Expand Down Expand Up @@ -506,22 +522,6 @@ config SENSORS_HYT271_THREAD_STACKSIZE
---help---
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
bool "Renesas ISL29023 ALS sensor"
default n
Expand Down

0 comments on commit 29775f8

Please sign in to comment.