projects
/
mirrors
/
7PIN_V1_5_Jl_SDK.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a159c
)
串口定时器发送消息不响应的问题
author
dxy
<1731678236qq.com>
Tue, 16 Sep 2025 03:13:26 +0000
(11:13 +0800)
committer
dxy
<1731678236qq.com>
Tue, 16 Sep 2025 03:13:26 +0000
(11:13 +0800)
2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c
patch
|
blob
|
history
diff --git
a/2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c
b/2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c
index
c936891
..
3355751
100644
(file)
--- a/
2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c
+++ b/
2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c
@@
-325,7
+325,18
@@
void bk_uart_send_task(void *p)
}
printf("BK_UART_WRITE_DATA_ACK2");
break;
-
+ case BK_UART_CLOSE_TIMER ://关闭定时器
+ // printf("定时器id :%d",uart_timer_id);
+ if(uart_timer_id)
+ {
+ printf("定时器该关闭了");
+ sys_timer_del(uart_timer_id);
+ uart_timer_count = 0;
+ uart_data_len = 0;
+ uart_timer_id = 0;
+ }
+ break;
+
default:
break;
}