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.
Application Note<br />
#define IsESC 0x01 // Previous character received was a ESC char<br />
#define ReSync 0x04 // Re Synchronize <strong>to</strong> avoid inconplete IP frame reception<br />
#define IsFrame 0x08 // A full packet<br />
#define ByteRx 0x10 // Receive a Byte<br />
#define LinkOn 0x20 // PPP Link is On<br />
extern BYTE IPAddress[4];<br />
#define PPP_BUFFER_SIZE 88<br />
#define LCP_PACKET 0xC021<br />
#define PAP_PACKET 0xC023<br />
#define CHAP_PACKET 0xC223<br />
#define IPCP_PACKET 0x8021<br />
#define IP_DATAGRAM 0x0021<br />
#endif<br />
SLIP.H<br />
Header File for SLIP Implementation<br />
/*/////////////////////////////////////////////////////////////////////////////<br />
File Name : SLIP.h<br />
Author : Rene Trenado<br />
Location : Mo<strong>to</strong>rola Applications Lab, Baja California<br />
Date Created : June 2000<br />
Current Revision : 0.0<br />
Notes : Definitions for the SLIP implementation<br />
/////////////////////////////////////////////////////////////////////////////*/<br />
#ifndef __SLIP_H<br />
#define __SLIP_H1<br />
#include "Notation.h"<br />
#ifndef NULL<br />
#define NULL 0<br />
#endif<br />
#define SLIP_MAX_SIZE 88<br />
#define SLIP_END 0xC0 //300 octal<br />
#define SLIP_ESC 0xDB //333 octal<br />
#define ESC_END 0xDC //334 octal<br />
<strong>AN2120</strong><br />
92 MOTOROLA