📄 defs.h
字号:
/*""FILE COMMENT""*************************************************************
* System Name : This program is only for education.
* File Name : defs.h
* Contents : symbol definition
* Model : OAKS16-LCD Board
* CPU : M16C/60 Serials
* Compiler : M16C/60 NC30 COMPILER V.4.00 Release 2 - Entry
* OS : NON
* Programer : RENESAS Semiconductor Training Center
* Note : OAKS16-M30620FCAFP(M16C/62group,16MHz)
*******************************************************************************
* COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION ALL RIGHTS RESERVED
* AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
*******************************************************************************
* History : ---
*""FILE COMMENT END""*********************************************************/
#ifndef __DEFS_H
#define __DEFS_H
#define SET 1 /* set symbol SET to 1 */
#define CLEAR 0 /* set symbol CLEAR to 0 */
#define TRUE 1 /* when condition is satisfied */
#define FALSE 0 /* when condition is not satisfied */
typedef int BOOL;
/*----- flag UNION declaration for user -----*/
typedef union user_F{
unsigned char all; /* for accessing byte */
struct{
unsigned char b0 : 1; /* bit0(LSB) */
unsigned char b1 : 1; /* bit1 */
unsigned char b2 : 1; /* bit2 */
unsigned char b3 : 1; /* bit3 */
unsigned char b4 : 1; /* bit4 */
unsigned char b5 : 1; /* bit5 */
unsigned char b6 : 1; /* bit6 */
unsigned char b7 : 1; /* bit7(MSB) */
}bit; /* for accessing bit */
}FLAG;
#endif /*__DEFS_H*/
/******************************************************************************
end of file
******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -