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:
@@ -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
|
||||
* 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.
|
||||
@@ -1193,7 +1193,7 @@ struct uip_conn {
|
||||
* The uip_conn pointer can be used to access the current TCP
|
||||
* connection.
|
||||
*/
|
||||
extern __xdata struct uip_conn *uip_conn;
|
||||
extern __xdata struct uip_conn * __xdata uip_conn;
|
||||
/* The array containing all uIP connections. */
|
||||
extern __xdata struct uip_conn uip_conns[UIP_CONNS];
|
||||
/**
|
||||
@@ -1226,7 +1226,7 @@ struct uip_udp_conn {
|
||||
/**
|
||||
* 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];
|
||||
#endif /* UIP_UDP */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user