AN2120: Connecting an M68HC08 Family Microcontroller to an ...
AN2120: Connecting an M68HC08 Family Microcontroller to an ...
AN2120: Connecting an M68HC08 Family Microcontroller to an ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
}<br />
<strong>AN2120</strong><br />
}<br />
case ICMP:<br />
IcmpH<strong>an</strong>dler ((IPDatagram *)ip_in);<br />
break;<br />
Application Note<br />
Code Implementation<br />
default:<br />
break;<br />
}<br />
}<br />
SLIPStatus &= ~IsFrame; /* Acknowledge datagram processing */<br />
SLIPStatus |= ReSync; /* Synchronize packet reception */<br />
PPP.C<br />
Point-<strong>to</strong>-Point Pro<strong>to</strong>col Implementation<br />
/*/////////////////////////////////////////////////////////////////////////////<br />
File Name : PPP.C<br />
Author : Rene Trenado<br />
Location : Mo<strong>to</strong>rola Applications Lab, Baja California<br />
Date Created : September 2000<br />
Current Revision : 0.0<br />
Notes : This file contains the code for the PPP module<br />
/////////////////////////////////////////////////////////////////////////////*/<br />
#include <br />
#include <br />
#include "CommDrv.h"<br />
#include "ppp.h"<br />
#include "IP.h"<br />
#include "Udp.h"<br />
#include "ICMP.h"<br />
const char * User = "MyName"; // Username of ISP account<br />
const char * Password = "MyPassword"; // Password of username<br />
/************************* Private Functions *************************/<br />
static void H<strong>an</strong>dleLCPOptions (void);<br />
static void H<strong>an</strong>dleIPCPOptions (void);<br />
static WORD PPPfcs16 (WORD fcs, BYTE *cp, int len);<br />
static void RejectPro<strong>to</strong>col (BYTE *InBuffer);<br />
MOTOROLA 59