14 lines
194 B
C
14 lines
194 B
C
|
#ifndef MAT_SPI_H
|
||
|
#define MAT_SPI_H
|
||
|
|
||
|
#include <inttypes.h>
|
||
|
#include <avr/io.h>
|
||
|
|
||
|
// init SPI
|
||
|
void spi_init(uint8_t fdiv);
|
||
|
|
||
|
// send a byte over SPI
|
||
|
uint8_t spi_rw(uint8_t d);
|
||
|
|
||
|
#endif
|