?? lpcspi.h
字號:
/******************************************************************************
*
* $RCSfile: $
* $Revision: $
*
* Header file for Philips LPC ARM Processors.
* Copyright 2004 R O SoftWare
*
* No guarantees, warrantees, or promises, implied or otherwise.
* May be used for hobby or commercial purposes provided copyright
* notice remains intact.
*
*****************************************************************************/
#ifndef INC_LPC_SPI_H
#define INC_LPC_SPI_H
// Serial Peripheral Interface Registers (SPI)
typedef struct
{
REG_8 cr; // Control Register
REG_8 _pad0[3];
REG_8 sr; // Status Register
REG_8 _pad1[3];
REG_8 dr; // Data Register
REG_8 _pad2[3];
REG_8 ccr; // Clock Counter Register
REG_8 _pad3[3];
REG_8 tcr; // Test Control Register
REG_8 _pad4[3];
REG_8 tsr; // Test Status Register
REG_8 _pad5[3];
REG_8 tor; // Test Observe Register
REG_8 _pad6[3];
REG_8 flag; // Interrupt Flag Register
REG_8 _pad7[3];
} spiRegs_t;
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -