From d94a57c919ec834b5e97b43df5eb80f77cecd28f Mon Sep 17 00:00:00 2001 From: Wang_Weigen Date: Tue, 26 Jul 2022 14:22:01 +0800 Subject: [PATCH] remove critical area operation in shell task to aviod system lag at xidatong-arm board --- Ubiquitous/XiZi/tool/shell/letter-shell/shell.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Ubiquitous/XiZi/tool/shell/letter-shell/shell.c b/Ubiquitous/XiZi/tool/shell/letter-shell/shell.c index 201178a12..b438110d1 100644 --- a/Ubiquitous/XiZi/tool/shell/letter-shell/shell.c +++ b/Ubiquitous/XiZi/tool/shell/letter-shell/shell.c @@ -1649,15 +1649,12 @@ void shellTask(void *param) if (shell->read) { memset(data, 0, KEY_LENGTH); data_len = 0; - x_base lock; data_len = shell->read(data); if(data_len > 0) { - int lock = CriticalAreaLock(); for (i = 0; i < data_len; i++) { shellHandler(shell, data[i]); } - CriticalAreaUnLock(lock); } } }