This program implements a slave SPI in software for testing the SPI interface of protocoltool.
Fork of 8255_emulator by
Diff: main.cpp
- Revision:
- 2:0cc974f03339
- Parent:
- 1:51bc46468482
- Child:
- 3:422d80770413
--- 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