From af25f1123d65420a9d05e43b6b0bc929d09150eb Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 1 Jan 2015 12:28:46 -0600 Subject: TM4C129X Ethernet: Add logic to get pre-programmed MAC address from user FLASH registers --- nuttx/configs/lm3s6965-ek/include/board.h | 15 --------------- nuttx/configs/lm3s6965-ek/src/up_ethernet.c | 3 ++- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'nuttx/configs/lm3s6965-ek') diff --git a/nuttx/configs/lm3s6965-ek/include/board.h b/nuttx/configs/lm3s6965-ek/include/board.h index fdbc0dd10..96ddd0136 100644 --- a/nuttx/configs/lm3s6965-ek/include/board.h +++ b/nuttx/configs/lm3s6965-ek/include/board.h @@ -123,20 +123,5 @@ void tiva_boardinitialize(void); -/************************************************************************************ - * Name: tiva_ethernetmac - * - * Description: - * For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile - * USER0 and USER1 registers. If CONFIG_TIVA_BOARDMAC is defined, this function - * will obtain the MAC address from these registers. - * - ************************************************************************************/ - -#ifdef CONFIG_TIVA_BOARDMAC -struct ether_addr; -void tiva_ethernetmac(struct ether_addr *ethaddr); -#endif - #endif /* __ASSEMBLY__ */ #endif /* __ARCH_BOARD_BOARD_H */ diff --git a/nuttx/configs/lm3s6965-ek/src/up_ethernet.c b/nuttx/configs/lm3s6965-ek/src/up_ethernet.c index 4ae9ef0e9..6a7e0133f 100644 --- a/nuttx/configs/lm3s6965-ek/src/up_ethernet.c +++ b/nuttx/configs/lm3s6965-ek/src/up_ethernet.c @@ -49,9 +49,10 @@ #include "up_arch.h" #include "chip.h" +#include "tiva_ethernet.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ -- cgit v1.2.3