diff --git a/drivers/at86rf231/at86rf231.c b/drivers/at86rf231/at86rf231.c index aa2a42f20d..d94eed7e41 100644 --- a/drivers/at86rf231/at86rf231.c +++ b/drivers/at86rf231/at86rf231.c @@ -26,7 +26,7 @@ #include "periph/spi.h" #include "kernel_types.h" #include "transceiver.h" -#include "vtimer.h" +#include "hwtimer.h" #define ENABLE_DEBUG (0) #include "debug.h" @@ -101,7 +101,7 @@ void at86rf231_switch_to_rx(void) do { status = at86rf231_get_status(); - vtimer_usleep(10); + hwtimer_wait(HWTIMER_TICKS(10)); if (!--max_wait) { printf("at86rf231 : ERROR : could not enter RX_ON mode\n"); @@ -258,4 +258,3 @@ void at86rf231_reset(void) } while ((status & AT86RF231_TRX_STATUS_MASK__TRX_STATUS) != AT86RF231_TRX_STATUS__TRX_OFF); } - diff --git a/drivers/at86rf231/at86rf231_tx.c b/drivers/at86rf231/at86rf231_tx.c index 1d1068c1e6..e9666af53f 100644 --- a/drivers/at86rf231/at86rf231_tx.c +++ b/drivers/at86rf231/at86rf231_tx.c @@ -21,7 +21,7 @@ #include "at86rf231.h" #include "at86rf231_spi.h" -#include "vtimer.h" +#include "hwtimer.h" #define ENABLE_DEBUG (0) #include "debug.h" @@ -95,7 +95,7 @@ static void at86rf231_xmit(uint8_t *data, radio_packet_length_t length) do { status = at86rf231_get_status(); - vtimer_usleep(10); + hwtimer_wait(HWTIMER_TICKS(10)); if (!--max_wait) { printf("at86rf231 : ERROR : could not enter PLL_ON mode");