Skip to content

Commit

Permalink
drivers: ng_at86rf2xx: use xtimer instead of hwtimer
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Sep 16, 2015
1 parent fb773bf commit 940db9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.dep
Expand Up @@ -13,6 +13,7 @@ endif
ifneq (,$(filter at86rf2%,$(USEMODULE)))
USEMODULE += at86rf2xx
USEMODULE += ieee802154
USEMODULE += xtimer
endif

ifneq (,$(filter kw2xrf,$(USEMODULE)))
Expand Down
4 changes: 2 additions & 2 deletions drivers/at86rf2xx/at86rf2xx.c
Expand Up @@ -23,7 +23,7 @@
* @}
*/

#include "hwtimer.h"
#include "xtimer.h"
#include "periph/cpuid.h"
#include "byteorder.h"
#include "net/ieee802154.h"
Expand Down Expand Up @@ -97,7 +97,7 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
gpio_clear(dev->sleep_pin);
/* trigger hardware reset */
gpio_clear(dev->reset_pin);
hwtimer_wait(HWTIMER_TICKS(RESET_DELAY));
xtimer_usleep(RESET_DELAY);
gpio_set(dev->reset_pin);

/* Reset state machine to ensure a known state */
Expand Down

0 comments on commit 940db9d

Please sign in to comment.