From: 孙春阳 Date: Tue, 14 Oct 2025 07:22:33 +0000 (+0800) Subject: 优化ppp中断处理 X-Git-Tag: V1.0.9_20251128_194606_LN~250^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=538d87e104130c49892125bce932b23de91de417;p=mirrors%2FFD230.git 优化ppp中断处理 --- diff --git a/code/sdk/zhihui/ppp/src/ppp_interrupt.c b/code/sdk/zhihui/ppp/src/ppp_interrupt.c index 75df7cd90..b09a3b064 100644 --- a/code/sdk/zhihui/ppp/src/ppp_interrupt.c +++ b/code/sdk/zhihui/ppp/src/ppp_interrupt.c @@ -36,12 +36,12 @@ #define PPP_PING_PONG_BUFFER_SIZE 2048 // 每个buffer大小(2KB) #endif -#define PPP_PING_PONG_BUFFER_COUNT 3 // 三缓冲模式(改为3个) -#define PPP_PING_PONG_TIMEOUT_MS 30 // buffer超时时间(30ms) +#define PPP_PING_PONG_BUFFER_COUNT 4 // 三缓冲模式(改为3个) +#define PPP_PING_PONG_TIMEOUT_MS 50 // buffer超时时间(30ms) /* PPP中断消息队列配置 */ #define PPP_IRQ_MSG_QUEUE_SIZE 16 // 队列深度(乒乓模式下无需太大) -#define PPP_IRQ_PROCESS_TASK_PRIO 24 // 处理线程优先级 +#define PPP_IRQ_PROCESS_TASK_PRIO 28 // 处理线程优先级 #define PPP_IRQ_PROCESS_STACK_SIZE 4096 // 处理线程栈大小 /* 乒乓缓冲区状态 */