i237/lib/matejx_avr_lib/spi.h

14 lines
194 B
C
Raw Normal View History

#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