This is an involuntary fork, created because the repository would not update mmSPI. SPI library used to communicate with an altera development board attached to four zigbee-header pins.

Dependents:   Embedded_RTOS_Project

Fork of mmSPI by Mike Moore

Committer:
gatedClock
Date:
Wed Aug 14 10:09:58 2013 +0000
Revision:
1:15706d15d123
Parent:
0:fb42c5acf810
Child:
2:bebcf53b72dc
toward spi byte transceive.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gatedClock 0:fb42c5acf810 1 /*----------------------------------------------//------------------------------
gatedClock 0:fb42c5acf810 2 student : m-moore
gatedClock 0:fb42c5acf810 3 class : external SPI interface
gatedClock 0:fb42c5acf810 4 directory : mmSPI
gatedClock 0:fb42c5acf810 5 file : mmSPI.h
gatedClock 1:15706d15d123 6 ----description---------------------------------//------------------------------
gatedClock 1:15706d15d123 7 ----notes---------------------------------------//------------------------------
gatedClock 1:15706d15d123 8 1. the SPI interface pins are routed to the zigbee header.
gatedClock 0:fb42c5acf810 9 ------------------------------------------------//----------------------------*/
gatedClock 0:fb42c5acf810 10 #include "mbed.h" // standard mbed.org class.
gatedClock 1:15706d15d123 11 //---defines------------------------------------//------------------------------
gatedClock 1:15706d15d123 12 #define MOSI p9 // SPI interface pin.
gatedClock 1:15706d15d123 13 #define MISO p10 // SPI interface pin.
gatedClock 1:15706d15d123 14 #define SCLK p30 // SPI interface pin.
gatedClock 0:fb42c5acf810 15 /*----------------------------------------------//------------------------------
gatedClock 0:fb42c5acf810 16 ------------------------------------------------//----------------------------*/
gatedClock 0:fb42c5acf810 17 //==============================================//==============================
gatedClock 0:fb42c5acf810 18 class mmSPI
gatedClock 0:fb42c5acf810 19 {
gatedClock 0:fb42c5acf810 20 public:
gatedClock 0:fb42c5acf810 21 mmSPI(); // constructor.
gatedClock 0:fb42c5acf810 22 ~mmSPI(); // destructor.
gatedClock 1:15706d15d123 23 char transceive_byte(char); // byte transceive.
gatedClock 0:fb42c5acf810 24 private:
gatedClock 0:fb42c5acf810 25 };
gatedClock 0:fb42c5acf810 26 //----------------------------------------------//------------------------------