We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecefebe commit 59e7a8aCopy full SHA for 59e7a8a
drivers/at25xxx/Makefile.dep
@@ -1,2 +1,2 @@
1
FEATURES_REQUIRED += periph_spi
2
-USEMODULE += xtimer
+USEMODULE += ztimer_usec
drivers/at25xxx/at25xxx.c
@@ -30,7 +30,7 @@
30
#include "bitarithm.h"
31
#include "byteorder.h"
32
33
-#include "xtimer.h"
+#include "ztimer.h"
34
#define POLL_DELAY_US (1000)
35
36
#ifndef min
@@ -76,7 +76,7 @@ static inline int _wait_until_eeprom_ready(const at25xxx_t *dev)
76
uint8_t tries = 10;
77
while (_write_in_progress(dev) && --tries) {
78
spi_release(dev->params.spi);
79
- xtimer_usleep(POLL_DELAY_US);
+ ztimer_sleep(ZTIMER_USEC, POLL_DELAY_US);
80
getbus(dev);
81
}
82
0 commit comments