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

Merge pull request https://github.com/RIOT-OS/applications/pull/16 from OlegHahm/switch_to_xtimer

sniffer: switch to xtimer
This commit is contained in:
Joakim Nohlgård 2015-09-16 17:50:31 +02:00
commit cec9a54332
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ USEMODULE += auto_init_gnrc_netif
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
USEMODULE += xtimer
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1

View File

@ -22,7 +22,7 @@
#include <stdio.h>
#include "thread.h"
#include "hwtimer.h"
#include "xtimer.h"
#include "shell.h"
#include "shell_commands.h"
#include "net/gnrc.h"
@ -49,8 +49,8 @@ void dump_pkt(gnrc_pktsnip_t *pkt)
{
gnrc_pktsnip_t *snip = pkt;
printf("rftest-rx --- len 0x%02x lqi 0x%02x rx_time 0x%08lx\n\n",
gnrc_pkt_len(pkt), 0, hwtimer_now());
printf("rftest-rx --- len 0x%02x lqi 0x%02x rx_time 0x%08" PRIx64 "\n\n",
gnrc_pkt_len(pkt), 0, xtimer_now64());
while (snip) {
for (size_t i = 0; i < snip->size; i++) {