mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
@@ -802,7 +802,7 @@
|
|||||||
<p>
|
<p>
|
||||||
Definitions in the <code>Make.defs</code> file probably depend on some of the
|
Definitions in the <code>Make.defs</code> file probably depend on some of the
|
||||||
settings in the .<code>config</code> file. For example, the <code>CFLAGS</code> will most likely be
|
settings in the .<code>config</code> file. For example, the <code>CFLAGS</code> will most likely be
|
||||||
different if <code>CONFIG_DEBUG=y</code>.
|
different if <code>CONFIG_DEBUG_FEATURES=y</code>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The included <code>tools/Config.mk</code> file contains additional definitions that may
|
The included <code>tools/Config.mk</code> file contains additional definitions that may
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>CONFIG_USBDEV_TRACE</code>, or</li>
|
<li><code>CONFIG_USBDEV_TRACE</code>, or</li>
|
||||||
<li><code>CONFIG_DEBUG and CONFIG_DEBUG_USB</code></li>
|
<li><code>CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_USB</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p><b>Log Data Sink</b>.
|
<p><b>Log Data Sink</b>.
|
||||||
The logged data itself may go to either (1) an internal circular buffer, or (2) may be provided on the console.
|
The logged data itself may go to either (1) an internal circular buffer, or (2) may be provided on the console.
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
Here is an example of USB trace output using <code>apps/examples/usbserial</code> for an LPC1768 platform with the following NuttX configuration settings:
|
Here is an example of USB trace output using <code>apps/examples/usbserial</code> for an LPC1768 platform with the following NuttX configuration settings:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>CONFIG_DEBUG</code>, <code>CONFIG_DEBUG_INFO</code>, <code>CONFIG_USB</code>
|
<li><code>CONFIG_DEBUG_FEATURES</code>, <code>CONFIG_DEBUG_INFO</code>, <code>CONFIG_USB</code>
|
||||||
<li><code>CONFIG_EXAMPLES_USBSERIAL_TRACEINIT</code>, <code>CONFIG_EXAMPLES_USBSERIAL_TRACECLASS</code>,
|
<li><code>CONFIG_EXAMPLES_USBSERIAL_TRACEINIT</code>, <code>CONFIG_EXAMPLES_USBSERIAL_TRACECLASS</code>,
|
||||||
<code>CONFIG_EXAMPLES_USBSERIAL_TRACETRANSFERS</code>, <code>CONFIG_EXAMPLES_USBSERIAL_TRACECONTROLLER</code>,
|
<code>CONFIG_EXAMPLES_USBSERIAL_TRACETRANSFERS</code>, <code>CONFIG_EXAMPLES_USBSERIAL_TRACECONTROLLER</code>,
|
||||||
<code>CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS</code>
|
<code>CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS</code>
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ endmenu # Customize Header Files
|
|||||||
|
|
||||||
menu "Debug Options"
|
menu "Debug Options"
|
||||||
|
|
||||||
config DEBUG
|
config DEBUG_FEATURES
|
||||||
bool "Enable Debug Features"
|
bool "Enable Debug Features"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
@@ -409,7 +409,7 @@ config ARCH_HAVE_HEAPCHECK
|
|||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if DEBUG
|
if DEBUG_FEATURES
|
||||||
|
|
||||||
comment "Debug SYSLOG Output Controls"
|
comment "Debug SYSLOG Output Controls"
|
||||||
|
|
||||||
@@ -707,7 +707,7 @@ config DEBUG_WATCHDOG
|
|||||||
Support for this debug option is architecture-specific and may not
|
Support for this debug option is architecture-specific and may not
|
||||||
be available for some MCUs.
|
be available for some MCUs.
|
||||||
|
|
||||||
endif # DEBUG
|
endif # DEBUG_FEATURES
|
||||||
|
|
||||||
config ARCH_HAVE_STACKCHECK
|
config ARCH_HAVE_STACKCHECK
|
||||||
bool
|
bool
|
||||||
|
|||||||
+1
-1
@@ -588,7 +588,7 @@ config ARCH_ROMPGTABLE
|
|||||||
config DEBUG_HARDFAULT
|
config DEBUG_HARDFAULT
|
||||||
bool "Verbose Hard-Fault Debug"
|
bool "Verbose Hard-Fault Debug"
|
||||||
default n
|
default n
|
||||||
depends on DEBUG && (ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7)
|
depends on DEBUG_FEATURES && (ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7)
|
||||||
---help---
|
---help---
|
||||||
Enables verbose debug output when a hard fault is occurs. This verbose
|
Enables verbose debug output when a hard fault is occurs. This verbose
|
||||||
output is sometimes helpful when debugging difficult hard fault problems,
|
output is sometimes helpful when debugging difficult hard fault problems,
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define EFM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define EFM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define EFM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define EFM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define KINETIS_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define KINETIS_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define KINETIS_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define KINETIS_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define KL_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define KL_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define KL_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define KL_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
/* Common Processor Exceptions (vectors 0-15) */
|
/* Common Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define LPC11_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define LPC11_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define LPC11_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define LPC11_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
/* Common Processor Exceptions (vectors 0-15) */
|
/* Common Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define LPC17_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define LPC17_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define LPC17_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define LPC17_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define LPC43_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define LPC43_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define LPC43_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define LPC43_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define NUC_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define NUC_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define NUC_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define NUC_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
/* Common Processor Exceptions (vectors 0-15) */
|
/* Common Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define SAM_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define SAM_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define SAM_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define SAM_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define SAM_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define SAM_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define SAM_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define SAM_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
/* Common Processor Exceptions (vectors 0-15) */
|
/* Common Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define SAM_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define SAM_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define SAM_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define SAM_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define STM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define STM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define STM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define STM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define STM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define STM32_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define STM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define STM32_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define STM32L4_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define STM32L4_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define STM32L4_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define STM32L4_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -162,7 +162,7 @@
|
|||||||
|
|
||||||
/* Processor Exceptions (vectors 0-15) */
|
/* Processor Exceptions (vectors 0-15) */
|
||||||
|
|
||||||
#define TIVA_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG) */
|
#define TIVA_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */
|
||||||
/* Vector 0: Reset stack pointer value */
|
/* Vector 0: Reset stack pointer value */
|
||||||
/* Vector 1: Reset (not handler as an IRQ) */
|
/* Vector 1: Reset (not handler as an IRQ) */
|
||||||
#define TIVA_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
#define TIVA_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -81,12 +81,12 @@
|
|||||||
* code. We are going to print the task name if:
|
* code. We are going to print the task name if:
|
||||||
*
|
*
|
||||||
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
||||||
* (defined(CONFIG_DEBUG) || <-- And the debug is enabled (lldbg used)
|
* (defined(CONFIG_DEBUG_FEATURES) || <-- And the debug is enabled (lldbg used)
|
||||||
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef CONFIG_PRINT_TASKNAME
|
#undef CONFIG_PRINT_TASKNAME
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG) || defined(CONFIG_ARCH_STACKDUMP))
|
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG_FEATURES) || defined(CONFIG_ARCH_STACKDUMP))
|
||||||
# define CONFIG_PRINT_TASKNAME 1
|
# define CONFIG_PRINT_TASKNAME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
|
|
||||||
/* This macro will modify r0, r1, r2 and r14 */
|
/* This macro will modify r0, r1, r2 and r14 */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
.macro showprogress, code
|
.macro showprogress, code
|
||||||
mov r0, #\code
|
mov r0, #\code
|
||||||
bl up_lowputc
|
bl up_lowputc
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
/* This macro will modify r0, r1, r2 and r14 */
|
/* This macro will modify r0, r1, r2 and r14 */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
.macro showprogress, code
|
.macro showprogress, code
|
||||||
mov r0, #\code
|
mov r0, #\code
|
||||||
bl up_lowputc
|
bl up_lowputc
|
||||||
@@ -115,7 +115,7 @@ __start:
|
|||||||
bl up_earlyserialinit
|
bl up_earlyserialinit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
mov r0, #'C'
|
mov r0, #'C'
|
||||||
bl up_putc
|
bl up_putc
|
||||||
mov r0, #'\n'
|
mov r0, #'\n'
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
****************************************************************************************************/
|
****************************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
void up_dumpnvic(FAR const char *msg);
|
void up_dumpnvic(FAR const char *msg);
|
||||||
#else
|
#else
|
||||||
# define up_dumpnvic(m)
|
# define up_dumpnvic(m)
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -80,12 +80,12 @@
|
|||||||
* code. We are going to print the task name if:
|
* code. We are going to print the task name if:
|
||||||
*
|
*
|
||||||
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
||||||
* (defined(CONFIG_DEBUG) || <-- And the debug is enabled (lldbg used)
|
* (defined(CONFIG_DEBUG_FEATURES) || <-- And the debug is enabled (lldbg used)
|
||||||
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef CONFIG_PRINT_TASKNAME
|
#undef CONFIG_PRINT_TASKNAME
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG) || defined(CONFIG_ARCH_STACKDUMP))
|
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG_FEATURES) || defined(CONFIG_ARCH_STACKDUMP))
|
||||||
# define CONFIG_PRINT_TASKNAME 1
|
# define CONFIG_PRINT_TASKNAME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
#include "nvic.h"
|
#include "nvic.h"
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
@@ -108,4 +108,4 @@ void up_dumpnvic(FAR const char *msg)
|
|||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_DEBUG */
|
#endif /* CONFIG_DEBUG_FEATURES */
|
||||||
|
|||||||
@@ -64,8 +64,8 @@
|
|||||||
/* Debug output from this file may interfere with context switching! To get
|
/* Debug output from this file may interfere with context switching! To get
|
||||||
* debug output you must enabled the following in your NuttX configuration:
|
* debug output you must enabled the following in your NuttX configuration:
|
||||||
*
|
*
|
||||||
* - CONFIG_DEBUG and CONFIG_DEBUG_SYSCALL (shows only syscalls)
|
* - CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_SYSCALL (shows only syscalls)
|
||||||
* - CONFIG_DEBUG and CONFIG_DEBUG_SVCALL (shows everything)
|
* - CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_SVCALL (shows everything)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL)
|
#if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL)
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -79,12 +79,12 @@
|
|||||||
* code. We are going to print the task name if:
|
* code. We are going to print the task name if:
|
||||||
*
|
*
|
||||||
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
||||||
* (defined(CONFIG_DEBUG) || <-- And the debug is enabled (lldbg used)
|
* (defined(CONFIG_DEBUG_FEATURES) || <-- And the debug is enabled (lldbg used)
|
||||||
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef CONFIG_PRINT_TASKNAME
|
#undef CONFIG_PRINT_TASKNAME
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG) || defined(CONFIG_ARCH_STACKDUMP))
|
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG_FEATURES) || defined(CONFIG_ARCH_STACKDUMP))
|
||||||
# define CONFIG_PRINT_TASKNAME 1
|
# define CONFIG_PRINT_TASKNAME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
|
|
||||||
/* This macro will modify r0, r1, r2 and r14 */
|
/* This macro will modify r0, r1, r2 and r14 */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
.macro showprogress, code
|
.macro showprogress, code
|
||||||
mov r0, #\code
|
mov r0, #\code
|
||||||
bl up_lowputc
|
bl up_lowputc
|
||||||
|
|||||||
@@ -194,7 +194,7 @@
|
|||||||
|
|
||||||
/* This macro will modify r0, r1, r2 and r14 */
|
/* This macro will modify r0, r1, r2 and r14 */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
.macro showprogress, code
|
.macro showprogress, code
|
||||||
mov r0, #\code
|
mov r0, #\code
|
||||||
bl up_lowputc
|
bl up_lowputc
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ uint32_t mpu_subregion(uintptr_t base, size_t size, uint8_t l2size);
|
|||||||
|
|
||||||
static inline void mpu_showtype(void)
|
static inline void mpu_showtype(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
uint32_t regval = getreg32(MPU_TYPE);
|
uint32_t regval = getreg32(MPU_TYPE);
|
||||||
dbg("%s MPU Regions: data=%d instr=%d\n",
|
dbg("%s MPU Regions: data=%d instr=%d\n",
|
||||||
(regval & MPU_TYPE_SEPARATE) != 0 ? "Separate" : "Unified",
|
(regval & MPU_TYPE_SEPARATE) != 0 ? "Separate" : "Unified",
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -79,12 +79,12 @@
|
|||||||
* code. We are going to print the task name if:
|
* code. We are going to print the task name if:
|
||||||
*
|
*
|
||||||
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
||||||
* (defined(CONFIG_DEBUG) || <-- And the debug is enabled (lldbg used)
|
* (defined(CONFIG_DEBUG_FEATURES) || <-- And the debug is enabled (lldbg used)
|
||||||
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef CONFIG_PRINT_TASKNAME
|
#undef CONFIG_PRINT_TASKNAME
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG) || defined(CONFIG_ARCH_STACKDUMP))
|
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG_FEATURES) || defined(CONFIG_ARCH_STACKDUMP))
|
||||||
# define CONFIG_PRINT_TASKNAME 1
|
# define CONFIG_PRINT_TASKNAME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -65,8 +65,8 @@
|
|||||||
/* Debug output from this file may interfere with context switching! To get
|
/* Debug output from this file may interfere with context switching! To get
|
||||||
* debug output you must enabled the following in your NuttX configuration:
|
* debug output you must enabled the following in your NuttX configuration:
|
||||||
*
|
*
|
||||||
* - CONFIG_DEBUG and CONFIG_DEBUG_SYSCALL (shows only syscalls)
|
* - CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_SYSCALL (shows only syscalls)
|
||||||
* - CONFIG_DEBUG and CONFIG_DEBUG_SVCALL (shows everything)
|
* - CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_SVCALL (shows everything)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL)
|
#if defined(CONFIG_DEBUG_SYSCALL) || defined(CONFIG_DEBUG_SVCALL)
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -79,12 +79,12 @@
|
|||||||
* code. We are going to print the task name if:
|
* code. We are going to print the task name if:
|
||||||
*
|
*
|
||||||
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
* CONFIG_TASK_NAME_SIZE > 0 && <-- The task has a name
|
||||||
* (defined(CONFIG_DEBUG) || <-- And the debug is enabled (lldbg used)
|
* (defined(CONFIG_DEBUG_FEATURES) || <-- And the debug is enabled (lldbg used)
|
||||||
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
* defined(CONFIG_ARCH_STACKDUMP) <-- Or lowsyslog() is used
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#undef CONFIG_PRINT_TASKNAME
|
#undef CONFIG_PRINT_TASKNAME
|
||||||
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG) || defined(CONFIG_ARCH_STACKDUMP))
|
#if CONFIG_TASK_NAME_SIZE > 0 && (defined(CONFIG_DEBUG_FEATURES) || defined(CONFIG_ARCH_STACKDUMP))
|
||||||
# define CONFIG_PRINT_TASKNAME 1
|
# define CONFIG_PRINT_TASKNAME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
# undef CONFIG_DEBUG
|
# undef CONFIG_DEBUG_FEATURES
|
||||||
# undef CONFIG_DEBUG_INFO
|
# undef CONFIG_DEBUG_INFO
|
||||||
# define CONFIG_DEBUG 1
|
# define CONFIG_DEBUG_FEATURES 1
|
||||||
# define CONFIG_DEBUG_INFO 1
|
# define CONFIG_DEBUG_INFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ static inline void mpu_set_rgnr(unsigned int rgnr)
|
|||||||
|
|
||||||
static inline void mpu_showtype(void)
|
static inline void mpu_showtype(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
uint32_t regval = mpu_get_mpuir();
|
uint32_t regval = mpu_get_mpuir();
|
||||||
dbg("%s MPU Regions: data=%d instr=%d\n",
|
dbg("%s MPU Regions: data=%d instr=%d\n",
|
||||||
(regval & MPUIR_SEPARATE) != 0 ? "Separate" : "Unified",
|
(regval & MPUIR_SEPARATE) != 0 ? "Separate" : "Unified",
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ static void c5471_macassign(struct c5471_driver_s *c5471);
|
|||||||
#ifdef CONFIG_C5471_NET_DUMPBUFFER
|
#ifdef CONFIG_C5471_NET_DUMPBUFFER
|
||||||
static inline void c5471_dumpbuffer(const char *msg, const uint8_t *buffer, unsigned int nbytes)
|
static inline void c5471_dumpbuffer(const char *msg, const uint8_t *buffer, unsigned int nbytes)
|
||||||
{
|
{
|
||||||
/* CONFIG_DEBUG, CONFIG_DEBUG_INFO, and CONFIG_DEBUG_NET have to be
|
/* CONFIG_DEBUG_FEATURES, CONFIG_DEBUG_INFO, and CONFIG_DEBUG_NET have to be
|
||||||
* defined or the following does nothing.
|
* defined or the following does nothing.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_TLS */
|
#endif /* CONFIG_TLS */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
/* Was the allocation successful? */
|
/* Was the allocation successful? */
|
||||||
|
|
||||||
if (!tcb->stack_alloc_ptr)
|
if (!tcb->stack_alloc_ptr)
|
||||||
|
|||||||
@@ -66,7 +66,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)
|
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
||||||
{
|
{
|
||||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
@@ -140,7 +140,7 @@ void _exit(int status)
|
|||||||
|
|
||||||
slldbg("TCB=%p exiting\n", this_task());
|
slldbg("TCB=%p exiting\n", this_task());
|
||||||
|
|
||||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG)
|
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
||||||
slldbg("Other tasks:\n");
|
slldbg("Other tasks:\n");
|
||||||
sched_foreach(_up_dumponexit, NULL);
|
sched_foreach(_up_dumponexit, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG)
|
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG_FEATURES)
|
||||||
static void up_calibratedelay(void)
|
static void up_calibratedelay(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
@@ -980,7 +980,7 @@ static void dm320_hwinitialize(void)
|
|||||||
static int dm320_getvid0videoinfo(FAR struct fb_vtable_s *vtable,
|
static int dm320_getvid0videoinfo(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_videoinfo_s *vinfo)
|
FAR struct fb_videoinfo_s *vinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !vinfo)
|
if (!vtable || !vinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1003,7 +1003,7 @@ static int dm320_getvid0videoinfo(FAR struct fb_vtable_s *vtable,
|
|||||||
static int dm320_getvid0planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
static int dm320_getvid0planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
||||||
FAR struct fb_planeinfo_s *pinfo)
|
FAR struct fb_planeinfo_s *pinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !pinfo)
|
if (!vtable || !pinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1027,7 +1027,7 @@ static int dm320_getvid0planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
|||||||
static int dm320_getvid1videoinfo(FAR struct fb_vtable_s *vtable,
|
static int dm320_getvid1videoinfo(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_videoinfo_s *vinfo)
|
FAR struct fb_videoinfo_s *vinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !vinfo)
|
if (!vtable || !vinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1050,7 +1050,7 @@ static int dm320_getvid1videoinfo(FAR struct fb_vtable_s *vtable,
|
|||||||
static int dm320_getvid1planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
static int dm320_getvid1planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
||||||
FAR struct fb_planeinfo_s *pinfo)
|
FAR struct fb_planeinfo_s *pinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !pinfo)
|
if (!vtable || !pinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1074,7 +1074,7 @@ static int dm320_getvid1planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
|||||||
static int dm320_getosd0videoinfo(FAR struct fb_vtable_s *vtable,
|
static int dm320_getosd0videoinfo(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_videoinfo_s *vinfo)
|
FAR struct fb_videoinfo_s *vinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !vinfo)
|
if (!vtable || !vinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1101,7 +1101,7 @@ static int dm320_getosd0videoinfo(FAR struct fb_vtable_s *vtable,
|
|||||||
static int dm320_getosd0planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
static int dm320_getosd0planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
||||||
FAR struct fb_planeinfo_s *pinfo)
|
FAR struct fb_planeinfo_s *pinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !pinfo)
|
if (!vtable || !pinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1125,7 +1125,7 @@ static int dm320_getosd0planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
|||||||
static int dm320_getosd1videoinfo(FAR struct fb_vtable_s *vtable,
|
static int dm320_getosd1videoinfo(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_videoinfo_s *vinfo)
|
FAR struct fb_videoinfo_s *vinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !vinfo)
|
if (!vtable || !vinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1152,7 +1152,7 @@ static int dm320_getosd1videoinfo(FAR struct fb_vtable_s *vtable,
|
|||||||
static int dm320_getosd1planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
static int dm320_getosd1planeinfo(FAR struct fb_vtable_s *vtable, int planeno,
|
||||||
FAR struct fb_planeinfo_s *pinfo)
|
FAR struct fb_planeinfo_s *pinfo)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !pinfo)
|
if (!vtable || !pinfo)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1196,7 +1196,7 @@ static int dm320_putcmap(FAR struct fb_vtable_s *vtable, FAR struct fb_cmap_s *c
|
|||||||
int len
|
int len
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !cmap || !cmap->read || !cmap->green || !cmap->blue)
|
if (!vtable || !cmap || !cmap->read || !cmap->green || !cmap->blue)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1245,7 +1245,7 @@ static int dm320_getcursor(FAR struct fb_vtable_s *vtable, FAR struct fb_cursora
|
|||||||
{
|
{
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !attrib)
|
if (!vtable || !attrib)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -1288,7 +1288,7 @@ static int dm320_setcursor(FAR struct fb_vtable_s *vtable, FAR struct fb_setcurs
|
|||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint16_t regval;
|
uint16_t regval;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
if (!vtable || !settings)
|
if (!vtable || !settings)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user