Skip to content
Snippets Groups Projects
Commit 1fe20592 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: driver_nrf24l01p_lowlevel: use xtimer_usleep

parent 6f21fd80
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include "nrf24l01p_settings.h" #include "nrf24l01p_settings.h"
#include "periph/spi.h" #include "periph/spi.h"
#include "periph/gpio.h" #include "periph/gpio.h"
#include "vtimer.h"
#include "xtimer.h" #include "xtimer.h"
#include "shell.h" #include "shell.h"
#include "shell_commands.h" #include "shell_commands.h"
...@@ -85,14 +84,12 @@ void prtbin(unsigned byte) ...@@ -85,14 +84,12 @@ void prtbin(unsigned byte)
void print_register(char reg, int num_bytes) void print_register(char reg, int num_bytes)
{ {
vtimer_init();
char buf_return[num_bytes]; char buf_return[num_bytes];
int ret; int ret;
gpio_clear(CS_PIN); gpio_clear(CS_PIN);
vtimer_usleep(1); xtimer_usleep(1);
ret = spi_transfer_regs(SPI_PORT, (CMD_R_REGISTER | (REGISTER_MASK & reg)), 0, buf_return, num_bytes); ret = spi_transfer_regs(SPI_PORT, (CMD_R_REGISTER | (REGISTER_MASK & reg)), 0, buf_return, num_bytes);
gpio_set(CS_PIN); gpio_set(CS_PIN);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment