Revision 1462
moved dragonfly definitions to separate header file
spi.h | ||
---|---|---|
12 | 12 |
#ifndef __SPI_H__ |
13 | 13 |
#define __SPI_H__ |
14 | 14 |
|
15 |
#include<dragonfly_lib.h> |
|
16 |
|
|
17 | 15 |
#define DOUBLE_SCK 1 |
18 | 16 |
#define SPR0_BIT 1 |
19 | 17 |
|
... | ... | |
25 | 23 |
#define SS _BV(PB0) |
26 | 24 |
#define SCLK _BV(PB1) |
27 | 25 |
|
28 |
typedef void (*spi_fun_recv_t)(char);
|
|
26 |
typedef int (*spi_fun_recv_t)(char);
|
|
29 | 27 |
typedef void (*spi_fun_recv_complete_t)(void); |
30 | 28 |
|
31 | 29 |
/** |
Also available in: Unified diff