summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-10-15 17:26:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-10-15 17:26:05 +0000
commit2edd5de0e827fe992580f528e5b7181d55d3b587 (patch)
tree0b0ff87e933a2f86b8c10f92408f2931064a1756 /nuttx/examples/nsh/nsh.h
parentde69e9a67bddcb0f59cce0ca1c0d7277c854261c (diff)
downloadpx4-nuttx-2edd5de0e827fe992580f528e5b7181d55d3b587.tar.gz
px4-nuttx-2edd5de0e827fe992580f528e5b7181d55d3b587.tar.bz2
px4-nuttx-2edd5de0e827fe992580f528e5b7181d55d3b587.zip
Add NXP LPC214x-specific NSH support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1044 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh.h')
-rw-r--r--nuttx/examples/nsh/nsh.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh.h b/nuttx/examples/nsh/nsh.h
index b98cec49b..c4374198f 100644
--- a/nuttx/examples/nsh/nsh.h
+++ b/nuttx/examples/nsh/nsh.h
@@ -284,11 +284,22 @@ extern const char g_fmtinternalerror[];
#ifdef CONFIG_EXAMPLES_NSH_ROMFSETC
extern int nsh_romfsetc(void);
+#else
+# define nsh_romfsetc() (-ENOSYS)
#endif
+
#if CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0 && !defined(CONFIG_EXAMPLES_NSH_DISABLESCRIPT)
extern int nsh_script(FAR struct nsh_vtbl_s *vtbl, const char *cmd, const char *path);
#endif
+/* Architecture-specific initialization */
+
+#ifdef CONFIG_EXAMPLES_NSH_ARCHINIT
+extern int nsh_archinitialize(void);
+#else
+# define nsh_archinitialize() (-ENOSYS)
+#endif
+
/* Message handler */
extern int nsh_parse(FAR struct nsh_vtbl_s *vtbl, char *cmdline);