Browse Source

Try to handle syshalt.

Vladimir N. Shilov 2 năm trước cách đây
mục cha
commit
5021507ee3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      cfg/chconf.h

+ 1 - 0
cfg/chconf.h

@@ -810,6 +810,7 @@
  */
 #define CH_CFG_SYSTEM_HALT_HOOK(reason) {                                   \
   /* System halt code here.*/                                               \
+  while (*reason) { USART_DR_DR = *reason; reason ++; } \
 }
 
 /**