summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-06 10:12:10 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-06 10:12:10 -0600
commitb31b8ea5db6e7b42eee4195b7f2811b9d9a87396 (patch)
tree7dfb1c7d434075dc97996d6a3be6052582b554e0 /apps/nshlib/nsh.h
parent5b6529f173e35f3c15438869ea33dbf80d3be036 (diff)
downloadpx4-nuttx-b31b8ea5db6e7b42eee4195b7f2811b9d9a87396.tar.gz
px4-nuttx-b31b8ea5db6e7b42eee4195b7f2811b9d9a87396.tar.bz2
px4-nuttx-b31b8ea5db6e7b42eee4195b7f2811b9d9a87396.zip
NSH Networking: Also add an option to let platform-specific logic select the MAC address.
Diffstat (limited to 'apps/nshlib/nsh.h')
-rw-r--r--apps/nshlib/nsh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h
index 4b33f4452..1b76c19af 100644
--- a/apps/nshlib/nsh.h
+++ b/apps/nshlib/nsh.h
@@ -126,6 +126,10 @@
# define CONFIG_NSH_MACADDR 0x00e0deadbeef
#endif
+#ifndef CONFIG_NET
+# undef CONFIG_NSH_ARCHMAC
+#endif
+
/* Telnetd requires networking support */
#ifndef CONFIG_NET
@@ -694,6 +698,10 @@ int nsh_archinitialize(void);
# define nsh_archinitialize() (-ENOSYS)
#endif
+#ifdef CONFIG_NSH_ARCHMAC
+int nsh_arch_macaddress(uint8_t *mac);
+#endif
+
/* Basic session and message handling */
struct console_stdio_s;