1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/microbit: migrate to ztimer

This commit is contained in:
Alexandre Abadie 2021-11-03 11:56:08 +01:00
parent d71388c58e
commit 2f44452d78
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
ifneq (,$(filter microbit,$(USEMODULE)))
USEMODULE += xtimer
USEMODULE += ztimer
USEMODULE += ztimer_usec
USEMODULE += mineplex
endif

View File

@ -19,7 +19,7 @@
*/
#include <string.h>
#include "xtimer.h"
#include "ztimer.h"
#include "board.h"
#include "microbit.h"
@ -189,7 +189,7 @@ static void shift_next(uint8_t *cur, const uint8_t *next, uint32_t delay)
cur[(r * COLS) + COLS - 1] = next[(r * COLS) + i];
}
microbit_matrix_set_raw((uint8_t *)cur);
xtimer_usleep(delay);
ztimer_sleep(ZTIMER_USEC, delay);
}
}