mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
@@ -60,6 +60,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* USB trace dumping */
|
/* USB trace dumping */
|
||||||
|
|
||||||
#ifndef CONFIG_USBDEV_TRACE
|
#ifndef CONFIG_USBDEV_TRACE
|
||||||
|
|||||||
@@ -94,10 +94,12 @@ static void up_stackdump(uint16_t sp, uint16_t stack_base)
|
|||||||
for (stack = sp; stack < stack_base; stack += 16)
|
for (stack = sp; stack < stack_base; stack += 16)
|
||||||
{
|
{
|
||||||
uint8_t *ptr = (uint8_t *)stack;
|
uint8_t *ptr = (uint8_t *)stack;
|
||||||
|
|
||||||
_alert("%04x: %02x %02x %02x %02x %02x %02x %02x %02x"
|
_alert("%04x: %02x %02x %02x %02x %02x %02x %02x %02x"
|
||||||
" %02x %02x %02x %02x %02x %02x %02x %02x\n",
|
" %02x %02x %02x %02x %02x %02x %02x %02x\n",
|
||||||
stack, ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7],
|
stack, ptr[0], ptr[1], ptr[2], ptr[3], ptr[4],
|
||||||
ptr[8], ptr[9], ptr[10], ptr[11], ptr[12], ptr[13], ptr[14], ptr[15]);
|
ptr[5], ptr[6], ptr[7], ptr[8], ptr[9], ptr[10],
|
||||||
|
ptr[11], ptr[12], ptr[13], ptr[14], ptr[15]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@@ -147,7 +149,6 @@ static inline void up_registerdump(void)
|
|||||||
_alert("PPAGE: %02x\n", regs[REG_PPAGE]);
|
_alert("PPAGE: %02x\n", regs[REG_PPAGE]);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
# define up_registerdump()
|
# define up_registerdump()
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -85,11 +85,11 @@ static void _up_assert(int errorcode)
|
|||||||
|
|
||||||
syslog_flush();
|
syslog_flush();
|
||||||
|
|
||||||
/* Are we in an interrupt handler or the idle task? NOTE: You cannot use the
|
/* Are we in an interrupt handler or the idle task? NOTE: You cannot use
|
||||||
* PID to determine if this is an IDLE task. In the SMP case, there may be
|
* the PID to determine if this is an IDLE task. In the SMP case, there
|
||||||
* multiple IDLE tasks with different PIDs. The only consistent way to test
|
* may be multiple IDLE tasks with different PIDs. The only consistent
|
||||||
* for the IDLE task is to check it is at the end of the list (flink ==
|
* way to test for the IDLE task is to check it is at the end of the list
|
||||||
* NULL)
|
* (flink == NULL)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (g_current_regs || running_task()->flink == NULL)
|
if (g_current_regs || running_task()->flink == NULL)
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* USB trace dumping */
|
/* USB trace dumping */
|
||||||
|
|
||||||
#ifndef CONFIG_USBDEV_TRACE
|
#ifndef CONFIG_USBDEV_TRACE
|
||||||
|
|||||||
@@ -118,11 +118,12 @@ static int usbtrace_syslog(const char *fmt, ...)
|
|||||||
* Name: usbtrace_enable
|
* Name: usbtrace_enable
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Enable/disable tracing per trace ID. The initial state is all IDs enabled.
|
* Enable/disable tracing per trace ID. The initial state is all IDs
|
||||||
|
* enabled.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* idset - The bitset of IDs to be masked. TRACE_ALLIDS enables all IDS; zero
|
* idset - The bitset of IDs to be masked. TRACE_ALLIDS enables all IDS;
|
||||||
* masks all IDs.
|
* zero masks all IDs.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* The previous idset value.
|
* The previous idset value.
|
||||||
|
|||||||
Reference in New Issue
Block a user