22 lines
327 B
C
22 lines
327 B
C
#ifndef SPIMaster_h
|
|
#define SPIMaster_h
|
|
|
|
#define DDR_SPI DDRB
|
|
#define DD_MOSI PB3
|
|
#define DD_MISO PB4
|
|
#define DD_SCK PB5
|
|
#define DD_SS PB2
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void SPI_MasterInit(void);
|
|
void SPI_MasterTransmit(char *data, int length);
|
|
char CRC8(char *data, int length);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |