SWILIB API (X75)    
Loading...
Searching...
No Matches
nucleus.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef __IN_SWILIB__
4#include "base.h"
5#endif
6
8
17#define NU_SWILIB_BEGIN_NUMBER 0x300
18
19typedef unsigned long UNSIGNED;
20typedef long SIGNED;
21typedef unsigned char DATA_ELEMENT;
23typedef int STATUS;
24typedef unsigned char UNSIGNED_CHAR;
25typedef char CHAR;
26typedef int INT;
27typedef unsigned long * UNSIGNED_PTR;
28typedef unsigned char * BYTE_PTR;
30typedef unsigned int UNSIGNED_INT;
31
32#define VOID void
33
34/* Define constants that are target dependent and/or are used for internal
35 purposes. */
36
37#define NU_MIN_STACK_SIZE 240
38#define NU_MAX_NAME 8
39#define NU_MAX_VECTORS 64
40#define NU_MAX_LISRS 8
41
42/* Sizes of the structures. */
43#define NU_TASK_SIZE 42 + 4
44#define NU_HISR_SIZE 22 + 4
45#define NU_MAILBOX_SIZE 13 + 4
46#define NU_QUEUE_SIZE 18 + 50
47#define NU_PIPE_SIZE 18 + 4
48#define NU_SEMAPHORE_SIZE 10 + 4
49#define NU_EVENT_GROUP_SIZE 9 + 4
50#define NU_PARTITION_POOL_SIZE 15 + 4
51#define NU_MEMORY_POOL_SIZE 17 + 4
52#define NU_TIMER_SIZE 17 + 4
53#define NU_PROTECT_SIZE 2 + 4
54#define NU_DRIVER_SIZE 3 + 4
55
59
63
67
71
75
79
83
87
91
95
99
100/* Define I/O driver request structures. */
101
103 VOID *nu_io_address; /* Base IO address */
104 UNSIGNED nu_logical_units; /* Number of logical units */
105 VOID *nu_memory; /* Generic memory pointer */
106 INT nu_vector; /* Interrupt vector number */
107};
108
110 UNSIGNED nu_logical_unit; /* Logical unit number */
111 INT nu_assign_info; /* Additional assign info */
112};
113
115 UNSIGNED nu_logical_unit; /* Logical unit number */
116 INT nu_release_info; /* Additional release info */
117};
118
120 UNSIGNED nu_logical_unit; /* Logical unit number */
121 UNSIGNED nu_offset; /* Offset of input */
122 UNSIGNED nu_request_size; /* Requested input size */
123 UNSIGNED nu_actual_size; /* Actual input size */
124 VOID *nu_buffer_ptr; /* Input buffer pointer */
125};
126
128 UNSIGNED nu_logical_unit; /* Logical unit number */
129 UNSIGNED nu_offset; /* Offset of output */
130 UNSIGNED nu_request_size; /* Requested output size */
131 UNSIGNED nu_actual_size; /* Actual output size */
132 VOID *nu_buffer_ptr; /* Output buffer pointer */
133};
134
136 UNSIGNED nu_logical_unit; /* Logical unit number */
137 VOID *nu_extra_status; /* Additional status ptr */
138};
139
141 UNSIGNED nu_logical_unit; /* Logical unit number */
142};
143
153
155 INT nu_function; /* I/O request function */
156 UNSIGNED nu_timeout; /* Timeout on request */
157 STATUS nu_status; /* Status of request */
158 UNSIGNED nu_supplemental; /* Supplemental information */
159 VOID *nu_supplemental_ptr; /* Supplemental info pointer*/
162
170
171/* Task suspension constants. */
172#define NU_DRIVER_SUSPEND 10
173#define NU_EVENT_SUSPEND 7
174#define NU_FINISHED 11
175#define NU_MAILBOX_SUSPEND 3
176#define NU_MEMORY_SUSPEND 9
177#define NU_PARTITION_SUSPEND 8
178#define NU_PIPE_SUSPEND 5
179#define NU_PURE_SUSPEND 1
180#define NU_QUEUE_SUSPEND 4
181#define NU_READY 0
182#define NU_SEMAPHORE_SUSPEND 6
183#define NU_SLEEP_SUSPEND 2
184#define NU_TERMINATED 12
185
186/* Constants for use in service parameters. */
187#define NU_AND 2
188#define NU_AND_CONSUME 3
189#define NU_DISABLE_TIMER 4
190#define NU_ENABLE_TIMER 5
191#define NU_FALSE 0
192#define NU_FIFO 6
193#define NU_FIXED_SIZE 7
194#define NU_NO_PREEMPT 8
195#define NU_NO_START 9
196#define NU_NO_SUSPEND 0
197#define NU_NULL 0
198#define NU_OR 0
199#define NU_OR_CONSUME 1
200#define NU_PREEMPT 10
201#define NU_PRIORITY 11
202#define NU_START 12
203#define NU_SUSPEND 0xFFFFFFFFUL
204#define NU_TRUE 1
205#define NU_VARIABLE_SIZE 13
206
207/* Service completion status constants. */
208#define NU_SUCCESS 0
209#define NU_END_OF_LOG -1
210#define NU_GROUP_DELETED -2
211#define NU_INVALID_DELETE -3
212#define NU_INVALID_DRIVER -4
213#define NU_INVALID_ENABLE -5
214#define NU_INVALID_ENTRY -6
215#define NU_INVALID_FUNCTION -7
216#define NU_INVALID_GROUP -8
217#define NU_INVALID_HISR -9
218#define NU_INVALID_MAILBOX -10
219#define NU_INVALID_MEMORY -11
220#define NU_INVALID_MESSAGE -12
221#define NU_INVALID_OPERATION -13
222#define NU_INVALID_PIPE -14
223#define NU_INVALID_POINTER -15
224#define NU_INVALID_POOL -16
225#define NU_INVALID_PREEMPT -17
226#define NU_INVALID_PRIORITY -18
227#define NU_INVALID_QUEUE -19
228#define NU_INVALID_RESUME -20
229#define NU_INVALID_SEMAPHORE -21
230#define NU_INVALID_SIZE -22
231#define NU_INVALID_START -23
232#define NU_INVALID_SUSPEND -24
233#define NU_INVALID_TASK -25
234#define NU_INVALID_TIMER -26
235#define NU_INVALID_VECTOR -27
236#define NU_MAILBOX_DELETED -28
237#define NU_MAILBOX_EMPTY -29
238#define NU_MAILBOX_FULL -30
239#define NU_MAILBOX_RESET -31
240#define NU_NO_MEMORY -32
241#define NU_NO_MORE_LISRS -33
242#define NU_NO_PARTITION -34
243#define NU_NOT_DISABLED -35
244#define NU_NOT_PRESENT -36
245#define NU_NOT_REGISTERED -37
246#define NU_NOT_TERMINATED -38
247#define NU_PIPE_DELETED -39
248#define NU_PIPE_EMPTY -40
249#define NU_PIPE_FULL -41
250#define NU_PIPE_RESET -42
251#define NU_POOL_DELETED -43
252#define NU_QUEUE_DELETED -44
253#define NU_QUEUE_EMPTY -45
254#define NU_QUEUE_FULL -46
255#define NU_QUEUE_RESET -47
256#define NU_SEMAPHORE_DELETED -48
257#define NU_SEMAPHORE_RESET -49
258#define NU_TIMEOUT -50
259#define NU_UNAVAILABLE -51
260#define NU_INVALID_DESCRIPTION -52
261#define NU_INVALID_REGION -53
262#define NU_MEMORY_CORRUPT -54
263#define NU_INVALID_DEBUG_ALLOCATION -55
264#define NU_EMPTY_DEBUG_ALLOCATION_LIST -56
265
266/* System errors. */
267#define NU_ERROR_CREATING_TIMER_HISR 1
268#define NU_ERROR_CREATING_TIMER_TASK 2
269#define NU_STACK_OVERFLOW 3
270#define NU_UNHANDLED_INTERRUPT 4
271
272/* I/O driver constants. */
273#define NU_IO_ERROR -1
274#define NU_INITIALIZE 1
275#define NU_ASSIGN 2
276#define NU_RELEASE 3
277#define NU_INPUT 4
278#define NU_OUTPUT 5
279#define NU_STATUS 6
280#define NU_TERMINATE 7
281
282/* History entry IDs. */
283#define NU_USER_ID 1
284#define NU_CREATE_TASK_ID 2
285#define NU_DELETE_TASK_ID 3
286#define NU_RESET_TASK_ID 4
287#define NU_TERMINATE_TASK_ID 5
288#define NU_RESUME_TASK_ID 6
289#define NU_SUSPEND_TASK_ID 7
290#define NU_RELINQUISH_ID 8
291#define NU_SLEEP_ID 9
292#define NU_CHANGE_PRIORITY_ID 10
293#define NU_CHANGE_PREEMPTION_ID 11
294#define NU_CREATE_MAILBOX_ID 12
295#define NU_DELETE_MAILBOX_ID 13
296#define NU_RESET_MAILBOX_ID 14
297#define NU_SEND_TO_MAILBOX_ID 15
298#define NU_BROADCAST_TO_MAILBOX_ID 16
299#define NU_RECEIVE_FROM_MAILBOX_ID 17
300#define NU_CREATE_QUEUE_ID 18
301#define NU_DELETE_QUEUE_ID 19
302#define NU_RESET_QUEUE_ID 20
303#define NU_SEND_TO_FRONT_OF_QUEUE_ID 21
304#define NU_SEND_TO_QUEUE_ID 22
305#define NU_BROADCAST_TO_QUEUE_ID 23
306#define NU_RECEIVE_FROM_QUEUE_ID 24
307#define NU_CREATE_PIPE_ID 25
308#define NU_DELETE_PIPE_ID 26
309#define NU_RESET_PIPE_ID 27
310#define NU_SEND_TO_FRONT_OF_PIPE_ID 28
311#define NU_SEND_TO_PIPE_ID 29
312#define NU_BROADCAST_TO_PIPE_ID 30
313#define NU_RECEIVE_FROM_PIPE_ID 31
314#define NU_CREATE_SEMAPHORE_ID 32
315#define NU_DELETE_SEMAPHORE_ID 33
316#define NU_RESET_SEMAPHORE_ID 34
317#define NU_OBTAIN_SEMAPHORE_ID 35
318#define NU_RELEASE_SEMAPHORE_ID 36
319#define NU_CREATE_EVENT_GROUP_ID 37
320#define NU_DELETE_EVENT_GROUP_ID 38
321#define NU_SET_EVENTS_ID 39
322#define NU_RETRIEVE_EVENTS_ID 40
323#define NU_CREATE_PARTITION_POOL_ID 41
324#define NU_DELETE_PARTITION_POOL_ID 42
325#define NU_ALLOCATE_PARTITION_ID 43
326#define NU_DEALLOCATE_PARTITION_ID 44
327#define NU_CREATE_MEMORY_POOL_ID 45
328#define NU_DELETE_MEMORY_POOL_ID 46
329#define NU_ALLOCATE_MEMORY_ID 47
330#define NU_DEALLOCATE_MEMORY_ID 48
331#define NU_CONTROL_SIGNALS_ID 49
332#define NU_RECEIVE_SIGNALS_ID 50
333#define NU_REGISTER_SIGNAL_HANDLER_ID 51
334#define NU_SEND_SIGNALS_ID 52
335#define NU_REGISTER_LISR_ID 53
336#define NU_CREATE_HISR_ID 54
337#define NU_DELETE_HISR_ID 55
338#define NU_CREATE_TIMER_ID 56
339#define NU_DELETE_TIMER_ID 57
340#define NU_CONTROL_TIMER_ID 58
341#define NU_RESET_TIMER_ID 59
342#define NU_CREATE_DRIVER_ID 60
343#define NU_DELETE_DRIVER_ID 61
344#define NU_REQUEST_DRIVER_ID 62
345#define NU_RESUME_DRIVER_ID 63
346#define NU_SUSPEND_DRIVER_ID 64
347#define NU_CHANGE_TIME_SLICE_ID 65
348#define NU_ASSERT_ID 66
349#define NU_ALLOCATE_ALIGNED_ID 67
350
355__swi_begin(0x300)
356int NU_Create_Task(NU_TASK *task, CHAR *name,
357 void (*task_entry)(unsigned long, void *), unsigned long argc,
358 void *argv, void *stack_address, unsigned long stack_size,
359 OPTION priority, unsigned long time_slice,
360 OPTION preempt, OPTION auto_start)
361__swi_end(0x300, NU_Create_Task, (task, name, task_entry, argc, argv, stack_address, stack_size, priority, time_slice, preempt, auto_start));
362
363
364__swi_begin(0x301)
366__swi_end(0x301, NU_Delete_Task, (task));
367
368
369__swi_begin(0x302)
370int NU_Reset_Task(NU_TASK *task, unsigned long argc, void *argv)
371__swi_end(0x302, NU_Reset_Task, (task, argc, argv));
372
373
374__swi_begin(0x303)
376__swi_end(0x303, NU_Terminate_Task, (task));
377
378
379__swi_begin(0x304)
381__swi_end(0x304, NU_Resume_Task, (task));
382
383
384__swi_begin(0x305)
386__swi_end(0x305, NU_Suspend_Task, (task));
387
388
389__swi_begin(0x306)
391__swi_end(0x306, NU_Relinquish, ());
392
393
394__swi_begin(0x307)
395void NU_Sleep(unsigned long ticks)
396__swi_end(0x307, NU_Sleep, (ticks));
397
398
399__swi_begin(0x308)
401__swi_end(0x308, NU_Change_Priority, (task, new_priority));
402
403
404__swi_begin(0x309)
406__swi_end(0x309, NU_Change_Preemption, (preempt));
407
408
409__swi_begin(0x30A)
410unsigned long NU_Change_Time_Slice(NU_TASK *task, unsigned long time_slice)
411__swi_end(0x30A, NU_Change_Time_Slice, (task, time_slice));
412
413
414__swi_begin(0x30B)
415unsigned long NU_Check_Stack(void)
416__swi_end(0x30B, NU_Check_Stack, ());
417
418
419__swi_begin(0x30C)
422
423
424__swi_begin(0x30D)
425unsigned long NU_Established_Tasks(void)
427
428
429__swi_begin(0x30E)
431 DATA_ELEMENT *status, unsigned long *scheduled_count,
432 OPTION *priority, OPTION *preempt,
433 unsigned long *time_slice, void **stack_base,
434 unsigned long *stack_size, unsigned long *minimum_stack)
435__swi_end(0x30E, NU_Task_Information, (task, name, status, scheduled_count, priority, preempt, time_slice, stack_base, stack_size, minimum_stack));
436
437
438__swi_begin(0x30F)
439unsigned long NU_Task_Pointers(NU_TASK **pointer_list, unsigned long maximum_pointers)
440__swi_end(0x30F, NU_Task_Pointers, (pointer_list, maximum_pointers));
441
448__swi_begin(0x310)
449int NU_Create_Mailbox(NU_MAILBOX *mailbox, CHAR *name, OPTION suspend_type)
450__swi_end(0x310, NU_Create_Mailbox, (mailbox, name, suspend_type));
451
452
453__swi_begin(0x311)
455__swi_end(0x311, NU_Delete_Mailbox, (mailbox));
456
457
458__swi_begin(0x312)
460__swi_end(0x312, NU_Reset_Mailbox, (mailbox));
461
462
463__swi_begin(0x313)
464int NU_Send_To_Mailbox(NU_MAILBOX *mailbox, void *message, unsigned long suspend)
465__swi_end(0x313, NU_Send_To_Mailbox, (mailbox, message, suspend));
466
467
468__swi_begin(0x314)
469int NU_Broadcast_To_Mailbox(NU_MAILBOX *mailbox, void *message, unsigned long suspend)
470__swi_end(0x314, NU_Broadcast_To_Mailbox, (mailbox, message, suspend));
471
472
473__swi_begin(0x315)
474int NU_Receive_From_Mailbox(NU_MAILBOX *mailbox, void *message,
475 unsigned long suspend)
476__swi_end(0x315, NU_Receive_From_Mailbox, (mailbox, message, suspend));
477
478
479__swi_begin(0x316)
480unsigned long NU_Established_Mailboxes(void)
482
483
484__swi_begin(0x317)
486 OPTION *suspend_type, OPTION *message_present,
487 unsigned long *tasks_waiting, NU_TASK **first_task)
488__swi_end(0x317, NU_Mailbox_Information, (mailbox, name, suspend_type, message_present, tasks_waiting, first_task));
489
490
491__swi_begin(0x318)
492unsigned long NU_Mailbox_Pointers(NU_MAILBOX **pointer_list, unsigned long maximum_pointers)
493__swi_end(0x318, NU_Mailbox_Pointers, (pointer_list, maximum_pointers));
494
501__swi_begin(0x319)
502int NU_Create_Queue(NU_QUEUE *queue, CHAR *name,
503 void *start_address, unsigned long queue_size,
504 OPTION message_type, unsigned long message_size,
505 OPTION suspend_type)
506__swi_end(0x319, NU_Create_Queue, (queue, name, start_address, queue_size, message_type, message_size, suspend_type));
507
508
509__swi_begin(0x31A)
511__swi_end(0x31A, NU_Delete_Queue, (queue));
512
513
514__swi_begin(0x31B)
516__swi_end(0x31B, NU_Reset_Queue, (queue));
517
518
519__swi_begin(0x31C)
520int NU_Send_To_Front_Of_Queue(NU_QUEUE *queue, void *message,
521 unsigned long size, unsigned long suspend)
522__swi_end(0x31C, NU_Send_To_Front_Of_Queue, (queue, message, size, suspend));
523
524
525__swi_begin(0x31D)
526int NU_Send_To_Queue(NU_QUEUE *queue, void *message,
527 unsigned long size, unsigned long suspend)
528__swi_end(0x31D, NU_Send_To_Queue, (queue, message, size, suspend));
529
530
531__swi_begin(0x31E)
532int NU_Broadcast_To_Queue(NU_QUEUE *queue, void *message,
533 unsigned long size, unsigned long suspend)
534__swi_end(0x31E, NU_Broadcast_To_Queue, (queue, message, size, suspend));
535
536
537__swi_begin(0x31F)
538int NU_Receive_From_Queue(NU_QUEUE *queue, void *message,
539 unsigned long size, unsigned long *actual_size, unsigned long suspend)
540__swi_end(0x31F, NU_Receive_From_Queue, (queue, message, size, actual_size, suspend));
541
542
543__swi_begin(0x320)
544unsigned long NU_Established_Queues(void)
546
547
548__swi_begin(0x321)
550 void **start_address, unsigned long *queue_size,
551 unsigned long *available, unsigned long *messages,
552 OPTION *message_type, unsigned long *message_size,
553 OPTION *suspend_type, unsigned long *tasks_waiting,
554 NU_TASK **first_task)
555__swi_end(0x321, NU_Queue_Information, (queue, name, start_address, queue_size, available, messages, message_type, message_size, suspend_type, tasks_waiting, first_task));
556
557
558__swi_begin(0x322)
559unsigned long NU_Queue_Pointers(NU_QUEUE **pointer_list,
560 unsigned long maximum_pointers)
561__swi_end(0x322, NU_Queue_Pointers, (pointer_list, maximum_pointers));
562
569__swi_begin(0x323)
570int NU_Create_Pipe(NU_PIPE *pipe, CHAR *name,
571 void *start_address, unsigned long pipe_size,
572 OPTION message_type, unsigned long message_size,
573 OPTION suspend_type)
574__swi_end(0x323, NU_Create_Pipe, (pipe, name, start_address, pipe_size, message_type, message_size, suspend_type));
575
576
577__swi_begin(0x324)
579__swi_end(0x324, NU_Delete_Pipe, (pipe));
580
581
582__swi_begin(0x325)
584__swi_end(0x325, NU_Reset_Pipe, (pipe));
585
586
587__swi_begin(0x326)
588int NU_Send_To_Front_Of_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
589__swi_end(0x326, NU_Send_To_Front_Of_Pipe, (pipe, message, size, suspend));
590
591
592__swi_begin(0x327)
593int NU_Send_To_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
594__swi_end(0x327, NU_Send_To_Pipe, (pipe, message, size, suspend));
595
596
597__swi_begin(0x328)
598int NU_Broadcast_To_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
599__swi_end(0x328, NU_Broadcast_To_Pipe, (pipe, message, size, suspend));
600
601
602__swi_begin(0x329)
603int NU_Receive_From_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long *actual_size, unsigned long suspend)
604__swi_end(0x329, NU_Receive_From_Pipe, (pipe, message, size, actual_size, suspend));
605
606
607__swi_begin(0x32A)
608unsigned long NU_Established_Pipes(void)
610
611
612__swi_begin(0x32B)
614 void **start_address, unsigned long *pipe_size,
615 unsigned long *available, unsigned long *messages,
616 OPTION *message_type, unsigned long *message_size,
617 OPTION *suspend_type, unsigned long *tasks_waiting,
618 NU_TASK **first_task)
619__swi_end(0x32B, NU_Pipe_Information, (pipe, name, start_address, pipe_size, available, messages, message_type, message_size, suspend_type, tasks_waiting, first_task));
620
621
622__swi_begin(0x32C)
623unsigned long NU_Pipe_Pointers(NU_PIPE **pointer_list, unsigned long maximum_pointers)
624__swi_end(0x32C, NU_Pipe_Pointers, (pointer_list, maximum_pointers));
625
632__swi_begin(0x32D)
633int NU_Create_Semaphore(NU_SEMAPHORE *semaphore, CHAR *name, unsigned long initial_count, OPTION suspend_type)
634__swi_end(0x32D, NU_Create_Semaphore, (semaphore, name, initial_count, suspend_type));
635
636
637__swi_begin(0x32E)
639__swi_end(0x32E, NU_Delete_Semaphore, (semaphore));
640
641
642__swi_begin(0x32F)
643int NU_Reset_Semaphore(NU_SEMAPHORE *semaphore, unsigned long initial_count)
644__swi_end(0x32F, NU_Reset_Semaphore, (semaphore, initial_count));
645
646
647__swi_begin(0x330)
648int NU_Obtain_Semaphore(NU_SEMAPHORE *semaphore, unsigned long suspend)
649__swi_end(0x330, NU_Obtain_Semaphore, (semaphore, suspend));
650
651
652__swi_begin(0x331)
654__swi_end(0x331, NU_Release_Semaphore, (semaphore));
655
656
657__swi_begin(0x332)
658unsigned long NU_Established_Semaphores(void)
660
661
662__swi_begin(0x333)
664 unsigned long *current_count, OPTION *suspend_type,
665 unsigned long *tasks_waiting, NU_TASK **first_task)
666__swi_end(0x333, NU_Semaphore_Information, (semaphore, name, current_count, suspend_type, tasks_waiting, first_task));
667
668
669__swi_begin(0x334)
670unsigned long NU_Semaphore_Pointers(NU_SEMAPHORE **pointer_list,
671 unsigned long maximum_pointers)
672__swi_end(0x334, NU_Semaphore_Pointers, (pointer_list, maximum_pointers));
673
680__swi_begin(0x335)
682__swi_end(0x335, NU_Create_Event_Group, (group, name));
683
684
685__swi_begin(0x336)
687__swi_end(0x336, NU_Delete_Event_Group, (group));
688
689
690__swi_begin(0x337)
691int NU_Set_Events(NU_EVENT_GROUP *group, unsigned long events, OPTION operation)
692__swi_end(0x337, NU_Set_Events, (group, events, operation));
693
694
695__swi_begin(0x338)
697 unsigned long requested_flags, OPTION operation,
698 unsigned long *retrieved_flags, unsigned long suspend)
699__swi_end(0x338, NU_Retrieve_Events, (group, requested_flags, operation, retrieved_flags, suspend));
700
701
702__swi_begin(0x339)
705
706
707__swi_begin(0x33A)
709 unsigned long *event_flags, unsigned long *tasks_waiting,
710 NU_TASK **first_task)
711__swi_end(0x33A, NU_Event_Group_Information, (group, name, event_flags, tasks_waiting, first_task));
712
713
714__swi_begin(0x33B)
715unsigned long NU_Event_Group_Pointers(NU_EVENT_GROUP **pointer_list,
716 unsigned long maximum_pointers)
717__swi_end(0x33B, NU_Event_Group_Pointers, (pointer_list, maximum_pointers));
718
725__swi_begin(0x33C)
726unsigned long NU_Control_Signals(unsigned long signal_enable_mask)
727__swi_end(0x33C, NU_Control_Signals, (signal_enable_mask));
728
729
730__swi_begin(0x33D)
731unsigned long NU_Receive_Signals(void)
732__swi_end(0x33D, NU_Receive_Signals, ());
733
734
735__swi_begin(0x33E)
736STATUS NU_Register_Signal_Handler(void (*signal_handler)(unsigned long))
737__swi_end(0x33E, NU_Register_Signal_Handler, (signal_handler));
738
739
740__swi_begin(0x33F)
741STATUS NU_Send_Signals(NU_TASK *task, unsigned long signals)
742__swi_end(0x33F, NU_Send_Signals, (task, signals));
743
750__swi_begin(0x340)
752 void *start_address, unsigned long pool_size,
753 unsigned long partition_size, OPTION suspend_type)
754__swi_end(0x340, NU_Create_Partition_Pool, (pool, name, start_address, pool_size, partition_size, suspend_type));
755
756
757__swi_begin(0x341)
759__swi_end(0x341, NU_Delete_Partition_Pool, (pool));
760
761
762__swi_begin(0x342)
764 void **return_pointer, unsigned long suspend)
765__swi_end(0x342, NU_Allocate_Partition, (pool, return_pointer, suspend));
766
767
768__swi_begin(0x343)
769int NU_Deallocate_Partition(void *partition)
770__swi_end(0x343, NU_Deallocate_Partition, (partition));
771
772
773__swi_begin(0x344)
776
777
778__swi_begin(0x345)
780 CHAR *name,
781 void **start_address, unsigned long *pool_size,
782 unsigned long *partition_size, unsigned long *available,
783 unsigned long *allocated, OPTION *suspend_type,
784 unsigned long *tasks_waiting, NU_TASK **first_task)
785__swi_end(0x345, NU_Partition_Pool_Information, (pool, name, start_address, pool_size, partition_size, available, allocated, suspend_type, tasks_waiting, first_task));
786
787
788__swi_begin(0x346)
790 unsigned long maximum_pointers)
791__swi_end(0x346, NU_Partition_Pool_Pointers, (pointer_list, maximum_pointers));
792
799__swi_begin(0x347)
801 void *start_address, unsigned long pool_size,
802 unsigned long min_allocation, OPTION suspend_type)
803__swi_end(0x347, NU_Create_Memory_Pool, (pool, name, start_address, pool_size, min_allocation, suspend_type));
804
805
806__swi_begin(0x348)
808__swi_end(0x348, NU_Delete_Memory_Pool, (pool));
809
810
811__swi_begin(0x349)
812int NU_Allocate_Memory(NU_MEMORY_POOL *pool, void **return_pointer,
813 unsigned long size, unsigned long suspend)
814__swi_end(0x349, NU_Allocate_Memory, (pool, return_pointer, size, suspend));
815
816
817__swi_begin(0x34A)
818int NU_Deallocate_Memory(void *memory)
819__swi_end(0x34A, NU_Deallocate_Memory, (memory));
820
821
822__swi_begin(0x34B)
825
826
827__swi_begin(0x34C)
829 void **start_address, unsigned long *pool_size,
830 unsigned long *min_allocation, unsigned long *available,
831 OPTION *suspend_type, unsigned long *tasks_waiting,
832 NU_TASK **first_task)
833__swi_end(0x34C, NU_Memory_Pool_Information, (pool, name, start_address, pool_size, min_allocation, available, suspend_type, tasks_waiting, first_task));
834
835
836__swi_begin(0x34D)
837unsigned long NU_Memory_Pool_Pointers(NU_MEMORY_POOL **pointer_list, unsigned long maximum_pointers)
838__swi_end(0x34D, NU_Memory_Pool_Pointers, (pointer_list, maximum_pointers));
839
846__swi_begin(0x34E)
848__swi_end(0x34E, NU_Control_Interrupts, (new_level));
849
850
851__swi_begin(0x34F)
853__swi_end(0x34F, NU_Local_Control_Interrupts, (new_level));
854
855
856__swi_begin(0x350)
859
860
861__swi_begin(0x351)
862void *NU_Setup_Vector(INT vector, void *new_vector)
863__swi_end(0x351, NU_Setup_Vector, (vector, new_vector));
864
865
866__swi_begin(0x352)
867int NU_Register_LISR(INT vector, void (*new_lisr)(INT), void (**old_lisr)(INT))
868__swi_end(0x352, NU_Register_LISR, (vector, new_lisr, old_lisr));
869
870
871__swi_begin(0x353)
873__swi_end(0x353, NU_Activate_HISR, (hisr));
874
875
876__swi_begin(0x354)
877int NU_Create_HISR(NU_HISR *hisr, CHAR *name, void (*hisr_entry)(void), OPTION priority, void *stack_address, unsigned long stack_size)
878__swi_end(0x354, NU_Create_HISR, (hisr, name, hisr_entry, priority, stack_address, stack_size));
879
880
881__swi_begin(0x355)
883__swi_end(0x355, NU_Delete_HISR, (hisr));
884
885
886__swi_begin(0x356)
889
890
891__swi_begin(0x357)
892unsigned long NU_Established_HISRs(void)
894
895
896__swi_begin(0x358)
898 unsigned long *scheduled_count, DATA_ELEMENT *priority,
899 void **stack_base, unsigned long *stack_size,
900 unsigned long *minimum_stack)
901__swi_end(0x358, NU_HISR_Information, (hisr, name, scheduled_count, priority, stack_base, stack_size, minimum_stack));
902
903
904__swi_begin(0x359)
905unsigned long NU_HISR_Pointers(NU_HISR **pointer_list, unsigned long maximum_pointers)
906__swi_end(0x359, NU_HISR_Pointers, (pointer_list, maximum_pointers));
907
908
909__swi_begin(0x35A)
910void NU_Protect(NU_PROTECT *protect_struct)
911__swi_end(0x35A, NU_Protect, (protect_struct));
912
913
914__swi_begin(0x35B)
915void NU_Unprotect(void)
916__swi_end(0x35B, NU_Unprotect, ());
917
924__swi_begin(0x35C)
925int NU_Create_Timer(NU_TIMER *timer, CHAR *name,
926 void (*expiration_routine)(unsigned long), unsigned long id,
927 unsigned long initial_time, unsigned long reschedule_time,
928 OPTION enable)
929__swi_end(0x35C, NU_Create_Timer, (timer, name, expiration_routine, id, initial_time, reschedule_time, enable));
930
931
932__swi_begin(0x35D)
934__swi_end(0x35D, NU_Delete_Timer, (timer));
935
936
937__swi_begin(0x35E)
939 void (*expiration_routine)(unsigned long),
940 unsigned long initial_time, unsigned long reschedule_timer,
941 OPTION enable)
942__swi_end(0x35E, NU_Reset_Timer, (timer, expiration_routine, initial_time, reschedule_timer, enable));
943
944
945__swi_begin(0x35F)
947__swi_end(0x35F, NU_Control_Timer, (timer, enable));
948
949
950__swi_begin(0x360)
951unsigned long NU_Established_Timers(void)
953
954
955__swi_begin(0x361)
957 OPTION *enable, unsigned long *expirations, unsigned long *id,
958 unsigned long *initial_time, unsigned long *reschedule_time)
959__swi_end(0x361, NU_Timer_Information, (timer, name, enable, expirations, id, initial_time, reschedule_time));
960
961
962__swi_begin(0x362)
963unsigned long NU_Timer_Pointers(NU_TIMER **pointer_list, unsigned long maximum_pointers)
964__swi_end(0x362, NU_Timer_Pointers, (pointer_list, maximum_pointers));
965
966
967__swi_begin(0x363)
968void NU_Set_Clock(unsigned long new_value)
969__swi_end(0x363, NU_Set_Clock, (new_value));
970
971
972__swi_begin(0x364)
973unsigned long NU_Retrieve_Clock(void)
974__swi_end(0x364, NU_Retrieve_Clock, ());
975
982__swi_begin(0x365)
985
986
988__swi_begin(0x366)
991
1000__swi_begin(0x367)
1003
1004
1005__swi_begin(0x368)
1008
1009
1010__swi_begin(0x369)
1011void NU_Make_History_Entry(unsigned long param1, unsigned long param2, unsigned long param3)
1012__swi_end(0x369, NU_Make_History_Entry, (param1, param2, param3));
1013
1014
1015__swi_begin(0x36A)
1017 unsigned long *param1, unsigned long *param2, unsigned long *param3,
1018 unsigned long *time, NU_TASK **task, NU_HISR **hisr)
1019__swi_end(0x36A, NU_Retrieve_History_Entry, (id, param1, param2, param3, time, task, hisr));
1020
1028__swi_begin(0x36B)
1030 void (*driver_entry)(NU_DRIVER *, NU_DRIVER_REQUEST *))
1031__swi_end(0x36B, NU_Create_Driver, (driver, name, driver_entry));
1032
1033
1034__swi_begin(0x36C)
1036__swi_end(0x36C, NU_Delete_Driver, (driver));
1037
1038
1039__swi_begin(0x36D)
1041__swi_end(0x36D, NU_Request_Driver, (driver, request));
1042
1043
1044__swi_begin(0x36E)
1046__swi_end(0x36E, NU_Resume_Driver, (task));
1047
1048
1049__swi_begin(0x36F)
1050int NU_Suspend_Driver(void (*terminate_routine)(void *), void *information, unsigned long timeout)
1051__swi_end(0x36F, NU_Suspend_Driver, (terminate_routine, information, timeout));
1052
1053
1054__swi_begin(0x370)
1055unsigned long NU_Established_Drivers(void)
1057
1058
1059__swi_begin(0x371)
1060unsigned long NU_Driver_Pointers(NU_DRIVER **pointer_list, unsigned long maximum_pointers)
1061__swi_end(0x371, NU_Driver_Pointers, (pointer_list, maximum_pointers));
1062
1070__swi_begin(0x372)
1071unsigned long NU_IS_SUPERVISOR_MODE(void)
1073
1074
1076__swi_begin(0x373)
1077void NU_SUPERVISOR_MODE_P(void *nu_svc_usr_var)
1078__swi_end(0x373, NU_SUPERVISOR_MODE_P, (nu_svc_usr_var));
1079
1080
1081__swi_begin(0x374)
1082void NU_USER_MODE_P(void *nu_svc_usr_var)
1083__swi_end(0x374, NU_USER_MODE_P, (nu_svc_usr_var));
1084
1086__swi_begin(0x8375)
1089
1090#define NU_SUPERVISOR_MODE() NU_SUPERVISOR_MODE_P(*(void **)NU_SUPERV_USER_VARIABLES())
1091#define NU_USER_MODE() NU_USER_MODE_P(*(void **)NU_SUPERV_USER_VARIABLES())
1092
1096
#define __swilib_begin
Definition doxygen.h:29
#define __swi_end(number, func, call)
Definition doxygen.h:33
#define __swi_begin(number)
Definition doxygen.h:32
#define __swilib_end
Definition doxygen.h:30
void * nu_buffer_ptr
Definition nucleus.h:132
UNSIGNED words[9+4]
Definition nucleus.h:77
UNSIGNED nu_driver_id
Definition nucleus.h:167
nu_request_info_union nu_request_info
Definition nucleus.h:160
UNSIGNED nu_actual_size
Definition nucleus.h:123
void * nu_info_ptr
Definition nucleus.h:166
struct NU_OUTPUT_STRUCT nu_output
Definition nucleus.h:149
CHAR nu_driver_name[8]
Definition nucleus.h:165
UNSIGNED words[3+4]
Definition nucleus.h:164
UNSIGNED words[18+4]
Definition nucleus.h:69
UNSIGNED words[42+4]
Definition nucleus.h:57
void * nu_buffer_ptr
Definition nucleus.h:124
struct NU_INPUT_STRUCT nu_input
Definition nucleus.h:148
UNSIGNED nu_logical_unit
Definition nucleus.h:141
UNSIGNED words[17+4]
Definition nucleus.h:85
struct NU_ASSIGN_STRUCT nu_assign
Definition nucleus.h:146
UNSIGNED nu_logical_unit
Definition nucleus.h:136
void(* nu_driver_entry)(struct NU_DRIVER_STRUCT *, NU_DRIVER_REQUEST *)
Definition nucleus.h:168
UNSIGNED nu_logical_unit
Definition nucleus.h:115
struct NU_STATUS_STRUCT nu_status
Definition nucleus.h:150
UNSIGNED words[18+50]
Definition nucleus.h:65
UNSIGNED nu_offset
Definition nucleus.h:121
struct NU_RELEASE_STRUCT nu_release
Definition nucleus.h:147
UNSIGNED words[22+4]
Definition nucleus.h:89
UNSIGNED nu_request_size
Definition nucleus.h:130
UNSIGNED words[13+4]
Definition nucleus.h:61
void * nu_extra_status
Definition nucleus.h:137
UNSIGNED words[17+4]
Definition nucleus.h:97
UNSIGNED nu_request_size
Definition nucleus.h:122
UNSIGNED words[2+4]
Definition nucleus.h:93
UNSIGNED words[15+4]
Definition nucleus.h:81
UNSIGNED nu_actual_size
Definition nucleus.h:131
UNSIGNED nu_logical_units
Definition nucleus.h:104
UNSIGNED nu_logical_unit
Definition nucleus.h:110
UNSIGNED nu_logical_unit
Definition nucleus.h:128
struct NU_INITIALIZE_STRUCT nu_initialize
Definition nucleus.h:145
UNSIGNED nu_offset
Definition nucleus.h:129
UNSIGNED nu_logical_unit
Definition nucleus.h:120
UNSIGNED words[10+4]
Definition nucleus.h:73
struct NU_TERMINATE_STRUCT nu_terminate
Definition nucleus.h:151
#define NU_MAILBOX_SIZE
Definition nucleus.h:45
DATA_ELEMENT BOOLEAN
Definition nucleus.h:29
int NU_Delete_Partition_Pool(NU_PARTITION_POOL *pool)
unsigned long NU_Change_Time_Slice(NU_TASK *task, unsigned long time_slice)
unsigned long NU_Established_Pipes(void)
struct NU_EVENT_GROUP_STRUCT NU_EVENT_GROUP
int NU_Delete_Memory_Pool(NU_MEMORY_POOL *pool)
int NU_Obtain_Semaphore(NU_SEMAPHORE *semaphore, unsigned long suspend)
unsigned long NU_Established_Partition_Pools(void)
unsigned long NU_Memory_Pool_Pointers(NU_MEMORY_POOL **pointer_list, unsigned long maximum_pointers)
int STATUS
Definition nucleus.h:23
unsigned char UNSIGNED_CHAR
Definition nucleus.h:24
void NU_Enable_History_Saving(void)
struct NU_TASK_STRUCT NU_TASK
unsigned long NU_Retrieve_Clock(void)
int NU_Control_Timer(NU_TIMER *timer, OPTION enable)
int NU_Reset_Semaphore(NU_SEMAPHORE *semaphore, unsigned long initial_count)
void NU_Protect(NU_PROTECT *protect_struct)
char * NU_Release_Information(void)
int NU_Request_Driver(NU_DRIVER *driver, NU_DRIVER_REQUEST *request)
DATA_ELEMENT OPTION
Definition nucleus.h:22
int NU_Reset_Timer(NU_TIMER *timer, void(*expiration_routine)(unsigned long), unsigned long initial_time, unsigned long reschedule_timer, OPTION enable)
unsigned char DATA_ELEMENT
Definition nucleus.h:21
int NU_Receive_From_Mailbox(NU_MAILBOX *mailbox, void *message, unsigned long suspend)
unsigned long NU_Established_Mailboxes(void)
#define NU_QUEUE_SIZE
Definition nucleus.h:46
int NU_Send_To_Mailbox(NU_MAILBOX *mailbox, void *message, unsigned long suspend)
unsigned long UNSIGNED
Definition nucleus.h:19
void NU_USER_MODE_P(void *nu_svc_usr_var)
int NU_Create_Timer(NU_TIMER *timer, CHAR *name, void(*expiration_routine)(unsigned long), unsigned long id, unsigned long initial_time, unsigned long reschedule_time, OPTION enable)
int NU_Delete_Queue(NU_QUEUE *queue)
int NU_Receive_From_Queue(NU_QUEUE *queue, void *message, unsigned long size, unsigned long *actual_size, unsigned long suspend)
char * NU_License_Information(void)
#define NU_TASK_SIZE
Definition nucleus.h:43
int INT
Definition nucleus.h:26
int NU_Retrieve_History_Entry(DATA_ELEMENT *id, unsigned long *param1, unsigned long *param2, unsigned long *param3, unsigned long *time, NU_TASK **task, NU_HISR **hisr)
int NU_Timer_Information(NU_TIMER *timer, CHAR *name, OPTION *enable, unsigned long *expirations, unsigned long *id, unsigned long *initial_time, unsigned long *reschedule_time)
int NU_Delete_Driver(NU_DRIVER *driver)
OPTION NU_Change_Preemption(OPTION preempt)
struct NU_SEMAPHORE_STRUCT NU_SEMAPHORE
struct NU_PIPE_STRUCT NU_PIPE
int NU_Semaphore_Information(NU_SEMAPHORE *semaphore, CHAR *name, unsigned long *current_count, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
int NU_Delete_Task(NU_TASK *task)
int NU_Retrieve_Events(NU_EVENT_GROUP *group, unsigned long requested_flags, OPTION operation, unsigned long *retrieved_flags, unsigned long suspend)
unsigned long * UNSIGNED_PTR
Definition nucleus.h:27
unsigned long NU_IS_SUPERVISOR_MODE(void)
long SIGNED
Definition nucleus.h:20
int NU_Suspend_Driver(void(*terminate_routine)(void *), void *information, unsigned long timeout)
int NU_Reset_Queue(NU_QUEUE *queue)
unsigned int UNSIGNED_INT
Definition nucleus.h:30
void * NU_Setup_Vector(INT vector, void *new_vector)
int NU_Delete_Timer(NU_TIMER *timer)
int NU_Send_To_Front_Of_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
struct NU_PROTECT_STRUCT NU_PROTECT
unsigned long NU_Event_Group_Pointers(NU_EVENT_GROUP **pointer_list, unsigned long maximum_pointers)
int NU_Send_To_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
struct NU_MEMORY_POOL_STRUCT NU_MEMORY_POOL
int NU_Create_Driver(NU_DRIVER *driver, CHAR *name, void(*driver_entry)(NU_DRIVER *, NU_DRIVER_REQUEST *))
unsigned long NU_Established_Semaphores(void)
unsigned long NU_Established_Timers(void)
int NU_Send_To_Queue(NU_QUEUE *queue, void *message, unsigned long size, unsigned long suspend)
int NU_Activate_HISR(NU_HISR *hisr)
unsigned long NU_Established_HISRs(void)
int NU_Resume_Driver(NU_TASK *task)
int NU_Broadcast_To_Queue(NU_QUEUE *queue, void *message, unsigned long size, unsigned long suspend)
unsigned long NU_Established_Tasks(void)
int NU_Create_Task(NU_TASK *task, CHAR *name, void(*task_entry)(unsigned long, void *), unsigned long argc, void *argv, void *stack_address, unsigned long stack_size, OPTION priority, unsigned long time_slice, OPTION preempt, OPTION auto_start)
int NU_Memory_Pool_Information(NU_MEMORY_POOL *pool, CHAR *name, void **start_address, unsigned long *pool_size, unsigned long *min_allocation, unsigned long *available, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
#define NU_HISR_SIZE
Definition nucleus.h:44
int NU_Reset_Task(NU_TASK *task, unsigned long argc, void *argv)
unsigned long NU_Mailbox_Pointers(NU_MAILBOX **pointer_list, unsigned long maximum_pointers)
#define NU_SEMAPHORE_SIZE
Definition nucleus.h:48
int NU_Allocate_Memory(NU_MEMORY_POOL *pool, void **return_pointer, unsigned long size, unsigned long suspend)
#define VOID
Definition nucleus.h:32
int NU_Suspend_Task(NU_TASK *task)
unsigned long NU_Control_Signals(unsigned long signal_enable_mask)
unsigned long NU_Established_Queues(void)
unsigned long NU_Queue_Pointers(NU_QUEUE **pointer_list, unsigned long maximum_pointers)
#define NU_PROTECT_SIZE
Definition nucleus.h:53
int NU_Broadcast_To_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
unsigned long NU_HISR_Pointers(NU_HISR **pointer_list, unsigned long maximum_pointers)
int NU_Create_Semaphore(NU_SEMAPHORE *semaphore, CHAR *name, unsigned long initial_count, OPTION suspend_type)
STATUS NU_Send_Signals(NU_TASK *task, unsigned long signals)
struct NU_PARTITION_POOL_STRUCT NU_PARTITION_POOL
STATUS NU_Register_Signal_Handler(void(*signal_handler)(unsigned long))
int NU_Reset_Pipe(NU_PIPE *pipe)
#define NU_PARTITION_POOL_SIZE
Definition nucleus.h:50
int NU_Create_Partition_Pool(NU_PARTITION_POOL *pool, CHAR *name, void *start_address, unsigned long pool_size, unsigned long partition_size, OPTION suspend_type)
void NU_Unprotect(void)
unsigned long NU_Receive_Signals(void)
#define NU_MAX_NAME
Definition nucleus.h:38
void NU_Restore_Interrupts(void)
int NU_Broadcast_To_Mailbox(NU_MAILBOX *mailbox, void *message, unsigned long suspend)
int NU_Release_Semaphore(NU_SEMAPHORE *semaphore)
unsigned long NU_Driver_Pointers(NU_DRIVER **pointer_list, unsigned long maximum_pointers)
int NU_Mailbox_Information(NU_MAILBOX *mailbox, CHAR *name, OPTION *suspend_type, OPTION *message_present, unsigned long *tasks_waiting, NU_TASK **first_task)
void NU_Set_Clock(unsigned long new_value)
struct NU_DRIVER_REQUEST_STRUCT NU_DRIVER_REQUEST
int NU_Task_Information(NU_TASK *task, CHAR *name, DATA_ELEMENT *status, unsigned long *scheduled_count, OPTION *priority, OPTION *preempt, unsigned long *time_slice, void **stack_base, unsigned long *stack_size, unsigned long *minimum_stack)
int NU_Delete_Mailbox(NU_MAILBOX *mailbox)
int NU_Terminate_Task(NU_TASK *task)
int NU_Delete_Pipe(NU_PIPE *pipe)
#define NU_TIMER_SIZE
Definition nucleus.h:52
#define NU_MEMORY_POOL_SIZE
Definition nucleus.h:51
int NU_Deallocate_Partition(void *partition)
int NU_Queue_Information(NU_QUEUE *queue, CHAR *name, void **start_address, unsigned long *queue_size, unsigned long *available, unsigned long *messages, OPTION *message_type, unsigned long *message_size, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
#define NU_DRIVER_SIZE
Definition nucleus.h:54
void NU_Make_History_Entry(unsigned long param1, unsigned long param2, unsigned long param3)
int NU_Resume_Task(NU_TASK *task)
int NU_Create_Mailbox(NU_MAILBOX *mailbox, CHAR *name, OPTION suspend_type)
NU_TASK * NU_Current_Task_Pointer(void)
int NU_Allocate_Partition(NU_PARTITION_POOL *pool, void **return_pointer, unsigned long suspend)
struct NU_TIMER_STRUCT NU_TIMER
NU_HISR * NU_Current_HISR_Pointer(void)
unsigned long NU_Check_Stack(void)
void NU_Relinquish(void)
struct NU_HISR_STRUCT NU_HISR
struct NU_QUEUE_STRUCT NU_QUEUE
unsigned long NU_Established_Drivers(void)
int NU_Set_Events(NU_EVENT_GROUP *group, unsigned long events, OPTION operation)
int NU_Create_Event_Group(NU_EVENT_GROUP *group, CHAR *name)
unsigned long NU_Established_Event_Groups(void)
int NU_Local_Control_Interrupts(INT new_level)
int NU_Send_To_Front_Of_Queue(NU_QUEUE *queue, void *message, unsigned long size, unsigned long suspend)
int NU_Event_Group_Information(NU_EVENT_GROUP *group, CHAR *name, unsigned long *event_flags, unsigned long *tasks_waiting, NU_TASK **first_task)
int NU_Create_Memory_Pool(NU_MEMORY_POOL *pool, CHAR *name, void *start_address, unsigned long pool_size, unsigned long min_allocation, OPTION suspend_type)
int NU_Reset_Mailbox(NU_MAILBOX *mailbox)
unsigned long NU_Established_Memory_Pools(void)
void NU_Disable_History_Saving(void)
int NU_Pipe_Information(NU_PIPE *pipe, CHAR *name, void **start_address, unsigned long *pipe_size, unsigned long *available, unsigned long *messages, OPTION *message_type, unsigned long *message_size, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
int NU_Receive_From_Pipe(NU_PIPE *pipe, void *message, unsigned long size, unsigned long *actual_size, unsigned long suspend)
int NU_Delete_Event_Group(NU_EVENT_GROUP *group)
void * NU_SUPERV_USER_VARIABLES(void)
int NU_HISR_Information(NU_HISR *hisr, CHAR *name, unsigned long *scheduled_count, DATA_ELEMENT *priority, void **stack_base, unsigned long *stack_size, unsigned long *minimum_stack)
int NU_Delete_HISR(NU_HISR *hisr)
int NU_Register_LISR(INT vector, void(*new_lisr)(INT), void(**old_lisr)(INT))
int NU_Create_HISR(NU_HISR *hisr, CHAR *name, void(*hisr_entry)(void), OPTION priority, void *stack_address, unsigned long stack_size)
unsigned long NU_Task_Pointers(NU_TASK **pointer_list, unsigned long maximum_pointers)
unsigned long NU_Timer_Pointers(NU_TIMER **pointer_list, unsigned long maximum_pointers)
unsigned long NU_Partition_Pool_Pointers(NU_PARTITION_POOL **pointer_list, unsigned long maximum_pointers)
int NU_Create_Pipe(NU_PIPE *pipe, CHAR *name, void *start_address, unsigned long pipe_size, OPTION message_type, unsigned long message_size, OPTION suspend_type)
void NU_SUPERVISOR_MODE_P(void *nu_svc_usr_var)
unsigned char * BYTE_PTR
Definition nucleus.h:28
unsigned long NU_Semaphore_Pointers(NU_SEMAPHORE **pointer_list, unsigned long maximum_pointers)
char CHAR
Definition nucleus.h:25
int NU_Control_Interrupts(INT new_level)
#define NU_PIPE_SIZE
Definition nucleus.h:47
int NU_Create_Queue(NU_QUEUE *queue, CHAR *name, void *start_address, unsigned long queue_size, OPTION message_type, unsigned long message_size, OPTION suspend_type)
int NU_Deallocate_Memory(void *memory)
struct NU_MAILBOX_STRUCT NU_MAILBOX
int NU_Delete_Semaphore(NU_SEMAPHORE *semaphore)
struct NU_DRIVER_STRUCT NU_DRIVER
void NU_Sleep(unsigned long ticks)
unsigned long NU_Pipe_Pointers(NU_PIPE **pointer_list, unsigned long maximum_pointers)
OPTION NU_Change_Priority(NU_TASK *task, OPTION new_priority)
#define NU_EVENT_GROUP_SIZE
Definition nucleus.h:49
int NU_Partition_Pool_Information(NU_PARTITION_POOL *pool, CHAR *name, void **start_address, unsigned long *pool_size, unsigned long *partition_size, unsigned long *available, unsigned long *allocated, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
union NU_REQUEST_INFO_UNION nu_request_info_union