Debuggin SPI-based MicroSD card
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3147 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
10ff931ec5
commit
a0a4196869
|
@ -1376,5 +1376,9 @@
|
||||||
* arch/arm/src/lpc17xx/lpc17_ssp.c -- Fix compilation errors when SSP1 is
|
* arch/arm/src/lpc17xx/lpc17_ssp.c -- Fix compilation errors when SSP1 is
|
||||||
selected.
|
selected.
|
||||||
* configs/olimex-lpc1766stk/nsh -- Enable network and SD/MMC card support in
|
* configs/olimex-lpc1766stk/nsh -- Enable network and SD/MMC card support in
|
||||||
NSH (not verified on initial check-in)
|
NSH. Networking and telnetd interface functional. Still testing SPI-based
|
||||||
|
SD/MMC.
|
||||||
|
* examples/nsh/nsh_netinit.c -- Fix NSH bug. If CONFIG_NET is selected, but
|
||||||
|
CONFIG_EXAMPLES_NSH_TELNETD is not selected, then the network is never
|
||||||
|
initialized and bad things happen if you try to ping.
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<tr align="center" bgcolor="#e4e4e4">
|
<tr align="center" bgcolor="#e4e4e4">
|
||||||
<td>
|
<td>
|
||||||
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
||||||
<p>Last Updated: November 28, 2010</p>
|
<p>Last Updated: November 29, 2010</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -1997,7 +1997,11 @@ nuttx-5.15 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
* arch/arm/src/lpc17xx/lpc17_ssp.c -- Fix compilation errors when SSP1 is
|
* arch/arm/src/lpc17xx/lpc17_ssp.c -- Fix compilation errors when SSP1 is
|
||||||
selected.
|
selected.
|
||||||
* configs/olimex-lpc1766stk/nsh -- Enable network and SD/MMC card support in
|
* configs/olimex-lpc1766stk/nsh -- Enable network and SD/MMC card support in
|
||||||
NSH (not verified on initial check-in)
|
NSH. Networking and telnetd interface functional. Still testing SPI-based
|
||||||
|
SD/MMC.
|
||||||
|
* examples/nsh/nsh_netinit.c -- Fix NSH bug. If CONFIG_NET is selected, but
|
||||||
|
CONFIG_EXAMPLES_NSH_TELNETD is not selected, then the network is never
|
||||||
|
initialized and bad things happen if you try to ping.
|
||||||
|
|
||||||
pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
|
|
||||||
|
|
|
@ -65,20 +65,21 @@
|
||||||
* Definitions
|
* 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 */
|
#ifdef CONFIG_SSP_DEBUG
|
||||||
#undef SSP_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef SSP_DEBUG
|
|
||||||
# define sspdbg lldbg
|
# define sspdbg lldbg
|
||||||
# ifdef SSP_VERBOSE
|
# ifdef CONFIG_SSP_VERBOSE
|
||||||
# define spivdbg lldbg
|
# define spivdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define spivdbg(x...)
|
# define spivdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef SSP_VERBOSE
|
# undef CONFIG_SSP_VERBOSE
|
||||||
# define sspdbg(x...)
|
# define sspdbg(x...)
|
||||||
# define spivdbg(x...)
|
# define spivdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
@ -96,6 +97,10 @@
|
||||||
* use the CCLK undivided to get the SSP_CLOCK.
|
* use the CCLK undivided to get the SSP_CLOCK.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if LPC17_CCLK > 100000000
|
||||||
|
# error "CCLK <= 100,000,000 assumed"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SSP_PCLKSET_DIV SYSCON_PCLKSEL_CCLK
|
#define SSP_PCLKSET_DIV SYSCON_PCLKSEL_CCLK
|
||||||
#define SSP_CLOCK LPC17_CCLK
|
#define SSP_CLOCK LPC17_CCLK
|
||||||
|
|
||||||
|
|
|
@ -653,7 +653,9 @@ Where <subdir> is one of the following:
|
||||||
|
|
||||||
nsh:
|
nsh:
|
||||||
Configures the NuttShell (nsh) located at examples/nsh. The
|
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:
|
ostest:
|
||||||
This configuration directory, performs a simple OS test using
|
This configuration directory, performs a simple OS test using
|
||||||
|
|
|
@ -58,27 +58,28 @@
|
||||||
* Definitions
|
* 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 */
|
#ifdef CONFIG_SSP_DEBUG
|
||||||
#undef SSP_VERBOSE /* Define to enable verbose debug */
|
|
||||||
|
|
||||||
#ifdef SSP_DEBUG
|
|
||||||
# define sspdbg lldbg
|
# define sspdbg lldbg
|
||||||
# ifdef SSP_VERBOSE
|
# ifdef CONFIG_SSP_VERBOSE
|
||||||
# define sspvdbg lldbg
|
# define sspvdbg lldbg
|
||||||
# else
|
# else
|
||||||
# define sspvdbg(x...)
|
# define sspvdbg(x...)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef SSP_VERBOSE
|
# undef CONFIG_SSP_VERBOSE
|
||||||
# define sspdbg(x...)
|
# define sspdbg(x...)
|
||||||
# define sspvdbg(x...)
|
# define sspvdbg(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef SSP_VERBOSE
|
#ifdef CONFIG_SSP_VERBOSE
|
||||||
# define ssp_dumpssp0gpio(m) lpc17_dumpgpio(LPC1766STK_LCD_CS, m)
|
# define ssp_dumpssp0gpio(m) lpc17_dumpgpio(LPC1766STK_LCD_CS, m)
|
||||||
# define ssp_dumpssp1gpio(m) lpc17_dumpgpio(LPC1766STK_MMC_CS, m)
|
# define ssp_dumpssp1gpio(m) lpc17_dumpgpio(LPC1766STK_MMC_CS, m)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue