diff --git a/boards/same54-xpro/Makefile.dep b/boards/same54-xpro/Makefile.dep index 5472bf8b8d..c6c3769fc3 100644 --- a/boards/same54-xpro/Makefile.dep +++ b/boards/same54-xpro/Makefile.dep @@ -1,3 +1,7 @@ ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += saul_gpio endif + +ifneq (,$(filter eui_provider,$(USEMODULE))) + USEMODULE += at24mac +endif diff --git a/boards/same54-xpro/include/board.h b/boards/same54-xpro/include/board.h index 8311cdb7d3..f484210448 100644 --- a/boards/same54-xpro/include/board.h +++ b/boards/same54-xpro/include/board.h @@ -21,6 +21,7 @@ #define BOARD_H #include "cpu.h" +#include "at24mac.h" #ifdef __cplusplus extern "C" { @@ -43,6 +44,22 @@ extern "C" { #define ATCA_PARAM_I2C I2C_DEV(1) /** @} */ +/** + * @brief AT24Mac provides a EUI-48 + */ +static inline int _at24mac_get_eui48(const void *arg, eui48_t *addr) +{ + return at24mac_get_eui48((uintptr_t)arg, addr); +} + +/** + * @name EUI-48 sources on the board + * AT24Mac is present on the board + * @{ + */ +#define EUI48_PROVIDER_FUNC _at24mac_get_eui48 +/** @} */ + /** * @name LED pin definitions and handlers * @{