diff options
| author | guo <[email protected]> | 2021-12-13 14:00:13 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-13 14:00:13 +0800 |
| commit | bf7a1d7cb098387d809922fa6fbfafffbca28964 (patch) | |
| tree | 802c7786b48e739c3e7a18cddfa80f3153b40230 /bsp | |
| parent | ca851b3668f6379333d228ead885d35f456d8a93 (diff) | |
| parent | 05d15b11629244dd54bb2ce1610c73343288bc57 (diff) | |
Merge pull request #5371 from mysterywolf/common
[stm32][drv_common] add LOG_E for Error_Handler
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_common.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_common.c b/bsp/stm32/libraries/HAL_Drivers/drv_common.c index 87707d68ea..5ff50e5f40 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_common.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_common.c @@ -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) { } |
