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

This commit is contained in:
moebius.ever 2018-03-15 10:50:00 +08:00
parent 5444c90ecf
commit 336c946b84
1 changed files with 4 additions and 0 deletions

View File

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