Project

General

Profile

Revision 350

Added by Kevin Woo almost 13 years ago

Changed formatting so that it isn't as messy. Probably won't compile.
Still probably doesn't work.

View differences:

spi.h
7 7
#define SPI_SENDING 1
8 8
#define SPI_VOID 0
9 9

  
10
/* Pin Defines */
11
#define MOSI _BV(PB2)
12
#define MISO _BV(PB3)
13
#define SS _BV(PB0)
14
#define SCLK _BV(PB1)
15

  
10 16
#define size_t int
11 17
typedef void (*spi_fun_recv_t)(char);
12 18
typedef void (*spi_fun_send_t)(char);

Also available in: Unified diff