4 * [Generated from idle, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
29 * idle_removeAllAlarms
33 /* --- idle_handler --- *
35 * On entry: R0 == how frequently to call
36 * R1 == pointer to routine to call
37 * R2 == R10 value to call routine with
38 * R3 == R12 value to call routine with
40 * On exit: May return an error
42 * Use: Adds a routine to the idle handler list. Later added
43 * routines are called first. The idle handing routine
44 * may corrupt R10 and R12.
47 extern routine idle_handler;
49 /* --- idle_removeHandler --- *
51 * On entry: R0 == How frequently it was called
52 * R1 == pointer to routine called
53 * R2 == R10 value routine is called with
54 * R3 == R12 value routine is called with
58 * Use: Removes a routine from the idle handler list.
61 extern routine idle_removeHandler;
63 /* --- idle_setAlarm --- *
65 * On entry: R3 == Time to call
66 * R1 == pointer to routine to call
67 * R2 == R10 value to call routine with
68 * R3 == R12 value to call routine with
70 * On exit: May return an error
72 * Use: Adds a alarm to be called. The idle handing routine
73 * may corrupt R10 and R12.
76 extern routine idle_setAlarm;
78 /* --- idle_removeAlarm --- *
80 * On entry: R0 == When it was to be called
81 * R1 == pointer to routine called
82 * R2 == R10 value routine is called with
83 * R3 == R12 value routine is called with
87 * Use: Removes a routine from the idle handler list. It has
88 * no effect if it doesn't exist.
91 extern routine idle_removeAlarm;
93 /* --- idle_removeAllAlarms --- *
95 * On entry: R0 == R10 value to look for
99 * Use: Removes all alarms with the handle that was passed to them
100 * to be put into R10. You should not remove an alarm within
104 extern routine idle_removeAllAlarms;
106 /* --- idle_init --- *
112 * Use: Initialises the idle system.
115 extern routine idle_init;
117 /*----- That's all, folks -------------------------------------------------*/