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

drivers: ng_at86rf2xx: use xtimer instead of hwtimer

parent fb773bf9
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ endif ...@@ -13,6 +13,7 @@ endif
ifneq (,$(filter at86rf2%,$(USEMODULE))) ifneq (,$(filter at86rf2%,$(USEMODULE)))
USEMODULE += at86rf2xx USEMODULE += at86rf2xx
USEMODULE += ieee802154 USEMODULE += ieee802154
USEMODULE += xtimer
endif endif
ifneq (,$(filter kw2xrf,$(USEMODULE))) ifneq (,$(filter kw2xrf,$(USEMODULE)))
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* @} * @}
*/ */
#include "hwtimer.h" #include "xtimer.h"
#include "periph/cpuid.h" #include "periph/cpuid.h"
#include "byteorder.h" #include "byteorder.h"
#include "net/ieee802154.h" #include "net/ieee802154.h"
...@@ -97,7 +97,7 @@ void at86rf2xx_reset(at86rf2xx_t *dev) ...@@ -97,7 +97,7 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
gpio_clear(dev->sleep_pin); gpio_clear(dev->sleep_pin);
/* trigger hardware reset */ /* trigger hardware reset */
gpio_clear(dev->reset_pin); gpio_clear(dev->reset_pin);
hwtimer_wait(HWTIMER_TICKS(RESET_DELAY)); xtimer_usleep(RESET_DELAY);
gpio_set(dev->reset_pin); gpio_set(dev->reset_pin);
/* Reset state machine to ensure a known state */ /* Reset state machine to ensure a known state */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment