mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/itg320x: convert to xtimer_msleep()
This commit is contained in:
parent
0b960ab2de
commit
30e7b6da74
@ -221,7 +221,7 @@ int itg320x_power_up(itg320x_t *dev)
|
||||
EXEC_RET(_update_reg(dev, ITG320X_REG_PWR_MGM, ITG320X_REG_PWR_MGM_SLEEP, 0));
|
||||
|
||||
/* wait 20 ms after power-up */
|
||||
xtimer_usleep(20 * US_PER_MS);
|
||||
xtimer_msleep(20);
|
||||
|
||||
return ITG320X_OK;
|
||||
}
|
||||
@ -238,7 +238,7 @@ static int _reset(itg320x_t *dev)
|
||||
EXEC_RET(_update_reg(dev, ITG320X_REG_PWR_MGM, ITG320X_REG_PWR_MGM_H_RESET, 1));
|
||||
|
||||
/* wait 20 ms after reset */
|
||||
xtimer_usleep(20 * US_PER_MS);
|
||||
xtimer_msleep(20);
|
||||
|
||||
return ITG320X_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user