SHIELD-Malb41k1/SPI/slave/SPISlave.h
Soundflog 6b39c55d91 Переход на C
Пока не работает
2023-04-27 15:33:58 +03:00

23 lines
314 B
C

#ifndef SPISlave_H
#define SPISlave_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_SlaveInit(void);
char CRC8(char *data, int length);
char checkArray(char *arr, int size);
#ifdef __cplusplus
}
#endif
#endif