Centralize definitions associated with CONFIG_DEBUG_GPIO

This commit is contained in:
Gregory Nutt 2016-06-15 09:27:52 -06:00
parent a97d3ae707
commit 0e180c3ad8
4 changed files with 4 additions and 12 deletions

View File

@ -72,16 +72,12 @@
/* Dump GPIO registers */ /* Dump GPIO registers */
#ifdef CONFIG_DEBUG_GPIO #ifdef CONFIG_DEBUG_GPIO_INFO
# define ssp_dumpgpio(m) lpc11_dumpgpio(SDCCS_GPIO, m) # define ssp_dumpgpio(m) lpc11_dumpgpio(SDCCS_GPIO, m)
#else #else
# define ssp_dumpgpio(m) # define ssp_dumpgpio(m)
#endif #endif
/************************************************************************************
* Private Functions
************************************************************************************/
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/

View File

@ -72,16 +72,12 @@
/* Dump GPIO registers */ /* Dump GPIO registers */
#ifdef CONFIG_DEBUG_GPIO #ifdef CONFIG_DEBUG_GPIO_INFO
# define ssp_dumpgpio(m) lpc17_dumpgpio(SDCCS_GPIO, m) # define ssp_dumpgpio(m) lpc17_dumpgpio(SDCCS_GPIO, m)
#else #else
# define ssp_dumpgpio(m) # define ssp_dumpgpio(m)
#endif #endif
/************************************************************************************
* Private Functions
************************************************************************************/
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/

View File

@ -89,7 +89,7 @@
/* Dump GPIO registers */ /* Dump GPIO registers */
#ifdef CONFIG_DEBUG_GPIO #ifdef CONFIG_DEBUG_GPIO_INFO
# 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

View File

@ -72,7 +72,7 @@
/* Dump GPIO registers */ /* Dump GPIO registers */
#ifdef CONFIG_DEBUG_GPIO #ifdef CONFIG_DEBUG_GPIO_INFO
# define ssp_dumpgpio(m) lpc17_dumpgpio(SDCCS_GPIO, m) # define ssp_dumpgpio(m) lpc17_dumpgpio(SDCCS_GPIO, m)
#else #else
# define ssp_dumpgpio(m) # define ssp_dumpgpio(m)