projects
/
my-code
/
arm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more display testing
[my-code/arm.git]
/
betty
/
spi.h
1
/*
2
* spi-h - spi header file
3
*
4
* author: hackbard@hackdaworld.org
5
*
6
*/
7
8
#ifndef SPI_H
9
#define SPI_H
10
11
#include "lpc2xxx.h"
12
#include "types.h"
13
14
/* defines */
15
#define SPI_MASTER (1<<0)
16
#define SPI_SLAVE (1<<1)
17
18
/* function prototypes */
19
void spi1_init(u8 width,u8 type,u8 div);
20
void spi1_send(u16 data);
21
22
#endif