📄 s3c2410x_spi.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
//------------------------------------------------------------------------------
//
// Header: s3c2410x_spi.h
//
// Defines the Serial Peripheral Interface (SPI) controller CPU register layout and
// definitions.
//
#ifndef __S3C2410X_SPI_H
#define __S3C2410X_SPI_H
#if __cplusplus
extern "C"
{
#endif
//------------------------------------------------------------------------------
// Type: S3C2410X_SPI_REG
//
// Defines the SPI register layout. This register bank is located by the
// constant CPU_REG_BASE_XX_SPI in the configuration file cpu_reg_base_cfg.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;
#if __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -