소스 검색

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

Wendal Chen 4 년 전
부모
커밋
84143b0912
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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() {