comparison gsm-fw/nucleus/tm_extr.h @ 143:afceeeb2cba1

Our nuc-fw is destined to become gsm-fw, so I went ahead and did the big hg mv
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 12 Nov 2013 05:35:48 +0000
parents nuc-fw/nucleus/tm_extr.h@947b1f473960
children
comparison
equal deleted inserted replaced
142:15d5977390c2 143:afceeeb2cba1
1 /*************************************************************************/
2 /* */
3 /* Copyright Mentor Graphics Corporation 2002 */
4 /* All Rights Reserved. */
5 /* */
6 /* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS */
7 /* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS */
8 /* SUBJECT TO LICENSE TERMS. */
9 /* */
10 /*************************************************************************/
11
12 /*************************************************************************/
13 /* */
14 /* FILE NAME VERSION */
15 /* */
16 /* tm_extr.h Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* TM - Timer Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains function prototypes of all functions */
25 /* accessible to other components. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* None */
30 /* */
31 /* FUNCTIONS */
32 /* */
33 /* None */
34 /* */
35 /* DEPENDENCIES */
36 /* */
37 /* tm_defs.h Timer Management constants */
38 /* */
39 /* HISTORY */
40 /* */
41 /* DATE REMARKS */
42 /* */
43 /* 03-01-1993 Created initial version 1.0 */
44 /* 04-19-1993 Verified version 1.0 */
45 /* 03-01-1994 Moved include files outside of */
46 /* the file #ifndef to allow the */
47 /* use of actual data structures, */
48 /* changed function names due to */
49 /* changes in file structure, */
50 /* removed protection pointer */
51 /* parameter, added several new */
52 /* target functions, changed */
53 /* prototypes, resulting in */
54 /* version 1.1 */
55 /* */
56 /* 03-18-1994 Verified version 1.1 */
57 /* 04-17-1996 updated to version 1.2 */
58 /* 03-24-1998 Released version 1.3. */
59 /* 03-26-1999 Released 1.11m (new release */
60 /* numbering scheme) */
61 /* 04-17-2002 Released version 1.13m */
62 /* 11-07-2002 Released version 1.14 */
63 /*************************************************************************/
64
65 #include "tm_defs.h" /* Include TM constants */
66
67
68 /* Check to see if the file has been included already. */
69
70 #ifndef TM_EXTR
71 #define TM_EXTR
72
73
74 /* Initialization functions. */
75
76 VOID TMI_Initialize(VOID);
77
78
79 /* Error checking for supplemental functions. */
80
81 STATUS TMSE_Create_Timer(NU_TIMER *timer_ptr, CHAR *name,
82 VOID (*expiration_routine)(UNSIGNED), UNSIGNED id,
83 UNSIGNED initial_time, UNSIGNED reschedule_time,
84 OPTION enable);
85 STATUS TMSE_Delete_Timer(NU_TIMER *timer_ptr);
86 STATUS TMSE_Reset_Timer(NU_TIMER *timer_ptr,
87 VOID (*expiration_routine)(UNSIGNED),
88 UNSIGNED initial_time, UNSIGNED reschedule_time,
89 OPTION enable);
90 STATUS TMSE_Control_Timer(NU_TIMER *timer_ptr, OPTION enable);
91
92
93 /* Supplemental processing functions. */
94
95 STATUS TMS_Create_Timer(NU_TIMER *timer_ptr, CHAR *name,
96 VOID (*expiration_routine)(UNSIGNED), UNSIGNED id,
97 UNSIGNED initial_time, UNSIGNED reschedule_time,
98 OPTION enable);
99 STATUS TMS_Delete_Timer(NU_TIMER *timer_ptr);
100 STATUS TMS_Reset_Timer(NU_TIMER *timer_ptr,
101 VOID (*expiration_routine)(UNSIGNED),
102 UNSIGNED initial_time, UNSIGNED reschedule_timer,
103 OPTION enable);
104 STATUS TMS_Control_Timer(NU_TIMER *timer_ptr, OPTION enable);
105
106
107 /* Core processing functions. */
108
109 VOID TMC_Init_Task_Timer(TM_TCB *timer, VOID *information);
110 VOID TMC_Start_Task_Timer(TM_TCB *timer, UNSIGNED time);
111 VOID TMC_Stop_Task_Timer(TM_TCB *timer);
112
113
114 /* Information retrieval funtions. */
115
116 UNSIGNED TMF_Established_Timers(VOID);
117 STATUS TMF_Timer_Information(NU_TIMER *timer_ptr, CHAR *name,
118 OPTION *enable, UNSIGNED *expirations, UNSIGNED *id,
119 UNSIGNED *initial_time, UNSIGNED *reschedule_time);
120 UNSIGNED TMF_Timer_Pointers(NU_TIMER **pointer_list,
121 UNSIGNED maximum_pointers);
122
123 /* Target dependent functions. */
124
125 VOID TMT_Set_Clock(UNSIGNED new_value);
126 UNSIGNED TMT_Retrieve_Clock(VOID);
127 NU_TASK *TMT_Retrieve_TS_Task(VOID);
128 VOID TMT_Adjust_Timer(UNSIGNED new_value);
129
130 #endif
131
132
133
134
135