Dallas Semiconductor DS80C400 C Libraries Home Page

Main Page   Data Structures   File List   Data Fields   Globals  

rom400_util.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------
00002  *  Copyright (C) 2003 Dallas Semiconductor Corporation, All Rights Reserved.
00003  * 
00004  *  Permission is hereby granted, free of charge, to any person obtaining a
00005  *  copy of this software and associated documentation files (the "Software"),
00006  *  to deal in the Software without restriction, including without limitation
00007  *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
00008  *  and/or sell copies of the Software, and to permit persons to whom the
00009  *  Software is furnished to do so, subject to the following conditions:
00010  * 
00011  *  The above copyright notice and this permission notice shall be included
00012  *  in all copies or substantial portions of the Software.
00013  * 
00014  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00015  *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00016  *  MERCHANTABILITY,  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00017  *  IN NO EVENT SHALL DALLAS SEMICONDUCTOR BE LIABLE FOR ANY CLAIM, DAMAGES
00018  *  OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00019  *  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00020  *  OTHER DEALINGS IN THE SOFTWARE.
00021  * 
00022  *  Except as contained in this notice, the name of Dallas Semiconductor
00023  *  shall not be used except as stated in the Dallas Semiconductor
00024  *  Branding Policy.
00025  * ---------------------------------------------------------------------------
00026  *
00027  * This file contains function definitions for the built-in ROM functions 
00028  * of the Dallas Semiconductor 400 processor.  This file is intended for use 
00029  * with the Keil MicroVision (uVision) C compiler.
00030  *
00031  * ---------------------------------------------------------------------------
00032  */
00033 #ifndef __rom400_util_
00034 #define __rom400_util_
00035 
00056 #define ROM400_UTIL_VERSION         5
00057 
00060 #define REDIRECT_KERNELMALLOC                   1
00061 
00063 #define REDIRECT_KERNELFREE                     2
00064 
00066 #define REDIRECT_MALLOC                         3
00067 
00069 #define REDIRECT_FREE                           4
00070 
00072 #define REDIRECT_MALLOCDIRTY                    5
00073 
00075 #define REDIRECT_TINIEXPORT_MM_DEREF            6
00076 
00078 #define REDIRECT_GETFREERAM                     7
00079 
00081 #define REDIRECT_GETTIMEMILLIS                  8
00082 
00084 #define REDIRECT_GETTHREADID                    9
00085 
00087 #define REDIRECT_THREADRESUME                  10
00088 
00090 #define REDIRECT_THREADIOSLEEP                 11
00091 
00093 #define REDIRECT_THREADIOSLEEPNC               12
00094 
00096 #define REDIRECT_THREADSAVE                    13
00097 
00099 #define REDIRECT_THREADRESTORE                 14
00100 
00102 #define REDIRECT_SLEEP                         15
00103 
00105 #define REDIRECT_GETTASKID                     16
00106 
00108 #define REDIRECT_INFOSENDCHAR                  17
00109 
00111 #define REDIRECT_IP_COMPUTECHECKSUM_SOFTWARE   18
00112 
00114 #define REDIRECT_0                             19
00115 
00117 #define REDIRECT_DHCPNOTIFY                    20
00118 
00120 #define REDIRECT_ROM_TASK_CREATE               21
00121 
00123 #define REDIRECT_ROM_TASK_DUPLICATE            22
00124 
00126 #define REDIRECT_ROM_TASK_DESTROY              23
00127 
00129 #define REDIRECT_ROM_TASK_SWITCH_IN            24
00130 
00132 #define REDIRECT_ROM_TASK_SWITCH_OUT           25
00133 
00135 #define REDIRECT_OWIP_READCONFIG               26
00136 
00138 #define REDIRECT_SETMACID                      27
00139 
00141 #define REDIRECT_MM_UNDEREF                    28
00142 
00144 #define REDIRECT_USER_IOPOLL                   29
00145 
00147 #define REDIRECT_ERROR_NOTIFICATION            30
00148 
00149 
00165 // ---------------------------------------------------------------------------
00166 unsigned int util_crc16(unsigned char value, unsigned int seed);
00167 
00179 // ---------------------------------------------------------------------------
00180 unsigned char util_getpseudorandom(void);
00181 
00196 //---------------------------------------------------------------------------
00197 void util_setrandomseed(unsigned int seed);
00198 
00210 //---------------------------------------------------------------------------
00211 void util_memclear(void* target, unsigned int length);
00212 
00231 //---------------------------------------------------------------------------
00232 void util_memcopy(void* source, void* dest, unsigned int length);
00233 
00251 //---------------------------------------------------------------------------
00252 unsigned char util_memcompare(void* block0, void* block1, unsigned int length);
00253 
00267 //---------------------------------------------------------------------------
00268 void util_infosendchar(unsigned char ch);
00269 
00291 //---------------------------------------------------------------------------
00292 void util_installhook(void* fncptr, unsigned int fncindex);
00293 
00302 //---------------------------------------------------------------------------
00303 unsigned int util_version(void);
00304 
00305 #endif

Copyright 2004 Dallas Semiconductor, Inc.. Documentation generated by Doxygen.