Thomas Morris / Mbed OS PROJ324_Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SPI.hpp Source File

SPI.hpp

00001 #ifndef SPI_HPP//Header Guards Prevents Multiple includes
00002 #define SPI_HPP
00003 
00004 #include "mbed.h"
00005 #include "LED_LOGGING.hpp"
00006 #include "SERIAL.hpp"
00007 #include "COLOURS.hpp"
00008 
00009     /*
00010     MOSI = Blue
00011     MISO = White
00012     SCLK = Yellow
00013     Slave Select = Green
00014     
00015     */
00016     
00017 static SPI spi(PC_12,PC_11,PC_10); // mosi, miso, sclk
00018 static DigitalOut cs(PD_2); //Slave select
00019 void SPI_INIT();
00020 void SPI_INTERFACE_SERIAL();
00021 
00022 #endif