We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a6563 commit 05d15b1Copy full SHA for 05d15b1
bsp/stm32/libraries/HAL_Drivers/drv_common.c
@@ -16,8 +16,12 @@
16
#include "drv_usart_v2.h"
17
#else
18
#include "drv_usart.h"
19
-#endif
20
+#endif /* RT_USING_SERIAL */
+#endif /* RT_USING_SERIAL_V2 */
21
+
22
+#define DBG_TAG "drv_common"
23
+#define DBG_LVL DBG_INFO
24
+#include <rtdbg.h>
25
26
#ifdef RT_USING_FINSH
27
#include <finsh.h>
@@ -115,6 +119,7 @@ void _Error_Handler(char *s, int num)
115
119
{
116
120
/* USER CODE BEGIN Error_Handler */
117
121
/* User can add his own implementation to report the HAL error return state */
122
+ LOG_E("Error_Handler at file:%s num:%d", s, num);
118
123
while (1)
124
125
}
0 commit comments