mirror of
https://github.com/apache/nuttx.git
synced 2026-10-23 23:08:44 +00:00
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:
parent
9dcd295ca2
commit
8e98baa9e0
2 changed files with 8 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue