diff --git a/boards/avr-rss2/include/board.h b/boards/avr-rss2/include/board.h index b9b50b8cd5..4f625eaeec 100644 --- a/boards/avr-rss2/include/board.h +++ b/boards/avr-rss2/include/board.h @@ -23,9 +23,6 @@ #include "cpu.h" #include "periph/gpio.h" -#include "at24mac.h" -#include "net/eui_provider.h" - #ifdef __cplusplus extern "C" { #endif @@ -38,26 +35,6 @@ extern "C" { #define AT24MAC_PARAM_TYPE AT24MAC6XX /** @} */ -/** - * @brief AT24Mac provides a EUI-64, this is also printed on the board - */ -static inline int _at24mac_get_eui64(const void *arg, eui64_t *addr, uint8_t index) -{ - (void) index; - - return at24mac_get_eui64((uintptr_t)arg, addr); -} - -/** - * @name EUI-64 sources on the board - * AT24Mac is present on the board - * @{ - */ -#define EUI64_PROVIDER_FUNC _at24mac_get_eui64 -#define EUI64_PROVIDER_TYPE NETDEV_AT86RF2XX -#define EUI64_PROVIDER_INDEX 0 -/** @} */ - /** * @name LED pin definitions and handlers * @{ diff --git a/boards/avr-rss2/include/eui_provider_params.h b/boards/avr-rss2/include/eui_provider_params.h new file mode 100644 index 0000000000..b19004faae --- /dev/null +++ b/boards/avr-rss2/include/eui_provider_params.h @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2020 ML!PA Consulting GmbH + * + * 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_avr-rss2 + * @{ + * + * @file + * @brief EUI providers found on the board + * + * @author Benjamin Valentin + */ +#ifndef EUI_PROVIDER_PARAMS_H +#define EUI_PROVIDER_PARAMS_H + +#include "at24mac.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @brief AT24Mac provides a EUI-64, this is also printed on the board + */ +static inline int _at24mac_get_eui64(const void *arg, eui64_t *addr, uint8_t index) +{ + (void) arg; + + return at24mac_get_eui64(index, addr); +} + +/** + * @name EUI-64 sources on the board + * AT24Mac is present on the board + * @{ + */ +#define EUI64_PROVIDER_FUNC _at24mac_get_eui64 +#define EUI64_PROVIDER_TYPE NETDEV_AT86RF2XX +#define EUI64_PROVIDER_INDEX 0 +/** @} */ + + +#ifdef __cplusplus +} +#endif + +#endif /* EUI_PROVIDER_PARAMS_H */ +/** @} */