提交 05d15b11 编写于 作者: mysterywolf's avatar mysterywolf

[stm32][drv_common] add LOW_E for Error_Handler

上级 01a65632
...@@ -16,8 +16,12 @@ ...@@ -16,8 +16,12 @@
#include "drv_usart_v2.h" #include "drv_usart_v2.h"
#else #else
#include "drv_usart.h" #include "drv_usart.h"
#endif #endif /* RT_USING_SERIAL */
#endif #endif /* RT_USING_SERIAL_V2 */
#define DBG_TAG "drv_common"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#ifdef RT_USING_FINSH #ifdef RT_USING_FINSH
#include <finsh.h> #include <finsh.h>
...@@ -115,6 +119,7 @@ void _Error_Handler(char *s, int num) ...@@ -115,6 +119,7 @@ void _Error_Handler(char *s, int num)
{ {
/* USER CODE BEGIN Error_Handler */ /* USER CODE BEGIN Error_Handler */
/* User can add his own implementation to report the HAL error return state */ /* User can add his own implementation to report the HAL error return state */
LOG_E("Error_Handler at file:%s num:%d", s, num);
while (1) while (1)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册