kernal.c
来自「Keil 8051 C example RS232 to I2c」· C语言 代码 · 共 29 行
C
29 行
#include <at89x52.H> // SFR definition header file
#include <stdio.h> // prototype declarations for I/O functions
#include "function.h"
#include "SystemEvent.h"
#include "math.h"
#include "UART.h"
#include "Var.h"
extern void InitRemoteCTRL(void);
sfr CHPCON = 0xBF;
sfr CHPENR = 0xF6;
extern void InitSERIALPort(void);
void main (void){
_PtrI2c=&_I2cBuf;
_WPtrI2c=_PtrI2c+0x08;
InitSERIALPort();
_FuncX=0;
while(1){
SystemEvent();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?