diff --git a/boards/iot-lab_M3/auto_init_ng_netif/netif_board.c b/boards/iot-lab_M3/auto_init_ng_netif/netif_board.c deleted file mode 100644 index 79bdb3a5dd18a6e61ed46201c8021550457ca00f..0000000000000000000000000000000000000000 --- a/boards/iot-lab_M3/auto_init_ng_netif/netif_board.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_iot-lab_M3 - * @{ - * - * @file - * @brief Network device initialization code - * - * @author Hauke Petersen <hauke.petersen@fu-berlin.de> - * - * @} - */ - -#include <stdio.h> - -#include "board.h" -#include "auto_init.h" -#include "ng_at86rf2xx.h" -#include "net/ng_nomac.h" -#include "net/ng_netbase.h" - -#define ENABLE_DEBUG (0) -#include "debug.h" - -/** - * @brief Define stack parameters for the MAC layer thread - * @{ - */ -#define MAC_STACKSIZE (THREAD_STACKSIZE_DEFAULT) -#define MAC_PRIO (THREAD_PRIORITY_MAIN - 3) -/** @} */ - -/** - * @brief Device descriptor for the Atmel radio - */ -static ng_at86rf2xx_t radio; - -/** - * @brief Stack for the MAC layer thread - */ -static char nomac_stack[MAC_STACKSIZE]; - - -void auto_init_ng_netif(void) -{ - /* initialize the radio */ - DEBUG("Initializing AT86RF231 radio\n"); - ng_at86rf2xx_init(&radio, AT86RF231_SPI, AT86RF231_SPI_CLK, - AT86RF231_CS, AT86RF231_INT, - AT86RF231_SLEEP, AT86RF231_RESET); - /* starting NOMAC */ - DEBUG("Starting the MAC layer\n"); - ng_nomac_init(nomac_stack, sizeof(nomac_stack), MAC_PRIO, "at86rf233", - (ng_netdev_t *)(&radio)); - DEBUG("Auto init of on-board radio complete\n"); -} diff --git a/boards/samr21-xpro/auto_init_ng_netif/netif_board.c b/boards/samr21-xpro/auto_init_ng_netif/netif_board.c deleted file mode 100644 index 01555cb5173c4bc9512d85d0fa5dbaf443c0bff5..0000000000000000000000000000000000000000 --- a/boards/samr21-xpro/auto_init_ng_netif/netif_board.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2015 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. - */ - -/** - * @ingroup boards_samr21-xpro - * @{ - * - * @file - * @brief Network device initialization code - * - * @author Hauke Petersen <hauke.petersen@fu-berlin.de> - * - * @} - */ - -#include <stdio.h> - -#include "board.h" -#include "auto_init.h" -#include "ng_at86rf2xx.h" -#include "net/ng_nomac.h" -#include "net/ng_netbase.h" - -#define ENABLE_DEBUG (0) -#include "debug.h" - -/** - * @brief Define stack parameters for the MAC layer thread - * @{ - */ -#define MAC_STACKSIZE (THREAD_STACKSIZE_DEFAULT) -#define MAC_PRIO (THREAD_PRIORITY_MAIN - 3) -/** @} */ - -/** - * @brief Device descriptor for the Atmel radio - */ -static ng_at86rf2xx_t radio; - -/** - * @brief Stack for the MAC layer thread - */ -static char nomac_stack[MAC_STACKSIZE]; - -void auto_init_ng_netif(void) -{ - /* initialize the radio */ - DEBUG("Initializing AT86RF233 radio\n"); - ng_at86rf2xx_init(&radio, NG_AT86RF233_SPI, NG_AT86RF233_SPI_CLK, - NG_AT86RF233_CS, NG_AT86RF233_INT, - NG_AT86RF233_SLEEP, NG_AT86RF233_RESET); - /* starting NOMAC */ - DEBUG("Starting the MAC layer\n"); - ng_nomac_init(nomac_stack, sizeof(nomac_stack), MAC_PRIO, "at86rf233", - (ng_netdev_t *)(&radio)); - DEBUG("Auto init of on-board radio complete\n"); -}