This is a program for testing the 8255 interface on protocoltool. It implements a software emulation of the bidirectional mode 2 of a 8255 chip.
Fork of parallel_port_tester by
Revision 2:0cc974f03339, committed 2013-10-27
- Comitter:
- jpelletier
- Date:
- Sun Oct 27 04:39:17 2013 +0000
- Parent:
- 1:51bc46468482
- Commit message:
- Initial commit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 51bc46468482 -r 0cc974f03339 main.cpp --- a/main.cpp Sun Oct 27 04:32:14 2013 +0000 +++ b/main.cpp Sun Oct 27 04:39:17 2013 +0000 @@ -6,22 +6,11 @@ #include <string.h> /* -#define PAR_NEGOTIATE_EXTENSIBILITY_LINK 0x80 -#define PAR_NEGOTIATE_REQ_EPP_MODE 0x40 -#define PAR_NEGOTIATE_REQ_ECP_MODE 0x10 -#define PAR_NEGOTIATE_REQ_ECP_RLE_MODE 0x30 -#define PAR_NEGOTIATE_REQ_DEV_ID_NIBBLE_MODE 0x04 -#define PAR_NEGOTIATE_REQ_DEV_ID_BYTE_MODE 0x05 -#define PAR_NEGOTIATE_REQ_DEV_ID_ECP_MODE 0x14 -#define PAR_NEGOTIATE_REQ_DEV_ID_ECP_RLE_MODE 0x34 -#define PAR_NEGOTIATE_NIBBLE_MODE 0x00 -#define PAR_NEGOTIATE_BYTE_MODE 0x01 -*/ - -/* Instructions for use: connect the mbed to a parallel port using these connexions. use a terminal program to connect via USB to the mbed side. */ +/* This is for testing since it uses the serial port at 9600 bauds to connect to a PC */ + #define PAR_INVERT_OBF_SIGNAL #define PAR_8255_SEND_MASK 0x80