repo.or.cz
/
cbaos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import cbaos v0.1
[cbaos.git]
/
include
/
drivers
/
lpc_ssp.h
blob
dc4db1ffe48d9e855c80ee82826e41e402f54bd9
1
#ifndef _LPC_SSP_H_
2
#define _LPC_SSP_H_
3
4
/* currently this was tested to work on lpc2138 and lpc1343 */
5
6
/* this is only meant to be included from mach/board file */
7
8
#include <types.h>
9
#include <compiler.h>
10
#include <drivers/spi.h>
11
12
struct
lpc_ssp
{
13
volatile
u32 SSPCR0
;
14
volatile
u32 SSPCR1
;
15
volatile
u32 SSPDR
;
16
volatile
u32 SSPSR
;
17
volatile
u32 SSPCPSR
;
18
volatile
u32 SSPIMSC
;
19
volatile
u32 SSPRIS
;
20
volatile
u32 SSPMIS
;
21
volatile
u32 SSPICR
;
22
};
23
24
struct
lpc_ssp_data
{
25
int
pclk
;
26
int
irq
;
27
};
28
29
int
lpc_ssp_register
(
struct
spi_master
*
master
);
30
31
#ifdef MACH_LPC21XX
32
void
__interrupt
ssp0_handler
();
33
#endif
34
35
#endif