diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-01 12:28:46 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-01 12:28:46 -0600 |
commit | af25f1123d65420a9d05e43b6b0bc929d09150eb (patch) | |
tree | 5d0e3c18bd72fbd2aa679a38a9093983c1c55826 /nuttx/configs/lm3s8962-ek | |
parent | 2042a54f1d8925a9514d87e290f17018188ab404 (diff) | |
download | px4-nuttx-af25f1123d65420a9d05e43b6b0bc929d09150eb.tar.gz px4-nuttx-af25f1123d65420a9d05e43b6b0bc929d09150eb.tar.bz2 px4-nuttx-af25f1123d65420a9d05e43b6b0bc929d09150eb.zip |
TM4C129X Ethernet: Add logic to get pre-programmed MAC address from user FLASH registers
Diffstat (limited to 'nuttx/configs/lm3s8962-ek')
-rw-r--r-- | nuttx/configs/lm3s8962-ek/include/board.h | 15 | ||||
-rw-r--r-- | nuttx/configs/lm3s8962-ek/src/up_ethernet.c | 3 |
2 files changed, 2 insertions, 16 deletions
diff --git a/nuttx/configs/lm3s8962-ek/include/board.h b/nuttx/configs/lm3s8962-ek/include/board.h index 180e44dd3..8a1384d91 100644 --- a/nuttx/configs/lm3s8962-ek/include/board.h +++ b/nuttx/configs/lm3s8962-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/lm3s8962-ek/src/up_ethernet.c b/nuttx/configs/lm3s8962-ek/src/up_ethernet.c index bc20ea0f1..620231330 100644 --- a/nuttx/configs/lm3s8962-ek/src/up_ethernet.c +++ b/nuttx/configs/lm3s8962-ek/src/up_ethernet.c @@ -49,9 +49,10 @@ #include "up_arch.h" #include "chip.h" +#include "tiva_ethernet.h" /************************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************************/ /************************************************************************************ |