Root/atusb/fw2/spi.h

Source at commit ec21e4ba4756379934fc24635438040f66d2ab7c created 8 years 9 months ago.
By Werner Almesberger, atusb/fw2: support device -> host side of the ATUSB EP0 protocol
1#ifndef SPI_H
2#define SPI_H
3
4#include <stdint.h>
5
6
7void spi_begin(void);
8uint8_t spi_io(uint8_t v);
9void spi_end(void);
10void spi_init(void);
11
12#define spi_send(v) (void) spi_io(v)
13#define spi_recv(v) spi_io(0)
14
15#endif /* !SPI_H */
16

Archive Download this file



interactive