|
在..\WINCE500\PUBLIC\COMMON\OAK\CSP\ARM\SAMSUNG\S3C2410X\INC\s3c2410x_spi.h中定义:
typedef struct
{
UINT32 SPCON0; // chan 0 control reg
UINT32 SPSTA0; // chan 0 status reg
UINT32 SPPIN0; // chan 0 pin control reg
UINT32 SPPRE0; // chan 0 baud rate prescaler reg
UINT32 SPTDAT0; // chan 0 tx data reg
UINT32 SPRDAT0; // chan 0 rx data reg
UINT32 PAD[2];
UINT32 SPCON1; // chan 1 control reg - offset 0x20
UINT32 SPSTA1; // chan 1 status reg
UINT32 SPPIN1; // chan 1 pin control reg
UINT32 SPPRE1; // chan 1 baud rate prescaler reg
UINT32 SPTDAT1; // chan 1 tx data reg
UINT32 SPRDAT1; // chan 1 rx data reg
} S3C2410X_SPI_REG, *PS3C2410X_SPI_REG; |
|