diff options
Diffstat (limited to 'nuttx/arch/arm/src/sam3u')
-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; |