mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-23 10:29:07 +00:00
Made unnecessary symbols static.
This commit is contained in:
parent
1e6ac84151
commit
f553789fea
@ -27,7 +27,7 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: uip_arch.c,v 1.1 2007/09/01 11:14:52 matsutsuka Exp $
|
* $Id: uip_arch.c,v 1.2 2007/09/29 03:57:39 matsutsuka Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
@ -41,9 +41,9 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "uip_arch.h"
|
#include "uip_arch.h"
|
||||||
|
|
||||||
const u16_t SIZEOF_UIP_IPADDR_T = sizeof(uip_ipaddr_t);
|
static const u16_t sizeof_uip_ipaddr_t = sizeof(uip_ipaddr_t);
|
||||||
const u16_t OFFSET_TCPIP_HDR_LEN = offsetof(struct uip_tcpip_hdr, len);
|
static const u16_t offset_tcpip_hdr_len = offsetof(struct uip_tcpip_hdr, len);
|
||||||
const u16_t OFFSET_TCPIP_HDR_SRCIPADDR = offsetof(struct uip_tcpip_hdr, srcipaddr);
|
static const u16_t offset_tcpip_hdr_srcipaddr = offsetof(struct uip_tcpip_hdr, srcipaddr);
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
static void upper_layer_chksum() {
|
static void upper_layer_chksum() {
|
||||||
@ -62,7 +62,7 @@ __asm
|
|||||||
|
|
||||||
;; HL = BUF->len[0]
|
;; HL = BUF->len[0]
|
||||||
push ix
|
push ix
|
||||||
ld ix, #_OFFSET_TCPIP_HDR_LEN
|
ld ix, #_offset_tcpip_hdr_len
|
||||||
ld e, 0(ix)
|
ld e, 0(ix)
|
||||||
ld d, 1(ix)
|
ld d, 1(ix)
|
||||||
add hl, de
|
add hl, de
|
||||||
@ -92,13 +92,13 @@ _upper_layer_chksum_setlen3:
|
|||||||
pop hl ; BUF
|
pop hl ; BUF
|
||||||
push de
|
push de
|
||||||
push ix
|
push ix
|
||||||
ld ix, #_OFFSET_TCPIP_HDR_SRCIPADDR
|
ld ix, #_offset_tcpip_hdr_srcipaddr
|
||||||
ld e, 0(ix)
|
ld e, 0(ix)
|
||||||
ld d, 1(ix)
|
ld d, 1(ix)
|
||||||
add hl, de
|
add hl, de
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld ix, #_SIZEOF_UIP_IPADDR_T
|
ld ix, #_sizeof_uip_ipaddr_t
|
||||||
ld l, 0(ix)
|
ld l, 0(ix)
|
||||||
ld h, 1(ix)
|
ld h, 1(ix)
|
||||||
pop ix
|
pop ix
|
||||||
|
Loading…
Reference in New Issue
Block a user