summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-lpc1766stk
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-30 01:55:22 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-30 01:55:22 +0000
commit2a13b10af3129b2d1baa34dcc29cf98a3e0dc0c0 (patch)
treeab35730ea08ba3a9026707772897a65412290cbd /nuttx/configs/olimex-lpc1766stk
parent0e37090fe20e9df40888e73ff6cc95ad4cffcfb1 (diff)
downloadpx4-nuttx-2a13b10af3129b2d1baa34dcc29cf98a3e0dc0c0.tar.gz
px4-nuttx-2a13b10af3129b2d1baa34dcc29cf98a3e0dc0c0.tar.bz2
px4-nuttx-2a13b10af3129b2d1baa34dcc29cf98a3e0dc0c0.zip
Debuggin SPI-based MicroSD card
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3147 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-lpc1766stk')
-rwxr-xr-xnuttx/configs/olimex-lpc1766stk/README.txt4
-rwxr-xr-xnuttx/configs/olimex-lpc1766stk/src/up_ssp.c17
2 files changed, 12 insertions, 9 deletions
diff --git a/nuttx/configs/olimex-lpc1766stk/README.txt b/nuttx/configs/olimex-lpc1766stk/README.txt
index 65264b770..7fab1335b 100755
--- a/nuttx/configs/olimex-lpc1766stk/README.txt
+++ b/nuttx/configs/olimex-lpc1766stk/README.txt
@@ -653,7 +653,9 @@ Where <subdir> is one of the following:
nsh:
Configures the NuttShell (nsh) located at examples/nsh. The
- Configuration enables only the serial NSH interfaces.
+ Configuration enables both the serial and telnet NSH interfaces.
+ Support for the board's SPI-based MicroSD card is included
+ (but not passing tests as of this writing).
ostest:
This configuration directory, performs a simple OS test using
diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c b/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c
index 9a1e72aad..be5b81222 100755
--- a/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c
+++ b/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c
@@ -58,27 +58,28 @@
* Definitions
************************************************************************************/
-/* Enables debug output from this file (needs CONFIG_DEBUG too) */
+/* The following enable debug output from this file (needs CONFIG_DEBUG too).
+ *
+ * CONFIG_SSP_DEBUG - Define to enable basic SSP debug
+ * CONFIG_SSP_VERBOSE - Define to enable verbose SSP debug
+ */
-#undef SSP_DEBUG /* Define to enable debug */
-#undef SSP_VERBOSE /* Define to enable verbose debug */
-
-#ifdef SSP_DEBUG
+#ifdef CONFIG_SSP_DEBUG
# define sspdbg lldbg
-# ifdef SSP_VERBOSE
+# ifdef CONFIG_SSP_VERBOSE
# define sspvdbg lldbg
# else
# define sspvdbg(x...)
# endif
#else
-# undef SSP_VERBOSE
+# undef CONFIG_SSP_VERBOSE
# define sspdbg(x...)
# define sspvdbg(x...)
#endif
/* Dump GPIO registers */
-#ifdef SSP_VERBOSE
+#ifdef CONFIG_SSP_VERBOSE
# define ssp_dumpssp0gpio(m) lpc17_dumpgpio(LPC1766STK_LCD_CS, m)
# define ssp_dumpssp1gpio(m) lpc17_dumpgpio(LPC1766STK_MMC_CS, m)
#else