⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hidef.h

📁 HID-Ukey底层源码实现(st72651芯片) windows上层驱动
💻 H
字号:
/*****************************************************
 hidef.h - ANSI-C library: machine dependent stuff
 ----------------------------------------------------
   Copyright (c) HIWARE AG, Basel, Switzerland
               All rights reserved               
                  Do not modify!
 *****************************************************/

#ifndef _H_HIDEF_
#define _H_HIDEF_

#ifdef __cplusplus
extern "C" {
#endif

#define _FAR far

/**** Version for STMicroelectronics ST7 */

#include "stddef.h"
#include "stdtypes.h"

#define CLOCKS_PER_SEC 4000000 /* has to be user defined */
#pragma NO_STRING_CONSTR  /* allow '#' in HLI below */

#define HALTX(z)           {__asm LD A,#z; __asm TRAP; }
#define HALT_0             {__asm CLR A; __asm TRAP;}
#define HALT_AND_QUIT      {__asm LD A,#32; __asm TRAP; }
#define EnableInterrupts   {__asm RIM;}
#define DisableInterrupts  {__asm SIM;}

#define INIT_SP_FROM_STARTUP_DESC() __asm RSP;

void SaveLong(char *mem);
/** save the space in the zeropage used for long arithmetic to the mem location */
/** The pointer mem must point to a memory location of atleast 24 bytes */
void RestoreLong(char *mem);void SaveLong(char *mem);

void SaveFloat(char *mem);
/** save the space in the zeropage used for float arithmetic to the mem location */
/** The pointer mem must point to a memory location of atleast 23 bytes */
void RestoreFloat(char *mem);void SaveLong(char *mem);

		

#ifdef __cplusplus
 }
#endif

#endif

/*****************************************************/
/* end hidef.h */

⌨️ 快捷键说明

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