drivers/sensors/ms56xx: Use nxsig_usleep for long delays.

Change use of `up_udelay()` to `nxsig_usleep()` on the 10ms delays for
better performance.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
Matteo Golin
2025-02-19 17:28:49 -05:00
committed by Alan C. Assis
parent ff1dc9583f
commit a76d63646f
+3 -3
View File
@@ -286,7 +286,7 @@ static inline void baro_measure_read(FAR struct ms56xx_dev_s *priv,
/* Wait data acquisition */
up_udelay(10000);
nxsig_usleep(10000);
/* Send command to start a read sequence */
@@ -323,7 +323,7 @@ static inline void baro_measure_read(FAR struct ms56xx_dev_s *priv,
/* Wait data acquisition */
up_udelay(10000);
nxsig_usleep(10000);
/* Send command to start a read sequence */
@@ -437,7 +437,7 @@ static int ms56xx_initialize(FAR struct ms56xx_dev_s *priv)
/* We have to wait before the prom is ready is be read */
up_udelay(10000);
nxsig_usleep(10000);
for (i = 0; i < 8; i++)
{