diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-14 01:45:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-14 01:45:19 +0000 |
commit | 8c89537b98e987c03dac4ecc08fc2dfe10e8e9ed (patch) | |
tree | a26809d6622b2a37bf166675e4d3b13cdefc2f21 /nuttx/arch | |
parent | b3de9210c819286206ac649886918c713f977be4 (diff) | |
download | px4-nuttx-8c89537b98e987c03dac4ecc08fc2dfe10e8e9ed.tar.gz px4-nuttx-8c89537b98e987c03dac4ecc08fc2dfe10e8e9ed.tar.bz2 px4-nuttx-8c89537b98e987c03dac4ecc08fc2dfe10e8e9ed.zip |
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
Diffstat (limited to 'nuttx/arch')
-rwxr-xr-x | nuttx/arch/arm/src/sam3u/sam3u_internal.h | 7 | ||||
-rwxr-xr-x | nuttx/arch/arm/src/sam3u/sam3u_pio.c | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_internal.h b/nuttx/arch/arm/src/sam3u/sam3u_internal.h index f38dea92d..757a8bb85 100755 --- a/nuttx/arch/arm/src/sam3u/sam3u_internal.h +++ b/nuttx/arch/arm/src/sam3u/sam3u_internal.h @@ -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) diff --git a/nuttx/arch/arm/src/sam3u/sam3u_pio.c b/nuttx/arch/arm/src/sam3u/sam3u_pio.c index 1300aeb37..79e36c6df 100755 --- a/nuttx/arch/arm/src/sam3u/sam3u_pio.c +++ b/nuttx/arch/arm/src/sam3u/sam3u_pio.c @@ -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; |