Skip to content

Commit

Permalink
tests: modify driver_at86rf2xx for pure netdev2
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 24, 2016
1 parent cb5819f commit 46724d2
Show file tree
Hide file tree
Showing 6 changed files with 672 additions and 18 deletions.
7 changes: 2 additions & 5 deletions tests/driver_at86rf2xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ include ../Makefile.tests_common

FEATURES_REQUIRED = periph_spi periph_gpio

BOARD_INSUFFICIENT_MEMORY := nucleo-f334 stm32f0discovery weio
DISABLE_MODULES += auto_init

USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_netif
USEMODULE += gnrc_nomac
USEMODULE += gnrc_pktdump
USEMODULE += od
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
Expand Down
31 changes: 31 additions & 0 deletions tests/driver_at86rf2xx/addr.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (C) Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/

/**
* @{
*
* @file
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*/

#include <stdio.h>
#include <stdint.h>

#include "common.h"

void print_addr(uint8_t *addr, size_t addr_len)
{
for (int i = 0; i < addr_len; i++) {
if (i != 0) {
printf(":");
}
printf("%02x", (unsigned)addr[i]);
}
}

/** @} */
Loading

0 comments on commit 46724d2

Please sign in to comment.