calc.h

来自「用51单片机开发的简单计算器程序」· C头文件 代码 · 共 27 行

H
27
字号
/**
 * File:
 *   calc.h - The main header file of this project.
 * Author:
 *   JudeChu from Dept. of Biomedical Eng., Tsinghua Univ.
 * Version:
 *   0.1.0
 */

#ifndef CALC_H
#define CALC_H

#include <reg51.h>
#include <intrins.h>
#define DATA_WIDTH 4
// The state value generated by flow_control.
#define STATE_NUM 0
#define STATE_DOT 1
#define STATE_REFRESH 2
#define STATE_ERROR 3
#define STATE_IDLE 4
#define STATE_SIGN 5

typedef unsigned char byte;

#endif

⌨️ 快捷键说明

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