mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
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:
committed by
Alan C. Assis
parent
ff1dc9583f
commit
a76d63646f
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user