📄 flsysfun.h
字号:
/***********************************************************************************/
/* M-Systems Confidential */
/* Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2003 */
/* All Rights Reserved */
/***********************************************************************************/
/* NOTICE OF M-SYSTEMS OEM */
/* SOFTWARE LICENSE AGREEMENT */
/* */
/* THE USE OF THIS SOFTWARE IS GOVERNED BY A SEPARATE LICENSE */
/* AGREEMENT BETWEEN THE OEM AND M-SYSTEMS. REFER TO THAT AGREEMENT */
/* FOR THE SPECIFIC TERMS AND CONDITIONS OF USE, */
/* OR CONTACT M-SYSTEMS FOR LICENSE ASSISTANCE: */
/* E-MAIL = info@m-sys.com */
/***********************************************************************************/
/*
* $Log: V:/PVCSDB/DiskOnChip/archives/general storage/TrueFFS/src/include/flsysfun.h-arc $
*
* Rev 1.4 Oct 23 2003 13:57:14 oris
* Moved flsleep prototype to flbase.h to allow the use of a new FL_SLEEP macro.
*
* Rev 1.3 May 18 2003 15:32:18 OriS
* Fixed spaces
*
* Rev 1.2 May 16 2003 00:59:56 OriS
* Changed spaces
*
* Rev 1.1 May 11 2003 08:27:58 OriS
* Removed flAddLongToFarPointer prototype.
*
* Rev 1.0 Apr 09 2003 12:16:00 OriS
* Initial revision.
*
*/
#ifndef FLSYSFUN_H
#define FLSYSFUN_H
/*#include "flbase.h" */
/*----------------------------------------------------------------------*/
/* f l S y s f u n I n i t */
/* */
/* Do any necessary initialization for routines in this module. */
/* */
/* Called from fatlite.c (flInit) */
/* */
/* Parameters: */
/* None */
/* */
/*----------------------------------------------------------------------*/
extern void flSysfunInit(void);
/*----------------------------------------------------------------------*/
/* f l R a n d B y t e */
/* */
/* Returns a random number between 0 and 255 */
/* */
/* Called from FTLLITE.C */
/* */
/* Parameters: */
/* None */
/* */
/* Returns: */
/* A random number between 0 and 255 */
/*----------------------------------------------------------------------*/
extern unsigned flRandByte(void);
/*----------------------------------------------------------------------*/
/* f l D e l a y M s e c s */
/* */
/* Delays execution for a number of milliseconds. */
/* If there is no msec-accuracy to the clock, this routine should wait */
/* at least the time specified. */
/* */
/* This routine may be called from the socket interface or MTD's, and */
/* is not necessary for all implementations. */
/* */
/* Parameters: */
/* milliseconds : Milliseconds to wait */
/* */
/*----------------------------------------------------------------------*/
extern void flDelayMsecs(unsigned milliseconds);
/*----------------------------------------------------------------------*/
/* f l I n s t a l l T i m e r */
/* */
/* Installs an interval timer. */
/* The implementation of this routine usually means hooking a clock */
/* interrupt. The polling interval is specified as a parameter. If the */
/* clock frequency is faster, the interval timer should count several */
/* clock ticks before calling the interval routine. */
/* */
/* This routine is necessary if POLLING_INTERVAL (custom.h) is greater */
/* than 0. In this case this routine will be called from socket.c */
/* (init). It will be called to install 'socketIntervalRoutine' with a */
/* period specified by POLLING_INTERVAL. */
/* */
/* Parameters: */
/* routine : Routine to call at each interval */
/* interval : Milliseconds per polling interval */
/* */
/* Returns: */
/* FLStatus : 0 on success, otherwise failure */
/*----------------------------------------------------------------------*/
extern FLStatus flInstallTimer(void (*routine)(void), unsigned interval);
#ifdef EXIT
/*----------------------------------------------------------------------*/
/* f l R e m o v e T i m e r */
/* */
/* Removes the active interval timer. */
/* This routine removes the active interval timer set by 'removeTimer'. */
/* */
/* Parameters: */
/* None */
/* */
/*----------------------------------------------------------------------*/
extern void flRemoveTimer(void);
#endif
/*----------------------------------------------------------------------*/
/* f l C u r r e n t D a t e */
/* */
/* Returns the current DOS-format date */
/* */
/* The DOS date format is documented in dosformt.h. */
/* */
/* If a TOD clock is not available, return the value of 1/1/80. */
/* */
/* Parameters: */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -