mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
@@ -44,9 +44,9 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_ARCH_STACKDUMP
|
||||
# undef CONFIG_DEBUG
|
||||
# undef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# define CONFIG_DEBUG 1
|
||||
# define CONFIG_DEBUG_FEATURES 1
|
||||
# define CONFIG_DEBUG_INFO 1
|
||||
#endif
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
||||
|
||||
tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size);
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
/* Was the allocation successful? */
|
||||
|
||||
if (!tcb->stack_alloc_ptr)
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
||||
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
{
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||
@@ -141,7 +141,7 @@ void _exit(int status)
|
||||
|
||||
slldbg("TCB=%p exiting\n", tcb);
|
||||
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
||||
lldbg("Other tasks:\n");
|
||||
sched_foreach(_up_dumponexit, NULL);
|
||||
#endif
|
||||
|
||||
@@ -82,7 +82,7 @@ volatile FAR chipreg_t *g_current_regs;
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG_FEATURES)
|
||||
static void up_calibratedelay(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_ARCH_STACKDUMP
|
||||
# undef CONFIG_DEBUG
|
||||
# undef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# define CONFIG_DEBUG 1
|
||||
# define CONFIG_DEBUG_FEATURES 1
|
||||
# define CONFIG_DEBUG_INFO 1
|
||||
#endif
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@
|
||||
|
||||
/* Output debug info -- even if debug is not selected. */
|
||||
|
||||
#undef CONFIG_DEBUG
|
||||
#undef CONFIG_DEBUG_FEATURES
|
||||
#undef CONFIG_DEBUG_INFO
|
||||
#define CONFIG_DEBUG 1
|
||||
#define CONFIG_DEBUG_FEATURES 1
|
||||
#define CONFIG_DEBUG_INFO 1
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
@@ -33,7 +33,7 @@ menu "Z16F ESPI Configuration"
|
||||
config Z16F_ESPI_REGDEBUG
|
||||
bool "ESPI register-level debug"
|
||||
default n
|
||||
depends on DEBUG
|
||||
depends on DEBUG_FEATURES
|
||||
|
||||
endmenu # Z16F ESPI Configuration
|
||||
endif # ARCH_CHIP_Z16F
|
||||
|
||||
@@ -59,7 +59,7 @@ extern _Erom unsigned long SYS_CLK_FREQ;
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
/****************************************************************************
|
||||
* System clock initialization--DEBUG. Code Using Frequency Input from
|
||||
* ZDS IDE.
|
||||
@@ -206,7 +206,7 @@ static void z16f_sysclkinit(int clockid, uint32_t frequency)
|
||||
for (count = 0; count < 10000; count++);
|
||||
}
|
||||
|
||||
#else /* CONFIG_DEBUG */
|
||||
#else /* CONFIG_DEBUG_FEATURES */
|
||||
/****************************************************************************
|
||||
* System Clock Initialization Recommended for Release Code
|
||||
*
|
||||
@@ -247,7 +247,7 @@ static void z16f_sysclkinit(int clockid, uint32_t frequency)
|
||||
putreg8(0xe0 | 1, Z16F_OSC_CTL); /* Use the external osc/clock as system clock */
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_DEBUG */
|
||||
#endif /* CONFIG_DEBUG_FEATURES */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
* include/debug.h
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# undef CONFIG_DEBUG_SPI
|
||||
# undef CONFIG_Z16F_ESPI_REGDEBUG
|
||||
|
||||
Reference in New Issue
Block a user