mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
uip: place some pointer in xdata.
Saves 2 bytes.
This commit is contained in:
@@ -157,7 +157,7 @@ __xdata u16_t uip_len, uip_slen;
|
|||||||
__xdata u8_t uip_flags; /* The uip_flags variable is used for
|
__xdata u8_t uip_flags; /* The uip_flags variable is used for
|
||||||
communication between the TCP/IP stack
|
communication between the TCP/IP stack
|
||||||
and the application program. */
|
and the application program. */
|
||||||
__xdata struct uip_conn *uip_conn; /* uip_conn always points to the current
|
__xdata struct uip_conn * __xdata uip_conn; /* uip_conn always points to the current
|
||||||
connection. */
|
connection. */
|
||||||
|
|
||||||
__xdata struct uip_conn uip_conns[UIP_CONNS];
|
__xdata struct uip_conn uip_conns[UIP_CONNS];
|
||||||
@@ -167,7 +167,7 @@ __xdata u16_t uip_listenports[UIP_LISTENPORTS];
|
|||||||
/* The uip_listenports list all currently
|
/* The uip_listenports list all currently
|
||||||
listning ports. */
|
listning ports. */
|
||||||
#if UIP_UDP
|
#if UIP_UDP
|
||||||
__xdata struct uip_udp_conn *uip_udp_conn;
|
__xdata struct uip_udp_conn * __xdata uip_udp_conn;
|
||||||
__xdata struct uip_udp_conn uip_udp_conns[UIP_UDP_CONNS];
|
__xdata struct uip_udp_conn uip_udp_conns[UIP_UDP_CONNS];
|
||||||
#endif /* UIP_UDP */
|
#endif /* UIP_UDP */
|
||||||
|
|
||||||
@@ -466,7 +466,7 @@ uip_connect(register __xdata uip_ipaddr_t *ripaddr, __xdata u16_t rport) __banke
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if UIP_UDP
|
#if UIP_UDP
|
||||||
__xdata struct uip_udp_conn *
|
__xdata struct uip_udp_conn *
|
||||||
uip_udp_new(__xdata uip_ipaddr_t *ripaddr, __xdata u16_t rport) __banked
|
uip_udp_new(__xdata uip_ipaddr_t * __xdata ripaddr, __xdata u16_t rport) __banked
|
||||||
{
|
{
|
||||||
__xdata struct uip_udp_conn *conn;
|
__xdata struct uip_udp_conn *conn;
|
||||||
|
|
||||||
|
|||||||
@@ -763,7 +763,7 @@ void uip_send(__xdata const void *data, __xdata uint16_t len) __banked;
|
|||||||
* \return The uip_udp_conn structure for the new connection or NULL
|
* \return The uip_udp_conn structure for the new connection or NULL
|
||||||
* if no connection could be allocated.
|
* if no connection could be allocated.
|
||||||
*/
|
*/
|
||||||
__xdata struct uip_udp_conn *uip_udp_new(__xdata uip_ipaddr_t *ripaddr, __xdata u16_t rport) __banked;
|
__xdata struct uip_udp_conn *uip_udp_new(__xdata uip_ipaddr_t * __xdata ripaddr, __xdata u16_t rport) __banked;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removed a UDP connection.
|
* Removed a UDP connection.
|
||||||
@@ -1193,7 +1193,7 @@ struct uip_conn {
|
|||||||
* The uip_conn pointer can be used to access the current TCP
|
* The uip_conn pointer can be used to access the current TCP
|
||||||
* connection.
|
* connection.
|
||||||
*/
|
*/
|
||||||
extern __xdata struct uip_conn *uip_conn;
|
extern __xdata struct uip_conn * __xdata uip_conn;
|
||||||
/* The array containing all uIP connections. */
|
/* The array containing all uIP connections. */
|
||||||
extern __xdata struct uip_conn uip_conns[UIP_CONNS];
|
extern __xdata struct uip_conn uip_conns[UIP_CONNS];
|
||||||
/**
|
/**
|
||||||
@@ -1226,7 +1226,7 @@ struct uip_udp_conn {
|
|||||||
/**
|
/**
|
||||||
* The current UDP connection.
|
* The current UDP connection.
|
||||||
*/
|
*/
|
||||||
extern __xdata struct uip_udp_conn *uip_udp_conn;
|
extern __xdata struct uip_udp_conn * __xdata uip_udp_conn;
|
||||||
extern __xdata struct uip_udp_conn uip_udp_conns[UIP_UDP_CONNS];
|
extern __xdata struct uip_udp_conn uip_udp_conns[UIP_UDP_CONNS];
|
||||||
#endif /* UIP_UDP */
|
#endif /* UIP_UDP */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user