1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 12:21:53 +02:00
ben-wpan/atusb/fw3/spi.h
2011-02-13 23:46:36 -03:00

16 lines
230 B
C

#ifndef SPI_H
#define SPI_H
#include <stdint.h>
void spi_begin(void);
uint8_t spi_io(uint8_t v);
void spi_end(void);
void spi_init(void);
#define spi_send(v) (void) spi_io(v)
#define spi_recv(v) spi_io(0)
#endif /* !SPI_H */