#include #include #include #include unsigned char rxstate=RXIDLE; unsigned int received=0; BYTE rxbuff[RXMAXLEN]; /* #pragma locate rxbuffer 0x300; Locates the array in 3rd RAM page */ BYTE txbuffer[TXMAXLEN]; /* #pragma locate txbuffer 0x400; */ extern WORD rxpos; extern WORD txpos; ipstats ipstat; /****************************************************************************** * Sends a packet of length "len", starting at location "p" * assumes the entire packet is stored in data memory * This function is an addaptation of the send_packet() function given * as an example in the SLIP RFC - 1055 *****************************************************************************/ void slip_send(char *p, WORD len) { /* toggle activity LED */ LEDPORT^=(1<>8); txbuffer[txpos++] = (BYTE)sword; }