Ver código fonte

change: air640w中断后,打印日志并重启

Wendal Chen 4 anos atrás
pai
commit
84143b0912
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      bsp/air640w/rtt/applications/luat_init_w60x.c

+ 3 - 1
bsp/air640w/rtt/applications/luat_init_w60x.c

@@ -48,7 +48,9 @@ static struct rt_wlan_cfg_ops cfg_ops = {
 #endif
 
 static rt_err_t w600_bt(void *context) {
-  rt_kprintf("\r\nFUCK!!\r\n");
+  rt_kprintf("\r\nwatchdog irq!!!!\r\n");
+  extern void tls_sys_reset(void);
+  tls_sys_reset();
   return 0;
 } 
 static int rtt_w60x_init() {