OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [dll.h] - Blame information for rev 416

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 359 rhoads
/*--------------------------------------------------------------------
2
 * TITLE: Plasma Dynamic Link Library
3
 * AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
4
 * DATE CREATED: 4/4/08
5
 * FILENAME: dll.h
6
 * PROJECT: Plasma CPU core
7
 * COPYRIGHT: Software placed into the public domain by the author.
8
 *    Software 'as is' without warranty.  Author liable for nothing.
9
 * DESCRIPTION:
10
 *    Dynamic Link Library
11
 *--------------------------------------------------------------------*/
12
#ifndef __DLL_H__
13
#define __DLL_H__
14
 
15
#include "rtos.h"
16
#include "tcpip.h"
17
 
18
typedef void *(*DllFunc)();
19
 
20
// Included by Plasma Kernel to create array of function pointers
21
#ifdef DLL_SETUP
22
 
23
void *DllDummy(void) { printf("Dummy"); return NULL; }
24
 
25
const DllFunc DllFuncList[] = {
26 416 rhoads
   (DllFunc)ConsolePrintf,
27
   (DllFunc)ConsoleScanf,
28
   (DllFunc)ConsoleKbhit,
29
   (DllFunc)ConsoleGetch,
30 359 rhoads
   (DllFunc)strcpy,
31
   (DllFunc)strncpy,
32
   (DllFunc)strcat,
33
   (DllFunc)strncat,
34
   (DllFunc)strcmp,
35
   (DllFunc)strncmp,
36
   (DllFunc)strstr,
37
   (DllFunc)strlen,
38
   (DllFunc)memcpy,
39
   (DllFunc)memmove,
40
   (DllFunc)memcmp,
41
   (DllFunc)memset,
42
   (DllFunc)abs,
43
   (DllFunc)rand,
44
   (DllFunc)srand,
45
   (DllFunc)strtol,
46
   (DllFunc)atoi,
47
   (DllFunc)itoa,
48
   (DllFunc)sprintf,
49
   (DllFunc)sscanf,
50
#ifdef INCLUDE_DUMP
51
   (DllFunc)dump,
52
#else //INCLUDE_DUMP
53
   DllDummy,
54
#endif //INCLUDE_DUMP
55
#ifdef INCLUDE_QSORT
56
   (DllFunc)qsort,
57
   (DllFunc)bsearch,
58
#else //INCLUDE_QSORT
59
   DllDummy,
60
   DllDummy,
61
#endif //INCLUDE_QSORT
62
#ifdef INCLUDE_TIMELIB
63
   (DllFunc)mktime,
64
   (DllFunc)gmtime_r,
65
   (DllFunc)gmtimeDst,
66
   (DllFunc)gmtimeDstSet,
67
#else //INCLUDE_TIMELIB
68
   DllDummy,
69
   DllDummy,
70
   DllDummy,
71
   DllDummy,
72
#endif //INCLUDE_TIMELIB
73
   (DllFunc)OS_AsmInterruptEnable,
74
   (DllFunc)OS_HeapCreate,
75
   (DllFunc)OS_HeapDestroy,
76
   (DllFunc)OS_HeapMalloc,
77
   (DllFunc)OS_HeapFree,
78
   (DllFunc)OS_HeapAlternate,
79
   (DllFunc)OS_HeapRegister,
80
   (DllFunc)OS_ThreadCreate,
81
   (DllFunc)OS_ThreadExit,
82
   (DllFunc)OS_ThreadSelf,
83
   (DllFunc)OS_ThreadSleep,
84
   (DllFunc)OS_ThreadTime,
85
   (DllFunc)OS_ThreadInfoSet,
86
   (DllFunc)OS_ThreadInfoGet,
87
   (DllFunc)OS_ThreadPriorityGet,
88
   (DllFunc)OS_ThreadPrioritySet,
89
   (DllFunc)OS_ThreadProcessId,
90
   (DllFunc)OS_ThreadCpuLock,
91
   (DllFunc)OS_SemaphoreCreate,
92
   (DllFunc)OS_SemaphoreDelete,
93
   (DllFunc)OS_SemaphorePend,
94
   (DllFunc)OS_SemaphorePost,
95
   (DllFunc)OS_MutexCreate,
96
   (DllFunc)OS_MutexDelete,
97
   (DllFunc)OS_MutexPend,
98
   (DllFunc)OS_MutexPost,
99
   (DllFunc)OS_MQueueCreate,
100
   (DllFunc)OS_MQueueDelete,
101
   (DllFunc)OS_MQueueSend,
102
   (DllFunc)OS_MQueueGet,
103
   (DllFunc)OS_Job,
104
   (DllFunc)OS_TimerCreate,
105
   (DllFunc)OS_TimerDelete,
106
   (DllFunc)OS_TimerCallback,
107
   (DllFunc)OS_TimerStart,
108
   (DllFunc)OS_TimerStop,
109
   (DllFunc)OS_InterruptRegister,
110
   (DllFunc)OS_InterruptStatus,
111
   (DllFunc)OS_InterruptMaskSet,
112
   (DllFunc)OS_InterruptMaskClear,
113
   (DllFunc)UartPrintf,
114
   (DllFunc)UartPrintfCritical,
115 416 rhoads
   (DllFunc)UartPrintfCritical,
116 359 rhoads
   (DllFunc)UartScanf,
117 402 rhoads
   (DllFunc)OS_puts,
118
   (DllFunc)OS_getch,
119
   (DllFunc)OS_kbhit,
120 359 rhoads
   (DllFunc)Led,
121 416 rhoads
#ifndef WIN32
122
   (DllFunc)__negsf2,
123
   (DllFunc)__addsf3,
124
   (DllFunc)__subsf3,
125
   (DllFunc)__mulsf3,
126
   (DllFunc)__divsf3,
127
   (DllFunc)__fixsfsi,
128
   (DllFunc)__floatsisf,
129
#else
130
   DllDummy,
131
   DllDummy,
132
   DllDummy,
133
   DllDummy,
134
   DllDummy,
135
   DllDummy,
136
   DllDummy,
137
#endif
138 359 rhoads
   (DllFunc)FP_Sqrt,
139
   (DllFunc)FP_Cos,
140
   (DllFunc)FP_Sin,
141
   (DllFunc)FP_Atan,
142
   (DllFunc)FP_Atan2,
143
   (DllFunc)FP_Exp,
144
   (DllFunc)FP_Log,
145
   (DllFunc)FP_Pow,
146 416 rhoads
#ifndef EXCLUDE_FILESYS
147 359 rhoads
   (DllFunc)OS_fopen,
148
   (DllFunc)OS_fclose,
149
   (DllFunc)OS_fread,
150
   (DllFunc)OS_fwrite,
151
   (DllFunc)OS_fseek,
152
   (DllFunc)OS_fmkdir,
153
   (DllFunc)OS_fdir,
154
   (DllFunc)OS_fdelete,
155 416 rhoads
#else //EXCLUDE_FILESYS
156 359 rhoads
   DllDummy,
157
   DllDummy,
158
   DllDummy,
159
   DllDummy,
160
   DllDummy,
161
   DllDummy,
162
   DllDummy,
163
   DllDummy,
164 416 rhoads
#endif //EXCLUDE_FILESYS
165
#ifndef EXCLUDE_FLASH
166 359 rhoads
   (DllFunc)FlashRead,
167
   (DllFunc)FlashWrite,
168
   (DllFunc)FlashErase,
169
#else //WIN32
170
   DllDummy,
171
   DllDummy,
172
   DllDummy,
173
#endif //WIN32
174
   (DllFunc)IPOpen,
175
   (DllFunc)IPWriteFlush,
176
   (DllFunc)IPWrite,
177
   (DllFunc)IPRead,
178
   (DllFunc)IPClose,
179
   (DllFunc)IPPrintf,
180
   (DllFunc)IPResolve,
181
   (DllFunc)IPAddressSelf,
182 416 rhoads
   (DllFunc)IPNameValue,
183
   DllDummy,
184
   DllDummy
185 359 rhoads
};
186
 
187
#endif //DLL_SETUP
188
 
189
// Included by DLL to call OS functions via array of function pointers
190
#if defined(DLL_CALL) || !defined(DLL_SETUP)
191
 
192
enum {
193 416 rhoads
   ENUM_ConsolePrintf,
194
   ENUM_ConsoleScanf,
195
   ENUM_ConsoleKbhit,
196
   ENUM_ConsoleGetch,
197 359 rhoads
   ENUM_strcpy,
198
   ENUM_strncpy,
199
   ENUM_strcat,
200
   ENUM_strncat,
201
   ENUM_strcmp,
202
   ENUM_strncmp,
203
   ENUM_strstr,
204
   ENUM_strlen,
205
   ENUM_memcpy,
206
   ENUM_memmove,
207
   ENUM_memcmp,
208
   ENUM_memset,
209
   ENUM_abs,
210
   ENUM_rand,
211
   ENUM_srand,
212
   ENUM_strtol,
213
   ENUM_atoi,
214
   ENUM_itoa,
215
   ENUM_sprintf,
216
   ENUM_sscanf,
217
   ENUM_dump,
218
   ENUM_qsort,
219
   ENUM_bsearch,
220
   ENUM_mktime,
221
   ENUM_gmtime_r,
222
   ENUM_gmtimeDst,
223
   ENUM_gmtimeDstSet,
224
   ENUM_OS_AsmInterruptEnable,
225
   ENUM_OS_HeapCreate,
226
   ENUM_OS_HeapDestroy,
227
   ENUM_OS_HeapMalloc,
228
   ENUM_OS_HeapFree,
229
   ENUM_OS_HeapAlternate,
230
   ENUM_OS_HeapRegister,
231
   ENUM_OS_ThreadCreate,
232
   ENUM_OS_ThreadExit,
233
   ENUM_OS_ThreadSelf,
234
   ENUM_OS_ThreadSleep,
235
   ENUM_OS_ThreadTime,
236
   ENUM_OS_ThreadInfoSet,
237
   ENUM_OS_ThreadInfoGet,
238
   ENUM_OS_ThreadPriorityGet,
239
   ENUM_OS_ThreadPrioritySet,
240
   ENUM_OS_ThreadProcessId,
241
   ENUM_OS_ThreadCpuLock,
242
   ENUM_OS_SemaphoreCreate,
243
   ENUM_OS_SemaphoreDelete,
244
   ENUM_OS_SemaphorePend,
245
   ENUM_OS_SemaphorePost,
246
   ENUM_OS_MutexCreate,
247
   ENUM_OS_MutexDelete,
248
   ENUM_OS_MutexPend,
249
   ENUM_OS_MutexPost,
250
   ENUM_OS_MQueueCreate,
251
   ENUM_OS_MQueueDelete,
252
   ENUM_OS_MQueueSend,
253
   ENUM_OS_MQueueGet,
254
   ENUM_OS_Job,
255
   ENUM_OS_TimerCreate,
256
   ENUM_OS_TimerDelete,
257
   ENUM_OS_TimerCallback,
258
   ENUM_OS_TimerStart,
259
   ENUM_OS_TimerStop,
260
   ENUM_OS_InterruptRegister,
261
   ENUM_OS_InterruptStatus,
262
   ENUM_OS_InterruptMaskSet,
263
   ENUM_OS_InterruptMaskClear,
264
   ENUM_UartPrintf,
265
   ENUM_UartPrintfPoll,
266
   ENUM_UartPrintfCritical,
267
   ENUM_UartScanf,
268 402 rhoads
   ENUM_OS_puts,
269
   ENUM_OS_getch,
270
   ENUM_OS_kbhit,
271 359 rhoads
   ENUM_Led,
272 416 rhoads
   ENUM_NEGSF2,
273
   ENUM_ADDSF3,
274
   ENUM_SUBSF3,
275
   ENUM_MULSF3,
276
   ENUM_DIVSF3,
277
   ENUM_FIXSFSI,
278
   ENUM_FLOATSISF,
279 359 rhoads
   ENUM_FP_Sqrt,
280
   ENUM_FP_Cos,
281
   ENUM_FP_Sin,
282
   ENUM_FP_Atan,
283
   ENUM_FP_Atan2,
284
   ENUM_FP_Exp,
285
   ENUM_FP_Log,
286
   ENUM_FP_Pow,
287
   ENUM_OS_fopen,
288
   ENUM_OS_fclose,
289
   ENUM_OS_fread,
290
   ENUM_OS_fwrite,
291
   ENUM_OS_fseek,
292
   ENUM_OS_fmkdir,
293
   ENUM_OS_fdir,
294
   ENUM_OS_fdelete,
295
   ENUM_FlashRead,
296
   ENUM_FlashWrite,
297
   ENUM_FlashErase,
298
   ENUM_IPOpen,
299
   ENUM_IPWriteFlush,
300
   ENUM_IPWrite,
301
   ENUM_IPRead,
302
   ENUM_IPClose,
303
   ENUM_IPPrintf,
304
   ENUM_IPResolve,
305
   ENUM_IPAddressSelf,
306 416 rhoads
   ENUM_IPNameValue,
307
   ENUM_USER0,
308
   ENUM_USER1,
309
   ARGV_SOCKET = -2
310 359 rhoads
};
311
 
312
extern const DllFunc *DllF;
313
 
314
#undef strcpy
315 416 rhoads
#undef strncpy
316 359 rhoads
#undef strcat
317
#undef strncat
318
#undef strcmp
319 416 rhoads
#undef strncmp
320 359 rhoads
#undef strlen
321
#undef memcpy
322
#undef memcmp
323 416 rhoads
#undef memmove
324 359 rhoads
#undef memset
325
#undef abs
326
#undef atoi
327 416 rhoads
#undef itoa
328
#undef srand
329
#undef rand
330
#undef sprintf
331
#undef sscanf
332
#undef strstr
333
#undef strtol
334
#undef scanf
335
#undef printf
336 359 rhoads
 
337 416 rhoads
#define printf (int)DllF[ENUM_ConsolePrintf]
338
#define scanf (int)DllF[ENUM_ConsoleScanf]
339
#define kbhit (int)DllF[ENUM_ConsoleKbhit]
340
#define getch (int)DllF[ENUM_ConsoleGetch]
341 359 rhoads
#define strcpy DllF[ENUM_strcpy]
342
#define strncpy DllF[ENUM_strncpy]
343
#define strcat DllF[ENUM_strcat]
344
#define strncat DllF[ENUM_strncat]
345
#define strcmp (int)DllF[ENUM_strcmp]
346
#define strncmp (int)DllF[ENUM_strncmp]
347 416 rhoads
#define strstr (char*)DllF[ENUM_strstr]
348 359 rhoads
#define strlen (int)DllF[ENUM_strlen]
349
#define memcpy DllF[ENUM_memcpy]
350
#define memmove DllF[ENUM_memmove]
351
#define memcmp (int)DllF[ENUM_memcmp]
352
#define memset DllF[ENUM_memset]
353
#define abs (int)DllF[ENUM_abs]
354 416 rhoads
#define rand (unsigned int)DllF[ENUM_rand]
355 359 rhoads
#define srand DllF[ENUM_srand]
356
#define strtol (int)DllF[ENUM_strtol]
357
#define atoi (int)DllF[ENUM_atoi]
358
#define itoa DllF[ENUM_itoa]
359 416 rhoads
#define sprintf (int)DllF[ENUM_sprintf]
360
#define sscanf (int)DllF[ENUM_sscanf]
361 359 rhoads
#define dump DllF[ENUM_dump]
362
#define qsort DllF[ENUM_qsort]
363
#define bsearch DllF[ENUM_bsearch]
364
#define mktime DllF[ENUM_mktime]
365
#define gmtime_r DllF[ENUM_gmtime_r]
366
#define gmtimeDst DllF[ENUM_gmtimeDst]
367
#define gmtimeDstSet DllF[ENUM_gmtimeDstSet]
368
#define OS_AsmInterruptEnable (int)DllF[ENUM_OS_AsmInterruptEnable]
369
#define OS_HeapCreate DllF[ENUM_OS_HeapCreate]
370
#define OS_HeapDestroy DllF[ENUM_OS_HeapDestroy]
371
#define OS_HeapMalloc DllF[ENUM_OS_HeapMalloc]
372
#define OS_HeapFree DllF[ENUM_OS_HeapFree]
373
#define OS_HeapAlternate DllF[ENUM_OS_HeapAlternate]
374
#define OS_HeapRegister DllF[ENUM_OS_HeapRegister]
375
#define OS_ThreadCreate DllF[ENUM_OS_ThreadCreate]
376
#define OS_ThreadExit DllF[ENUM_OS_ThreadExit]
377
#define OS_ThreadSelf DllF[ENUM_OS_ThreadSelf]
378
#define OS_ThreadSleep DllF[ENUM_OS_ThreadSleep]
379 416 rhoads
#define OS_ThreadTime (int)DllF[ENUM_OS_ThreadTime]
380 359 rhoads
#define OS_ThreadInfoSet DllF[ENUM_OS_ThreadInfoSet]
381
#define OS_ThreadInfoGet DllF[ENUM_OS_ThreadInfoGet]
382
#define OS_ThreadPriorityGet (int)DllF[ENUM_OS_ThreadPriorityGet]
383
#define OS_ThreadPrioritySet DllF[ENUM_OS_ThreadPrioritySet]
384
#define OS_ThreadProcessId DllF[ENUM_OS_ThreadProcessId]
385
#define OS_ThreadCpuLock DllF[ENUM_OS_ThreadCpuLock]
386
#define OS_SemaphoreCreate DllF[ENUM_OS_SemaphoreCreate]
387
#define OS_SemaphoreDelete DllF[ENUM_OS_SemaphoreDelete]
388
#define OS_SemaphorePend (int)DllF[ENUM_OS_SemaphorePend]
389
#define OS_SemaphorePost DllF[ENUM_OS_SemaphorePost]
390
#define OS_MutexCreate DllF[ENUM_OS_MutexCreate]
391
#define OS_MutexDelete DllF[ENUM_OS_MutexDelete]
392
#define OS_MutexPend (int)DllF[ENUM_OS_MutexPend]
393
#define OS_MutexPost DllF[ENUM_OS_MutexPost]
394
#define OS_MQueueCreate DllF[ENUM_OS_MQueueCreate]
395
#define OS_MQueueDelete DllF[ENUM_OS_MQueueDelete]
396
#define OS_MQueueSend DllF[ENUM_OS_MQueueSend]
397
#define OS_MQueueGet (int)DllF[ENUM_OS_MQueueGet]
398
#define OS_Job DllF[ENUM_OS_Job]
399
#define OS_TimerCreate DllF[ENUM_OS_TimerCreate]
400
#define OS_TimerDelete DllF[ENUM_OS_TimerDelete]
401
#define OS_TimerCallback DllF[ENUM_OS_TimerCallback]
402
#define OS_TimerStart DllF[ENUM_OS_TimerStart]
403
#define OS_TimerStop DllF[ENUM_OS_TimerStop]
404
#define OS_InterruptRegister DllF[ENUM_OS_InterruptRegister]
405
#define OS_InterruptStatus (int)DllF[ENUM_OS_InterruptStatus]
406
#define OS_InterruptMaskSet DllF[ENUM_OS_InterruptMaskSet]
407
#define OS_InterruptMaskClear DllF[ENUM_OS_InterruptMaskClear]
408
#define UartPrintf DllF[ENUM_UartPrintf]
409
#define UartPrintfPoll DllF[ENUM_UartPrintfPoll]
410
#define UartPrintfCritical DllF[ENUM_UartPrintfCritical]
411
#define UartScanf DllF[ENUM_UartScanf]
412 402 rhoads
#define OS_puts DllF[ENUM_OS_puts]
413
#define OS_getch (int)DllF[ENUM_OS_getch]
414
#define OS_kbhit (int)DllF[ENUM_OS_kbhit]
415 359 rhoads
#define Led DllF[ENUM_Led]
416
#define FP_Sqrt (float)(int)DllF[ENUM_FP_Sqrt]
417
#define FP_Cos (float)(int)DllF[ENUM_FP_Cos]
418
#define FP_Sin (float)(int)DllF[ENUM_FP_Sin]
419
#define FP_Atan (float)(int)DllF[ENUM_FP_Atan]
420
#define FP_Atan2 (float)(int)DllF[ENUM_FP_Atan2]
421
#define FP_Exp (float)(int)DllF[ENUM_FP_Exp]
422
#define FP_Log (float)(int)DllF[ENUM_FP_Log]
423
#define FP_Pow (float)(int)DllF[ENUM_FP_Pow]
424
#define OS_fopen DllF[ENUM_OS_fopen]
425
#define OS_fclose DllF[ENUM_OS_fclose]
426
#define OS_fread (int)DllF[ENUM_OS_fread]
427 416 rhoads
#define OS_fwrite (int)DllF[ENUM_OS_fwrite]
428
#define OS_fseek (int)DllF[ENUM_OS_fseek]
429 359 rhoads
#define OS_fmkdir DllF[ENUM_OS_fmkdir]
430
#define OS_fdir DllF[ENUM_OS_fdir]
431
#define OS_fdelete DllF[ENUM_OS_fdelete]
432
#define FlashRead DllF[ENUM_FlashRead]
433
#define FlashWrite DllF[ENUM_FlashWrite]
434
#define FlashErase DllF[ENUM_FlashErase]
435
#define IPOpen DllF[ENUM_IPOpen]
436
#define IPWriteFlush DllF[ENUM_IPWriteFlush]
437
#define IPWrite (int)DllF[ENUM_IPWrite]
438
#define IPRead (int)DllF[ENUM_IPRead]
439
#define IPClose DllF[ENUM_IPClose]
440 416 rhoads
#define IPPrintf (int)DllF[ENUM_IPPrintf]
441 359 rhoads
#define IPResolve DllF[ENUM_IPResolve]
442
#define IPAddressSelf (int)DllF[ENUM_IPAddressSelf]
443
#define IPNameValue DllF[ENUM_IPNameValue]
444 416 rhoads
#define time(P) OS_ThreadTime()
445 359 rhoads
 
446
#endif //DLL_CALL
447
 
448
 
449
#if defined(DLL_SETUP) && defined(DLL_CALL)
450
const DllFunc *DllF = DllFuncList;
451
#elif !defined(DLL_SETUP) && !defined(DLL_CALL) && !defined(DLL_ENTRY)
452
#define DLL_ENTRY 1
453
#endif //DLL_SETUP && DLL_CALL
454
 
455
 
456
// Included by DLL to initialize the DLL
457
#if defined(DLL_ENTRY) && !defined(NO_DLL_ENTRY)
458 416 rhoads
const DllFunc *DllF;         //array of function pointers
459
int main(int argc, char *argv[]);
460 359 rhoads
 
461
//Must be first function in file
462 416 rhoads
int __start(int argc, char *argv[])
463 359 rhoads
{
464 416 rhoads
   extern void *__bss_start;
465
   extern void *_end;
466
   int *bss = (int*)&__bss_start;
467
 
468
   if(bss == (int*)DllF)
469
      ++bss;
470
   while(bss < (int*)&_end)
471
      *bss++ = 0;
472
   DllF = (DllFunc*)argv[-1];
473
   return main(argc, argv);
474 359 rhoads
}
475 416 rhoads
 
476
#ifdef INCLUDE_MATH
477
typedef float (*DllFloat)(float);
478
typedef float (*DllFloat2)(float,float);
479
typedef long (*DllFloat3)(float);
480
float __negsf2(float a) {return ((DllFloat)DllF[ENUM_NEGSF2])(a);}
481
float __addsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_ADDSF3])(a,b);}
482
float __subsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_SUBSF3])(a,b);}
483
float __mulsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_MULSF3])(a,b);}
484
float __divsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_DIVSF3])(a,b);}
485
long __fixsfsi(float a) {return ((DllFloat3)DllF[ENUM_FIXSFSI])(a);}
486
float __floatsisf(long a) {return ((DllFloat)DllF[ENUM_FLOATSISF])(a);}
487
#endif
488
 
489 359 rhoads
#endif //DLL_ENTRY
490
 
491
 
492
#ifdef DLL_STRINGS
493
const char * const DllStrings[] = {
494 416 rhoads
   "printf",
495
   "scanf",
496
   "kbhit",
497
   "getch",
498 359 rhoads
   "strcpy",
499
   "strncpy",
500
   "strcat",
501
   "strncat",
502
   "strcmp",
503
   "strncmp",
504
   "strstr",
505
   "strlen",
506
   "memcpy",
507
   "memmove",
508
   "memcmp",
509
   "memset",
510
   "abs",
511
   "rand",
512
   "srand",
513
   "strtol",
514
   "atoi",
515
   "itoa",
516
   "sprintf",
517
   "sscanf",
518
   "dump",
519
   "qsort",
520
   "bsearch",
521
   "mktime",
522
   "gmtime_r",
523
   "gmtimeDst",
524
   "gmtimeDstSet",
525
   "OS_AsmInterruptEnable",
526
   "OS_HeapCreate",
527
   "OS_HeapDestroy",
528
   "OS_HeapMalloc",
529
   "OS_HeapFree",
530
   "OS_HeapAlternate",
531
   "OS_HeapRegister",
532
   "OS_ThreadCreate",
533
   "OS_ThreadExit",
534
   "OS_ThreadSelf",
535
   "OS_ThreadSleep",
536
   "OS_ThreadTime",
537
   "OS_ThreadInfoSet",
538
   "OS_ThreadInfoGet",
539
   "OS_ThreadPriorityGet",
540
   "OS_ThreadPrioritySet",
541
   "OS_ThreadProcessId",
542
   "OS_ThreadCpuLock",
543
   "OS_SemaphoreCreate",
544
   "OS_SemaphoreDelete",
545
   "OS_SemaphorePend",
546
   "OS_SemaphorePost",
547
   "OS_MutexCreate",
548
   "OS_MutexDelete",
549
   "OS_MutexPend",
550
   "OS_MutexPost",
551
   "OS_MQueueCreate",
552
   "OS_MQueueDelete",
553
   "OS_MQueueSend",
554
   "OS_MQueueGet",
555
   "OS_Job",
556
   "OS_TimerCreate",
557
   "OS_TimerDelete",
558
   "OS_TimerCallback",
559
   "OS_TimerStart",
560
   "OS_TimerStop",
561
   "OS_InterruptRegister",
562
   "OS_InterruptStatus",
563
   "OS_InterruptMaskSet",
564
   "OS_InterruptMaskClear",
565 416 rhoads
   "UartPrintf",
566 359 rhoads
   "UartPrintfPoll",
567
   "UartPrintfCritical",
568 416 rhoads
   "UartScanf",
569 402 rhoads
   "OS_puts",
570
   "OS_getch",
571
   "OS_kbhit",
572 359 rhoads
   "Led",
573 416 rhoads
   "FP_Neg",
574
   "FP_Add",
575
   "FP_Sub",
576
   "FP_Mult",
577
   "FP_Div",
578
   "FP_ToInt",
579
   "FP_ToLong",
580 359 rhoads
   "FP_Sqrt",
581
   "FP_Cos",
582
   "FP_Sin",
583
   "FP_Atan",
584
   "FP_Atan2",
585
   "FP_Exp",
586
   "FP_Log",
587
   "FP_Pow",
588
   "OS_fopen",
589
   "OS_fclose",
590
   "OS_fread",
591
   "OS_fwrite",
592
   "OS_fseek",
593
   "OS_fmkdir",
594
   "OS_fdir",
595
   "OS_fdelete",
596
   "FlashRead",
597
   "FlashWrite",
598
   "FlashErase",
599
   "IPOpen",
600
   "IPWriteFlush",
601
   "IPWrite",
602
   "IPRead",
603
   "IPClose",
604
   "IPPrintf",
605
   "IPResolve",
606
   "IPAddressSelf",
607
   "IPNameValue",
608
   NULL
609
};
610
#endif //DLL_STRINGS
611
 
612
#endif //__DLL_H__
613
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.