瀏覽代碼

Try to handle syshalt.

Vladimir N. Shilov 2 年之前
父節點
當前提交
5021507ee3
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 ++; } \
 }
 
 /**