Explorar o código

Try to handle syshalt.

Vladimir N. Shilov %!s(int64=2) %!d(string=hai) anos
pai
achega
5021507ee3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 ++; } \
 }
 
 /**