test
This commit is contained in:
+181
-180
File diff suppressed because one or more lines are too long
@@ -1,15 +1,3 @@
|
|||||||
cd /d %~dp0
|
|
||||||
|
|
||||||
set dirname=%1
|
|
||||||
set dirname=%dirname:~0,-4%
|
|
||||||
|
|
||||||
if not exist bakup md bakup
|
|
||||||
if not exist bakup\%dirname% md bakup\%dirname%
|
|
||||||
|
|
||||||
copy .\Obj\*.elf bakup\%dirname%\
|
|
||||||
copy .\Lst\*.map bakup\%dirname%\
|
|
||||||
copy makedis.bat bakup\%dirname%\
|
|
||||||
|
|
||||||
del /q/f loader.bin
|
del /q/f loader.bin
|
||||||
del /q/f code512.bin
|
del /q/f code512.bin
|
||||||
del /q/f param.bin
|
del /q/f param.bin
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -167,18 +167,18 @@ extern void hw_memcpy(void *dest, const void *src, unsigned int size);
|
|||||||
// One tcp_pcb_listen is needed for each TCPServer.
|
// One tcp_pcb_listen is needed for each TCPServer.
|
||||||
// Each requires 72 bytes of RAM.
|
// Each requires 72 bytes of RAM.
|
||||||
#ifndef MEMP_NUM_TCP_PCB_LISTEN
|
#ifndef MEMP_NUM_TCP_PCB_LISTEN
|
||||||
#define MEMP_NUM_TCP_PCB_LISTEN 4
|
#define MEMP_NUM_TCP_PCB_LISTEN 6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// One is tcp_pcb needed for each TCPSocket.
|
// One is tcp_pcb needed for each TCPSocket.
|
||||||
// Each requires 196 bytes of RAM.
|
// Each requires 196 bytes of RAM.
|
||||||
#ifndef MEMP_NUM_TCP_PCB
|
#ifndef MEMP_NUM_TCP_PCB
|
||||||
#define MEMP_NUM_TCP_PCB 12
|
#define MEMP_NUM_TCP_PCB 20
|
||||||
#endif
|
#endif
|
||||||
// One udp_pcb is needed for each UDPSocket.
|
// One udp_pcb is needed for each UDPSocket.
|
||||||
// Each requires 84 bytes of RAM (total rounded to multiple of 512).
|
// Each requires 84 bytes of RAM (total rounded to multiple of 512).
|
||||||
#ifndef MEMP_NUM_UDP_PCB
|
#ifndef MEMP_NUM_UDP_PCB
|
||||||
#define MEMP_NUM_UDP_PCB 8
|
#define MEMP_NUM_UDP_PCB 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Number of non-pool pbufs.
|
// Number of non-pool pbufs.
|
||||||
@@ -296,7 +296,7 @@ extern void hw_memcpy(void *dest, const void *src, unsigned int size);
|
|||||||
// One netconn is needed for each UDPSocket, TCPSocket or TCPServer.
|
// One netconn is needed for each UDPSocket, TCPSocket or TCPServer.
|
||||||
// Each requires 236 bytes of RAM (total rounded to multiple of 512).
|
// Each requires 236 bytes of RAM (total rounded to multiple of 512).
|
||||||
#ifndef MEMP_NUM_NETCONN
|
#ifndef MEMP_NUM_NETCONN
|
||||||
#define MEMP_NUM_NETCONN 12
|
#define MEMP_NUM_NETCONN 20
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ extern "C" {
|
|||||||
#define os_strncpy(d,s,n) strncpy((char *)(d), (const char *)(s), n)
|
#define os_strncpy(d,s,n) strncpy((char *)(d), (const char *)(s), n)
|
||||||
#define os_memset(s,c,n) memset((void *)(s), c, n)
|
#define os_memset(s,c,n) memset((void *)(s), c, n)
|
||||||
//#define os_memcpy(d,s,n) memcpy((void *)(d), (const void *)(s), n)
|
//#define os_memcpy(d,s,n) memcpy((void *)(d), (const void *)(s), n)
|
||||||
#define MEMCPY memcpy
|
#define MEMCPYS memcpy
|
||||||
#define os_memcpy(d, s, n) MEMCPY((d), (s), (n))
|
#define os_memcpy(d, s, n) MEMCPYS((d), (s), (n))
|
||||||
//#define os_memcpy memcpy
|
//#define os_memcpy memcpy
|
||||||
#define os_memmove(d,s,n) memmove((void *)(d), (const void *)(s), n)
|
#define os_memmove(d,s,n) memmove((void *)(d), (const void *)(s), n)
|
||||||
#define os_sprintf(s, ...) sprintf((char *)(s), __VA_ARGS__)
|
#define os_sprintf(s, ...) sprintf((char *)(s), __VA_ARGS__)
|
||||||
|
|||||||
@@ -588,6 +588,25 @@ free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_last
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int LWIP_GetMaxSockets()
|
||||||
|
{
|
||||||
|
return NUM_SOCKETS;
|
||||||
|
}
|
||||||
|
|
||||||
|
int LWIP_GetActiveSockets()
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int r = 0;
|
||||||
|
for(i = 0; i < NUM_SOCKETS; ++i)
|
||||||
|
{
|
||||||
|
if(sockets[i].conn)
|
||||||
|
{
|
||||||
|
r++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
/** Free a socket. The socket's netconn must have been
|
/** Free a socket. The socket's netconn must have been
|
||||||
* delete before!
|
* delete before!
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user