diff --git a/boards/arm/stm32/stm32f401rc-rs485/src/stm32_bringup.c b/boards/arm/stm32/stm32f401rc-rs485/src/stm32_bringup.c index 036408d9df..be180a262b 100644 --- a/boards/arm/stm32/stm32f401rc-rs485/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f401rc-rs485/src/stm32_bringup.c @@ -63,7 +63,6 @@ #include "stm32_hcsr04.h" #endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/drivers/sensors/Kconfig b/drivers/sensors/Kconfig index 6b194d616e..195367a084 100644 --- a/drivers/sensors/Kconfig +++ b/drivers/sensors/Kconfig @@ -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 @@ -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