IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
Source at commit ec21e4ba4756379934fc24635438040f66d2ab7c created 9 years 11 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 | |
7 | void spi_begin(void); |
8 | uint8_t spi_io(uint8_t v); |
9 | void spi_end(void); |
10 | void 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 |