Merge pull request #5371 from mysterywolf/common

[stm32][drv_common] add LOG_E for Error_Handler
This commit is contained in:
guo 2021-12-13 14:00:13 +08:00 committed by GitHub
commit bf7a1d7cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -16,8 +16,12 @@
#include "drv_usart_v2.h"
#else
#include "drv_usart.h"
#endif
#endif
#endif /* RT_USING_SERIAL */
#endif /* RT_USING_SERIAL_V2 */
#define DBG_TAG "drv_common"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#ifdef RT_USING_FINSH
#include <finsh.h>
@ -115,6 +119,7 @@ void _Error_Handler(char *s, int num)
{
/* USER CODE BEGIN Error_Handler */
/* 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)
{
}