mcore.h

来自「摩托罗拉MMC2107在ucosII的移植代码」· C头文件 代码 · 共 44 行

H
44
字号
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
 *  File:  plib.h                                
 *      Type Definitions file for simple data types  
 *      common to all device driver function code   
 *
 *      $RCSfile: mcore.h,v $                          
 *      $Revision: 1.2 $                   
 *      $Date: 2000/06/23 19:35:18 $                        
 *      $Author: jeffk $                   
 *                                 
 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/

/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
 *                                                           *
 *   (C) Copyright 1998 Motorola, Inc. All Rights Reserved.  *
 *                                                           *
 *   This file contains copyrighted material.  Use of this   *
 *   file is restricted by the provisions of Motorola's      *
 *   Software License Agreement.                             *
 *                                                           *
 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/

#if !defined(_CORE_H)
#define _CORE_H

/* Device Driver Library Derived Integer Data Types */
typedef unsigned char           UINT8;
typedef signed char             INT8;
typedef unsigned short int      UINT16;
typedef signed short int        INT16;
typedef unsigned long int       UINT32;
typedef signed long int         INT32;

#if !defined(NULL)
#define NULL 0
#endif

#define SET_REG_BITS( reg, bitno, bitlen, value )             \
    reg   &=~( ((1 << bitlen) - 1) << (bitno) ); /* clear  */ \
    reg   |= ( (value)             << (bitno) ); /* assign */

#endif /* !defined(_CORE_H) */

⌨️ 快捷键说明

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