2019-03-25 09:57:38 +01:00
|
|
|
#ifndef SPI_MASTER_H
|
|
|
|
#define SPI_MASTER_H
|
2019-03-22 15:51:52 +01:00
|
|
|
|
|
|
|
#include <util/delay.h>
|
2019-03-25 09:57:38 +01:00
|
|
|
#include "pio.h"
|
|
|
|
|
|
|
|
#define MOSI B5
|
|
|
|
#define MISO B6
|
|
|
|
#define SCLK B7
|
2019-03-22 15:51:52 +01:00
|
|
|
|
|
|
|
class SPI {
|
2019-03-22 16:06:59 +01:00
|
|
|
public:
|
2019-03-25 09:57:38 +01:00
|
|
|
SPI(void);
|
|
|
|
void init(void) const;
|
2019-03-22 15:51:52 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|