From e38c4b0365b495f19cf3079f4e6d2fdf27539b7c Mon Sep 17 00:00:00 2001 From: liuzhifu Date: Fri, 9 Sep 2016 14:31:10 +0800 Subject: [PATCH] modify esp32_tx_flow_ctrl to static function and move extern api to header file --- components/lwip/api/sockets.c | 6 +++--- components/lwip/include/lwip/port/arch/sys_arch.h | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/lwip/api/sockets.c b/components/lwip/api/sockets.c index 4123712c15..851915877d 100755 --- a/components/lwip/api/sockets.c +++ b/components/lwip/api/sockets.c @@ -388,9 +388,9 @@ static void lwip_socket_drop_registered_memberships(int s); #endif /* LWIP_IGMP */ #ifdef LWIP_ESP8266 -extern size_t system_get_free_heap_size(void); -extern bool esp_wifi_tx_is_stop(void); -inline void esp32_tx_flow_ctrl(void) +//extern size_t system_get_free_heap_size(void); +//extern bool esp_wifi_tx_is_stop(void); +static inline void esp32_tx_flow_ctrl(void) { uint8_t _wait_delay = 0; diff --git a/components/lwip/include/lwip/port/arch/sys_arch.h b/components/lwip/include/lwip/port/arch/sys_arch.h index 945b4e170a..3895f23b3b 100644 --- a/components/lwip/include/lwip/port/arch/sys_arch.h +++ b/components/lwip/include/lwip/port/arch/sys_arch.h @@ -69,6 +69,8 @@ sys_sem_t* sys_thread_sem_init(void); void sys_thread_sem_deinit(void); sys_sem_t* sys_thread_sem_get(void); - +size_t system_get_free_heap_size(void); +bool esp_wifi_tx_is_stop(void); + #endif /* __SYS_ARCH_H__ */