mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
debug: add motor related debug messsages
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
55517a51e0
commit
0f847c1514
@@ -1709,6 +1709,31 @@ config DEBUG_WATCHDOG_INFO
|
|||||||
Enable watchdog time informational output to SYSLOG.
|
Enable watchdog time informational output to SYSLOG.
|
||||||
|
|
||||||
endif # DEBUG_WATCHDOG
|
endif # DEBUG_WATCHDOG
|
||||||
|
|
||||||
|
if DEBUG_MOTOR
|
||||||
|
|
||||||
|
config DEBUG_MOTOR_ERROR
|
||||||
|
bool "Motor Error Output"
|
||||||
|
default n
|
||||||
|
depends on DEBUG_ERROR
|
||||||
|
---help---
|
||||||
|
Enable motor error output to SYSLOG.
|
||||||
|
|
||||||
|
config DEBUG_MOTOR_WARN
|
||||||
|
bool "Motor Warnings Output"
|
||||||
|
default n
|
||||||
|
depends on DEBUG_WARN
|
||||||
|
---help---
|
||||||
|
Enable motor warning output to SYSLOG.
|
||||||
|
|
||||||
|
config DEBUG_MOTOR_INFO
|
||||||
|
bool "Motor Informational Output"
|
||||||
|
default n
|
||||||
|
depends on DEBUG_INFO
|
||||||
|
---help---
|
||||||
|
Enable motor informational output to SYSLOG.
|
||||||
|
|
||||||
|
endif # DEBUG_MOTOR
|
||||||
endif # DEBUG_FEATURES
|
endif # DEBUG_FEATURES
|
||||||
|
|
||||||
config ARCH_HAVE_STACKCHECK
|
config ARCH_HAVE_STACKCHECK
|
||||||
|
|||||||
@@ -731,6 +731,24 @@
|
|||||||
# define wdinfo _none
|
# define wdinfo _none
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_MOTOR_ERROR
|
||||||
|
# define mtrerr _err
|
||||||
|
#else
|
||||||
|
# define mtrerr _none
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_MOTOR_WARN
|
||||||
|
# define mtrwarn _warn
|
||||||
|
#else
|
||||||
|
# define mtrwarn _none
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_MOTOR_INFO
|
||||||
|
# define mtrinfo _info
|
||||||
|
#else
|
||||||
|
# define mtrinfo _none
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Buffer dumping macros do not depend on varargs */
|
/* Buffer dumping macros do not depend on varargs */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_ERROR
|
#ifdef CONFIG_DEBUG_ERROR
|
||||||
@@ -995,6 +1013,14 @@
|
|||||||
# define wdinfodumpbuffer(m,b,n)
|
# define wdinfodumpbuffer(m,b,n)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_MOTOR
|
||||||
|
# define mtrerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
||||||
|
# define mtrinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
||||||
|
#else
|
||||||
|
# define mtrerrdumpbuffer(m,b,n)
|
||||||
|
# define mtrinfodumpbuffer(m,b,n)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user