AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 34

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Overview of a Web Server Developed Using OpenTCP TCP/IP Stack
after CPU reset by default. */
34
INTCR_IRQEN = 0;
/* Initialize all network layers*/
EtherInit();
//Initialize required network protocols
arp_init();
(void)udp_init();
(void)tcp_init();
init();
demoinit();
ATD_init();
/* Initialize all buffer descriptors */
* if using BOOTP or DHCP this will be a bit different.
*/
/* Set our network information. This is for static configuration.
/* IP address */
/* Default gateway */
localmachine.defgw
/* Subnet mask */
localmachine.netmask = *((UINT32 *)ip_netmask);
/* Ethernet (MAC) address */
localmachine.localHW[0] = hard_addr[0];
localmachine.localHW[1] = hard_addr[1];
localmachine.localHW[2] = hard_addr[2];
localmachine.localHW[3] = hard_addr[3];
localmachine.localHW[4] = hard_addr[4];
localmachine.localHW[5] = hard_addr[5];
/* initialize processor-dependant stuff (I/O ports, timers...).
/* Init system services*/
timer_pool_init();
mBufInit ();
/*interrupts can be enabled AFTER timer pool has been initialized */
udp_demo_init();
(void)https_init ();
//Enable RTI
RTI_Enable ();
* Most important things to do in this function as far as the TCP/IP
* stack concerns:
*
*
*
*
*/
localmachine.localip = *((UINT32 *)ip_address);
- initializing some timer so it executes decrement_timers
- not mess too much with ports allocated for Ethernet controller
on every 10ms (TODO: Throw out this dependency from several files
so that frequency can be adjusted more freely!!!)
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
= *((UINT32 *)ip_gateway);
/* Disable the IRQ interrupt. IRQ interrupt is enabled
Freescale Semiconductor

Related parts for AN2836