debug: add motor related debug messsages

This commit is contained in:
raiden00pl
2021-04-01 08:56:42 +02:00
committed by Alan Carvalho de Assis
parent 55517a51e0
commit 0f847c1514
2 changed files with 51 additions and 0 deletions
+26
View File
@@ -731,6 +731,24 @@
# define wdinfo _none
#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 */
#ifdef CONFIG_DEBUG_ERROR
@@ -995,6 +1013,14 @@
# define wdinfodumpbuffer(m,b,n)
#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
****************************************************************************/