Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

SPI.hpp

Committer:
thomasmorris
Date:
2018-08-15
Revision:
57:aba1296e51b1
Parent:
56:bc5345bc6650

File content as of revision 57:aba1296e51b1:

#ifndef SPI_HPP//Header Guards Prevents Multiple includes
#define SPI_HPP

#include "mbed.h"
#include "LED_LOGGING.hpp"
#include "SERIAL.hpp"
#include "COLOURS.hpp"

    /*
    MOSI = Blue
    MISO = White
    SCLK = Yellow
    Slave Select = Green
    
    */
    
static SPI spi(PC_12,PC_11,PC_10); // mosi, miso, sclk
static DigitalOut cs(PD_2); //Slave select
void SPI_INIT();
void SPI_INTERFACE_SERIAL();

#endif