Skip to content

Commit 59e7a8a

Browse files
committed
drivers/at25xxx: move to ztimer
1 parent ecefebe commit 59e7a8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/at25xxx/Makefile.dep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
FEATURES_REQUIRED += periph_spi
2-
USEMODULE += xtimer
2+
USEMODULE += ztimer_usec

drivers/at25xxx/at25xxx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "bitarithm.h"
3131
#include "byteorder.h"
3232

33-
#include "xtimer.h"
33+
#include "ztimer.h"
3434
#define POLL_DELAY_US (1000)
3535

3636
#ifndef min
@@ -76,7 +76,7 @@ static inline int _wait_until_eeprom_ready(const at25xxx_t *dev)
7676
uint8_t tries = 10;
7777
while (_write_in_progress(dev) && --tries) {
7878
spi_release(dev->params.spi);
79-
xtimer_usleep(POLL_DELAY_US);
79+
ztimer_sleep(ZTIMER_USEC, POLL_DELAY_US);
8080
getbus(dev);
8181
}
8282

0 commit comments

Comments
 (0)