1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-30 13:16:05 +02:00
ben-wpan/atusb/fw3/spi.h

16 lines
230 B
C
Raw Normal View History

#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 */