cop.c

来自「用来计算不同oscillator下」· C语言 代码 · 共 66 行

C
66
字号
/*------------------------------------------------------------------------------
;  This file is part of the SST.
;  Copyright (c)
;  Version: 1.0 
;-------------------------------------------------------------------------------
;  Filename:
;  cob.c:  This code is executed when be called.
;
;  Author:
;  pirate
;     
;  Writedate:
;  Oct.17 2005
;  Modtime(latest):
;  Oct.17 2005  
;-------------------------------------------------------------------------------
*/

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

#include <reg51.h>
#include <stdio.h>
#include ".\HEAD\defunit.h"


typedef unsigned char uchar;

extern void WriteVal(unsigned char);
extern void DelayXs(char);

/*------------------------------------------------------------------------------
 *
 * 练习函数
 *
 -------------------------------------------------------------------------------
*/

//#define SOARING

void cop(uchar x)
{
    uchar j;
    uchar k;
	uchar y, z;
//#define SOARING   
#ifdef SOARING
    //printf("thereisaman.");
	DelayXs(5);


#endif
    if(x > 0)
    {
      k = x & 0x0F;
	  ++j;
    }


    B = k;
	y = 0x88;
	z = y + 0x10;
}
    

⌨️ 快捷键说明

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