Merge branch 'lwip' of https://gitlink.org.cn/tuyuyang/xiuos into 2023_open_source_contest

This commit is contained in:
huang
2023-07-17 13:43:19 +08:00
34 changed files with 2872 additions and 1023 deletions
@@ -32,9 +32,9 @@ int32_t transport_sendPacketBuffer( uint8_t* buf, int32_t buflen)
int transport_getdata(unsigned char* buf, int count)
{
int32_t rc;
//
rc = recv(mysock, buf, count, 0);
lw_print("get data : %d\n",rc);
lw_print("get data : %lx\n",rc);
return rc;
}
@@ -142,18 +142,22 @@
#endif
#ifdef LWIP_DEBUG
#define LWIP_DEBUGF(debug, message) do { \
#define LWIP_DEBUGF(debug_flag, message) do { \
if ( \
((debug) & LWIP_DBG_ON) && \
((debug) & LWIP_DBG_TYPES_ON) && \
((s16_t)((debug) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \
((debug_flag) & LWIP_DBG_ON) && \
((debug_flag) & LWIP_DBG_TYPES_ON) && \
(debug_flag)) { \
LWIP_PLATFORM_DIAG(message); \
if ((debug) & LWIP_DBG_HALT) { \
if ((debug_flag) & LWIP_DBG_HALT) { \
while(1); \
} \
} \
} while(0)
// ((s16_t)((debug_flag) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \
// #define LWIP_DEBUGF(debug, message) do { \
// LWIP_PLATFORM_DIAG(message); \
// } while(0)
#else /* LWIP_DEBUG */
#define LWIP_DEBUGF(debug, message)
#endif /* LWIP_DEBUG */