AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 23

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
address.c
Before coding the web server application code, it is recommended that the basic MC9S12NE64 hardware
and software options are configured. These configuration options include:
Although most of the options are controlled by ne64config.h , address.c provides an interface to configure
the web server MAC address and IP address with the hard_addr and prot_addr variables, respectively.
(See the code excerpt below.)
address.c:
/******************************************************************************
#include "MOTTYPES.h"
const tU08 hard_addr [6] = { 0x01, 0x23, 0x45, 0x56, 0x78, 0x9a };
const tU08 prot_addr [4] = { 192, 168,
const tU08 netw_mask [4] = { 255, 255, 255,
const tU08 dfgw_addr [4] = { 192, 168,
const tU08 brcs_addr [4] = { 192, 168,
Freescale Semiconductor
*
*
*
* File Name
*
* Description
*
*
* Version : 2.1
* Date
*
******************************************************************************/
MAC hardware address
IP address
Auto-negotiation
EMAC options
EPHY options
Ethernet buffer size
: 02/04/04
: address.c
: This file contains definition of hardware and protocol (IP)
addresses of the device
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
(c) Freescale
Inc. 2004 All rights reserved
Overview of a Web Server Developed Using OpenTCP TCP/IP Stack
2,
2,
2, 255 };
3 };
0 };
1 };
23

Related parts for AN2836