소스 검색

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 ++; } \
 }
 
 /**