?? spi1ci.h
字號:
/**************************** .FILE_HEADER_BEGIN *****************************
.TITLE [ SPI display data communication control ]
*-----------------------------------------------------------------------------
.FILE [ spi1ci.h ]
.AUTHOR [ Leon ]
*-----------------------------------------------------------------------------
.CONTENTS (Will be filled by MAS-SoftDoc)
*-----------------------------------------------------------------------------
.INCLUDE_REFERENCES (Will be filled by MAS-SoftDoc)
*** Program Includefiles ***
*** External Includefiles ***
*** Included by ***
*-----------------------------------------------------------------------------
.REVISION_LIST (Will be filled by PVCS)
Archive: $Log: $
//
// Rev 1.0 Jun 22 2007 14:52 Leon
// Initial revision.
****************************** .FILE_HEADER_END ******************************/
/*****************************************************************************
* Check if informations are already included
Last change: EB 18.02.04 12:21:11
******************************************************************************/
#ifndef SPI1CI_H
#define SPI1CI_H
/*****************************************************************************
* Template name: SWMOD2CI.H
* Template revision: 1.0
*-----------------------------------------------------------------------------
* CASE-Tool: EasyCASE(C++), Version 6.01
******************************************************************************/
/*****************************************************************************
* HEADER-FILES (Only those that are needed in this file)
******************************************************************************/
/* System-headerfiles */
//#include "Sysbv1c1.h"
/* Foreign headerfiles */
//#include "revac1.h" /* Revolution definitions */
/**************************** .BLOCK_COMMENT_BEGIN ***************************
* SYNONYM ADAPTATION
*
* In this section
* - adapt external symbols to internally used names if necessary. This
* synonym adaption is unknown for other modules
***************************** .BLOCK_COMMENT_END *****************************/
/* Adaptations used for both modes */
/* ======================================================================== */
#define SPI_Busy (P7_bit.no5) //Busy signal use pin32(P7.5)PM4_bit.no7
#define SPI_DataSend (SOTB11) //Transmit buffer register 11
#define SPI_SSR (SIO11) //Serial I/O shift register 11
#define SPI_SOMR (CSIM11) //Serial operation mode register 11
#define SPI_SCSR (CSIC11) //Serial clock selection register 11
#define SPI_PMR_SO (PM7_bit.no4) //Port mode register 7 (PM7)
#define SPI_PMR_SI (PM7_bit.no5) //
#define SPI_PMR_SCK (PM7_bit.no6) //
#define SPI_PR_SO (P7_bit.no4) //Port register 7 (P7)
#define SPI_PR_SI (P7_bit.no5) //busy signal is used to initilize
#define SPI_PR_SCK (P7_bit.no6) //
#define SPI_DI (SPI_SOMR&0x7f)//SPI bus interrupt enable
#define SPI_EI (SPI_SOMR|0x80)//SPI bus interrupt disable
#define SPI_EMI_PROTECT (CSIIF11 = 1)
#define SPI_UpdataEnable bit(MMI__biSPIUpdata_BYTE,MMI__biSPIUpdata_BIT)
//#define SPI_UpdataEnable bit(SPI_UpdataEnable_BYTE,SPI_UpdataEnable_BIT)
/*****************************************************************************
* End of check if informations are already included
******************************************************************************/
#endif /* ifndef */
/*****************************************************************************
* EOF:
******************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -