瀏覽代碼

[finsh] add FINSH_ENABLE_ECHO macro to config the finsh needs echo or not and fix the bsp compile error

moebius.ever 7 年之前
父節點
當前提交
336c946b84
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      components/finsh/shell.h

+ 4 - 0
components/finsh/shell.h

@@ -57,6 +57,10 @@ const char* finsh_get_prompt(void);
     #endif
 #endif
 
+#ifndef FINSH_ENABLE_ECHO
+#define FINSH_ENABLE_ECHO 1
+#endif 
+
 #ifdef FINSH_USING_AUTH
     #ifndef FINSH_PASSWORD_MAX
         #define FINSH_PASSWORD_MAX RT_NAME_MAX