diff --git a/components/net/lwip-2.1/porting/src/api_shell.c b/components/net/lwip-2.1/porting/src/api_shell.c index e6aca2ad50172ad0c5a627369c2ea361f1e6fb7d..4337912d271b97d21618fdc1558c5ecd38dbe66a 100644 --- a/components/net/lwip-2.1/porting/src/api_shell.c +++ b/components/net/lwip-2.1/porting/src/api_shell.c @@ -79,7 +79,7 @@ struct ifconfig_option { unsigned char ethaddr[6]; u16_t mtu; /* when using telnet, print to the telnet socket will result in system */ - /* deadlock. So we cahe the prinf data to a buf, and when the tcpip */ + /* deadlock. So we cache the prinf data to a buf, and when the tcpip */ /* callback returns, then print the data out to the telnet socket */ sys_sem_t cb_completed; char cb_print_buf[PRINT_BUF_LEN]; @@ -319,7 +319,7 @@ LWIP_STATIC int OsPingFunc(u32_t *parg) u32_t succ_cnt = 0; u32_t failed_cnt = 0; struct timespec start, end; - long timout_ms; + long timeout_ms; struct pollfd pfd; long rtt; int ret = 0; @@ -431,17 +431,17 @@ LWIP_STATIC int OsPingFunc(u32_t *parg) ((ICMPH_TYPE(iecho_resp) == ICMP_ECHO) && (iphdr_resp->src.addr == to.sin_addr.s_addr))) { /* second type timeout event */ (void)clock_gettime(CLOCK_MONOTONIC_RAW, &end); - timout_ms = ((end.tv_sec - start.tv_sec) * OS_SYS_MS_PER_SECOND + \ + timeout_ms = ((end.tv_sec - start.tv_sec) * OS_SYS_MS_PER_SECOND + \ (end.tv_nsec - start.tv_nsec) / OS_SYS_NS_PER_MS); - timout_ms = LWIP_SHELL_CMD_PING_TIMEOUT - timout_ms; + timeout_ms = LWIP_SHELL_CMD_PING_TIMEOUT - timeout_ms; } else { - timout_ms = 0; + timeout_ms = 0; break; } - } while (timout_ms >= 0); + } while (timeout_ms >= 0); /* all timeout events are true timeout */ - if ((timout_ms < 0) || (timeout_flag == TRUE)) { + if ((timeout_ms < 0) || (timeout_flag == TRUE)) { failed_cnt++; i++; PRINTK("\nPing: destination unreachable ..."); diff --git a/kernel/include/los_config.h b/kernel/include/los_config.h index fe4187200d365b9e02c61755a49cfd9fb93b54c6..db3a5170f9169206e80827ef33760f8217068829 100644 --- a/kernel/include/los_config.h +++ b/kernel/include/los_config.h @@ -679,6 +679,14 @@ extern UINT8 *m_aucSysMem0; #define LOSCFG_KERNEL_PM_IDLE 0 #endif +/** + * @ingroup los_config + * Configuration item to set shell stack size. + */ +#ifndef LOSCFG_SHELL_STACK_SIZE +#define LOSCFG_SHELL_STACK_SIZE 0x1000 +#endif + #ifdef __cplusplus #if __cplusplus }