utils.h

来自「The Lite Evaluation/Demonstration Kit is」· C头文件 代码 · 共 57 行

H
57
字号
//////////////////////////////////////////////////////////////////////
//
// File: utils.h 
//
// $Archive: /ComemL/Util/PCfg/utils.h $
//
// Purpose:
//
// $Author: Tpm $
//
// $History: utils.h $
//  
//  *****************  Version 1  *****************
//  User: Tpm          Date: 7/13/98    Time: 8:38a
//  Created in $/ComemL/Util/PCfg
//  
//  *****************  Version 8  *****************
//  User: Stevek       Date: 11/07/97   Time: 10:52a
//  Updated in $/Comem/Mapper
//  Removed windows centric define.
//  
//  *****************  Version 7  *****************
//  User: Stevek       Date: 10/28/97   Time: 2:24p
//  Updated in $/Comem/Mapper
//  Added checks for resetout inactive on start, changed reset to allow for
//  interrupts active on startup.
//  
//  *****************  Version 6  *****************
//  User: Stevek       Date: 10/28/97   Time: 9:57a
//  Updated in $/Comem/Mapper
//  More seperation for seperate library file.
//  Removed embeddedSystems stuff.
//  
//  *****************  Version 5  *****************
//  User: Stevek       Date: 10/27/97   Time: 1:16p
//  Updated in $/Comem/Mapper
//  Moved interface functions into the comem_if.lib file.
//  
//  *****************  Version 4  *****************
//  User: Stevek       Date: 10/22/97   Time: 12:27p
//  Updated in $/Comem/Mapper
//  Added header blocks to all files at once!
//  
// Copyright (c) 1997 Anchor Chips, Inc.  May not be reproduced without
// permission.  See the license agreement for more details.
//
//////////////////////////////////////////////////////////////////////
int timeout(unsigned long time, unsigned timer);
void report_error(const char *msg, ...);
void reportErrorCode(DWORD status, char * whereAmI);
int my_sscanf(const char * buffer, DWORD *data);

const int FOREGROUND_TIMER = 0;

const int ONE_SECOND = 18;    // number of ticks per second
#define STORAZ(type, val) (*((type *) &val))

⌨️ 快捷键说明

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