24 lines
320 B
C
24 lines
320 B
C
#ifndef aSPISlave_h
|
|
#define aSPISlave_h
|
|
|
|
#define DDR_SPI DDRB
|
|
#define DD_MOSI PB3
|
|
#define DD_MISO PB4
|
|
#define DD_SCK PB5
|
|
#define DD_SS PB2
|
|
|
|
extern int index;
|
|
extern char data[];
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void SPI_SlaveInit(void);
|
|
char CRC8(char *data, int length);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |