Make it harder to turn on PIO debug

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2593 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-04-14 01:45:19 +00:00
parent d376cfa818
commit 1c9d2257be
2 changed files with 8 additions and 3 deletions

View File

@ -62,6 +62,11 @@
# undef CONFIG_GPIO_IRQ
#endif
#ifndef CONFIG_DEBUG
# undef CONFIG_DEBUG_GPIO
# undef CONFIG_DEBUG_DMA
#endif
/* Bit-encoded input to sam3u_configgpio() ******************************************/
/* 16-bit Encoding:
@ -526,7 +531,7 @@ EXTERN void sam3u_gpioirqdisable(int irq);
*
************************************************************************************/
#ifdef CONFIG_DEBUG
#ifdef CONFIG_DEBUG_GPIO
EXTERN int sam3u_dumpgpio(uint32_t pinset, const char *msg);
#else
# define sam3u_dumpgpio(p,m)

View File

@ -66,7 +66,7 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_DEBUG
#ifdef CONFIG_DEBUG_GPIO
static const char g_portchar[4] = { 'A', 'B', 'C', 'D' };
#endif
@ -350,7 +350,7 @@ bool sam3u_gpioread(uint16_t pinset)
*
************************************************************************************/
#ifdef CONFIG_DEBUG
#ifdef CONFIG_DEBUG_GPIO
int sam3u_dumpgpio(uint32_t pinset, const char *msg)
{
irqstate_t flags;