sdefine.h

来自「用来计算不同oscillator下」· C头文件 代码 · 共 57 行

H
57
字号
/*------------------------------------------------------------------------------
;  This file is part of the RLC instruction
;  Copyright (c)
;  Version: 1.0 
;-------------------------------------------------------------------------------
;  Filename:
;  sdefine.h
;  Function:   
;
;  Author:
;  pirate
;     
;  Writedate:
;  Oct.15 2005
;  Moddate(latest):
;  Oct.15 2005
;-------------------------------------------------------------------------------
*/
#ifndef _SDEFINE_H
#define _SDEFINE_H

//--------------------------------------
// Included files
//--------------------------------------
// none


//*************************************
//SPI wire and SFR defination
//*************************************

//define special function register of AP180
sfr     DPS         = 0x86;
sfr     RAMCON      = 0xF3;


//define the wire name of SPI interface
sbit    SCK         = P1^5;
sbit    NPD         = P1^6;
sbit    NSS		    = P1^7;   
sbit    MISO        = P2^7;
sbit    MOSI        = P2^6;
sbit    NRESET      = P2^5;
sbit    IRQ         = P2^4;


//define a test pin
sbit    TEST_PIN    = P2^0;

//define a test bit
sbit    JG_B        = PSW^5; 
sbit    PARAM       = P0^0;
 

//------------------------------------------------------------------------------
//
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?