![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
SPI.hpp@53:71f59e195f06, 2018-05-07 (annotated)
- Committer:
- thomasmorris
- Date:
- Mon May 07 15:44:34 2018 +0000
- Revision:
- 53:71f59e195f06
- Child:
- 56:bc5345bc6650
To test version of code;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 53:71f59e195f06 | 1 | #include "mbed.h" |
thomasmorris | 53:71f59e195f06 | 2 | |
thomasmorris | 53:71f59e195f06 | 3 | /* |
thomasmorris | 53:71f59e195f06 | 4 | MOSI = Blue |
thomasmorris | 53:71f59e195f06 | 5 | MISO = White |
thomasmorris | 53:71f59e195f06 | 6 | SCLK = Yellow |
thomasmorris | 53:71f59e195f06 | 7 | Slave Select = Green |
thomasmorris | 53:71f59e195f06 | 8 | |
thomasmorris | 53:71f59e195f06 | 9 | */ |
thomasmorris | 53:71f59e195f06 | 10 | |
thomasmorris | 53:71f59e195f06 | 11 | static SPI spi(PC_12,PC_11,PC_10); // mosi, miso, sclk |
thomasmorris | 53:71f59e195f06 | 12 | static DigitalOut cs(PD_2); //Slave select |
thomasmorris | 53:71f59e195f06 | 13 | void SPI_INIT(); |