00001 /****************************************************************************** 00002 * 00003 * $RCSfile: $ 00004 * $Revision: $ 00005 * 00006 * Header file for Philips LPC ARM Processors. 00007 * Copyright 2004 R O SoftWare 00008 * 00009 * No guarantees, warrantees, or promises, implied or otherwise. 00010 * May be used for hobby or commercial purposes provided copyright 00011 * notice remains intact. 00012 * 00013 *****************************************************************************/ 00014 #ifndef INC_LPC_SPI_H 00015 #define INC_LPC_SPI_H 00016 00017 // Serial Peripheral Interface Registers (SPI) 00018 typedef struct 00019 { 00020 REG_8 cr; // Control Register 00021 REG_8 _pad0[3]; 00022 REG_8 sr; // Status Register 00023 REG_8 _pad1[3]; 00024 REG_8 dr; // Data Register 00025 REG_8 _pad2[3]; 00026 REG_8 ccr; // Clock Counter Register 00027 REG_8 _pad3[3]; 00028 REG_8 tcr; // Test Control Register 00029 REG_8 _pad4[3]; 00030 REG_8 tsr; // Test Status Register 00031 REG_8 _pad5[3]; 00032 REG_8 tor; // Test Observe Register 00033 REG_8 _pad6[3]; 00034 REG_8 flag; // Interrupt Flag Register 00035 REG_8 _pad7[3]; 00036 } spiRegs_t; 00037 00038 #endif
1.4.7