Are you blogging on PH? Get your free blog.

View SRC\COM.H

BOBOLI THE MIGHTY KNIGHT Networked Medieval Conflict

Submitted By: Unknown
Rating: starstarstar (Rate It)


/*
   COM port library header
 */


#ifndef _com_gogo_
#define _com_gogo_

#include "mgraph.h"

extern byte data_rcvd;

/* flags for initializing rs232 port */
#define BITS_8      0x03
#define BITS_7      0x02
#define STOP_1      0x00
#define STOP_2      0x04
#define EVEN_PARITY 0x18
#define ODD_PARITY  0x08
#define NO_PARITY   0x00

#define baud_rate 9600

void init_rs232(byte which);
void send_packet(byte packet);
byte recv_packet(void);

#endif
 
corner
© 1996-2008. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.