summaryrefslogtreecommitdiff
path: root/nuttx/configs/lm3s6965-ek
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-01 12:28:46 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-01 12:28:46 -0600
commitaf25f1123d65420a9d05e43b6b0bc929d09150eb (patch)
tree5d0e3c18bd72fbd2aa679a38a9093983c1c55826 /nuttx/configs/lm3s6965-ek
parent2042a54f1d8925a9514d87e290f17018188ab404 (diff)
downloadnuttx-af25f1123d65420a9d05e43b6b0bc929d09150eb.tar.gz
nuttx-af25f1123d65420a9d05e43b6b0bc929d09150eb.tar.bz2
nuttx-af25f1123d65420a9d05e43b6b0bc929d09150eb.zip
TM4C129X Ethernet: Add logic to get pre-programmed MAC address from user FLASH registers
Diffstat (limited to 'nuttx/configs/lm3s6965-ek')
-rw-r--r--nuttx/configs/lm3s6965-ek/include/board.h15
-rw-r--r--nuttx/configs/lm3s6965-ek/src/up_ethernet.c3
2 files changed, 2 insertions, 16 deletions
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
************************************************************************************/
/************************************************************************************