1 | /*
|
---|
2 | * TOPPERS ATK2
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems
|
---|
4 | * Automotive Kernel Version 2
|
---|
5 | *
|
---|
6 | * Copyright (C) 2011-2015 by Center for Embedded Computing Systems
|
---|
7 | * Graduate School of Information Science, Nagoya Univ., JAPAN
|
---|
8 | * Copyright (C) 2011-2015 by FUJI SOFT INCORPORATED, JAPAN
|
---|
9 | * Copyright (C) 2011-2013 by Spansion LLC, USA
|
---|
10 | * Copyright (C) 2011-2015 by NEC Communication Systems, Ltd., JAPAN
|
---|
11 | * Copyright (C) 2011-2015 by Panasonic Advanced Technology Development Co., Ltd., JAPAN
|
---|
12 | * Copyright (C) 2011-2014 by Renesas Electronics Corporation, JAPAN
|
---|
13 | * Copyright (C) 2011-2015 by Sunny Giken Inc., JAPAN
|
---|
14 | * Copyright (C) 2011-2015 by TOSHIBA CORPORATION, JAPAN
|
---|
15 | * Copyright (C) 2011-2015 by Witz Corporation
|
---|
16 | * Copyright (C) 2014-2015 by AISIN COMCRUISE Co., Ltd., JAPAN
|
---|
17 | * Copyright (C) 2014-2015 by eSOL Co.,Ltd., JAPAN
|
---|
18 | * Copyright (C) 2014-2015 by SCSK Corporation, JAPAN
|
---|
19 | * Copyright (C) 2015 by SUZUKI MOTOR CORPORATION
|
---|
20 | *
|
---|
21 | * ä¸è¨èä½æ¨©è
|
---|
22 | ã¯ï¼ä»¥ä¸ã®(1)ã(4)ã®æ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§
|
---|
23 | * ã¢ï¼æ¬ã½ããã¦ã§ã¢ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹
|
---|
24 | * å¤ã»åé
|
---|
25 | å¸ï¼ä»¥ä¸ï¼å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
26 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½
|
---|
27 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼
|
---|
28 | * ã¹ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
29 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
30 | * ç¨ã§ããå½¢ã§åé
|
---|
31 | å¸ããå ´åã«ã¯ï¼åé
|
---|
32 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨
|
---|
33 | * è
|
---|
34 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨
|
---|
35 | * ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
36 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
37 | * ç¨ã§ããªãå½¢ã§åé
|
---|
38 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®ããããã®æ¡ä»¶ãæºããã
|
---|
39 | * ã¨ï¼
|
---|
40 | * (a) åé
|
---|
41 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
42 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è
|
---|
43 | * ä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
44 | * (b) åé
|
---|
45 | å¸ã®å½¢æ
|
---|
46 | ãï¼å¥ã«å®ããæ¹æ³ã«ãã£ã¦ï¼TOPPERSããã¸ã§ã¯ãã«
|
---|
47 | * å ±åãããã¨ï¼
|
---|
48 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ
|
---|
49 | * 害ãããï¼ä¸è¨èä½æ¨©è
|
---|
50 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
51 | 責ãããã¨ï¼
|
---|
52 | * ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®ã¦ã¼ã¶ã¾ãã¯ã¨ã³ãã¦ã¼ã¶ããã®ãããªãç
|
---|
53 | * ç±ã«åºã¥ãè«æ±ãããï¼ä¸è¨èä½æ¨©è
|
---|
54 | ããã³TOPPERSããã¸ã§ã¯ãã
|
---|
55 | * å
|
---|
56 | 責ãããã¨ï¼
|
---|
57 | *
|
---|
58 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼AUTOSARï¼AUTomotive Open System ARchitectureï¼ä»
|
---|
59 | * æ§ã«åºã¥ãã¦ããï¼ä¸è¨ã®è¨±è«¾ã¯ï¼AUTOSARã®ç¥ç財ç£æ¨©ã許諾ãããã®ã§
|
---|
60 | * ã¯ãªãï¼AUTOSARã¯ï¼AUTOSARä»æ§ã«åºã¥ããã½ããã¦ã§ã¢ãåç¨ç®çã§å©
|
---|
61 | * ç¨ããè
|
---|
62 | ã«å¯¾ãã¦ï¼AUTOSARãã¼ããã¼ã«ãªããã¨ãæ±ãã¦ããï¼
|
---|
63 | *
|
---|
64 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨èä½æ¨©è
|
---|
65 | ã
|
---|
66 | * ãã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ç¹å®ã®ä½¿ç¨ç®ç
|
---|
67 | * ã«å¯¾ããé©åæ§ãå«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§
|
---|
68 | * ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ害ã«é¢ãã¦ãï¼ã
|
---|
69 | * ã®è²¬ä»»ãè² ããªãï¼
|
---|
70 | *
|
---|
71 | * $Id: allfunc.h 425 2015-12-07 08:06:19Z witz-itoyo $
|
---|
72 | */
|
---|
73 |
|
---|
74 | /*
|
---|
75 | * ãã¹ã¦ã®é¢æ°ãã³ã³ãã¤ã«ããããã®å®ç¾©
|
---|
76 | */
|
---|
77 |
|
---|
78 | #ifndef TOPPERS_ALLFUNC_H
|
---|
79 | #define TOPPERS_ALLFUNC_H
|
---|
80 |
|
---|
81 | /* alarm.c */
|
---|
82 | #define TOPPERS_alarm_initialize
|
---|
83 | #define TOPPERS_GetAlarmBase
|
---|
84 | #define TOPPERS_GetAlarm
|
---|
85 | #define TOPPERS_SetRelAlarm
|
---|
86 | #define TOPPERS_SetAbsAlarm
|
---|
87 | #define TOPPERS_CancelAlarm
|
---|
88 | #define TOPPERS_alarm_expire
|
---|
89 | #define TOPPERS_force_term_osap_alarm
|
---|
90 |
|
---|
91 | /* counter_manage.c */
|
---|
92 | #define TOPPERS_IncrementCounter
|
---|
93 | #define TOPPERS_GetCounterValue
|
---|
94 | #define TOPPERS_GetElapsedValue
|
---|
95 | #define TOPPERS_notify_hardware_counter
|
---|
96 | #define TOPPERS_incr_counter_action
|
---|
97 | #define TOPPERS_incr_counter_process
|
---|
98 |
|
---|
99 | /* counter.c */
|
---|
100 | #define TOPPERS_insert_cnt_expr_que
|
---|
101 | #define TOPPERS_delete_cnt_expr_que
|
---|
102 | #define TOPPERS_counter_initialize
|
---|
103 | #define TOPPERS_counter_terminate
|
---|
104 | #define TOPPERS_get_reltick
|
---|
105 | #define TOPPERS_get_abstick
|
---|
106 | #define TOPPERS_expire_process
|
---|
107 | #define TOPPERS_force_term_osap_counter
|
---|
108 |
|
---|
109 | /* event.c */
|
---|
110 | #define TOPPERS_SetEvent
|
---|
111 | #define TOPPERS_ClearEvent
|
---|
112 | #define TOPPERS_GetEvent
|
---|
113 | #define TOPPERS_WaitEvent
|
---|
114 | #define TOPPERS_set_event_action
|
---|
115 |
|
---|
116 | /* interrupt.c */
|
---|
117 | #define TOPPERS_interrupt_initialize
|
---|
118 | #define TOPPERS_release_interrupts
|
---|
119 | #define TOPPERS_exit_isr2
|
---|
120 |
|
---|
121 | /* interrupt_manage.c */
|
---|
122 | #define TOPPERS_DisableAllInterrupts
|
---|
123 | #define TOPPERS_EnableAllInterrupts
|
---|
124 | #define TOPPERS_SuspendAllInterrupts
|
---|
125 | #define TOPPERS_ResumeAllInterrupts
|
---|
126 | #define TOPPERS_SuspendOSInterrupts
|
---|
127 | #define TOPPERS_ResumeOSInterrupts
|
---|
128 | #define TOPPERS_GetISRID
|
---|
129 | #define TOPPERS_DisableInterruptSource
|
---|
130 | #define TOPPERS_EnableInterruptSource
|
---|
131 |
|
---|
132 | /* osctl.c */
|
---|
133 | #define TOPPERS_internal_call_errorhook
|
---|
134 | #define TOPPERS_call_posttaskhook
|
---|
135 | #define TOPPERS_call_pretaskhook
|
---|
136 | #define TOPPERS_call_protectionhk_main
|
---|
137 | #define TOPPERS_init_stack_magic_region
|
---|
138 | #define TOPPERS_internal_shutdownos
|
---|
139 | #define TOPPERS_internal_call_shtdwnhk
|
---|
140 |
|
---|
141 | /* osctl_manage.c */
|
---|
142 | #define TOPPERS_StartOS
|
---|
143 | #define TOPPERS_GetActiveApplicationMode
|
---|
144 | #define TOPPERS_ShutdownOS
|
---|
145 | #define TOPPERS_GetFaultyContext
|
---|
146 |
|
---|
147 | /* resource.c */
|
---|
148 | #define TOPPERS_resource_initialize
|
---|
149 | #define TOPPERS_GetResource
|
---|
150 | #define TOPPERS_ReleaseResource
|
---|
151 |
|
---|
152 | /* scheduletable.c */
|
---|
153 | #define TOPPERS_schtbl_initialize
|
---|
154 | #define TOPPERS_StartScheduleTableRel
|
---|
155 | #define TOPPERS_StartScheduleTableAbs
|
---|
156 | #define TOPPERS_StopScheduleTable
|
---|
157 | #define TOPPERS_NextScheduleTable
|
---|
158 | #define TOPPERS_GetScheduleTableStatus
|
---|
159 | #define TOPPERS_schtbl_expire
|
---|
160 | #define TOPPERS_schtbl_expiry_process
|
---|
161 | #define TOPPERS_schtbl_head
|
---|
162 | #define TOPPERS_schtbl_exppoint_process
|
---|
163 | #define TOPPERS_schtbl_tail
|
---|
164 | #define TOPPERS_force_term_osap_schtbl
|
---|
165 |
|
---|
166 | /* task.c */
|
---|
167 | #define TOPPERS_task_initialize
|
---|
168 | #define TOPPERS_search_schedtsk
|
---|
169 | #define TOPPERS_make_runnable
|
---|
170 | #define TOPPERS_make_non_runnable
|
---|
171 | #define TOPPERS_make_active
|
---|
172 | #define TOPPERS_preempt
|
---|
173 | #define TOPPERS_suspend
|
---|
174 | #define TOPPERS_release_taskresources
|
---|
175 | #define TOPPERS_cancel_taskcounters
|
---|
176 | #define TOPPERS_exit_task
|
---|
177 | #define TOPPERS_remove_task_from_queue
|
---|
178 | #define TOPPERS_force_terminate_task
|
---|
179 | #define TOPPERS_force_term_osap_task
|
---|
180 | #define TOPPERS_move_schedtsk
|
---|
181 |
|
---|
182 | /* task_manage.c */
|
---|
183 | #define TOPPERS_ActivateTask
|
---|
184 | #define TOPPERS_TerminateTask
|
---|
185 | #define TOPPERS_ChainTask
|
---|
186 | #define TOPPERS_Schedule
|
---|
187 | #define TOPPERS_GetTaskID
|
---|
188 | #define TOPPERS_GetTaskState
|
---|
189 | #define TOPPERS_activate_task_action
|
---|
190 |
|
---|
191 | /* memory.c */
|
---|
192 | #define TOPPERS_search_meminib
|
---|
193 | #define TOPPERS_check_address_stack
|
---|
194 | #define TOPPERS_check_osap_memory
|
---|
195 | #define TOPPERS_check_isr_memory
|
---|
196 | #define TOPPERS_CheckISRMemoryAccess
|
---|
197 | #define TOPPERS_check_task_memory
|
---|
198 | #define TOPPERS_CheckTaskMemoryAccess
|
---|
199 | #define TOPPERS_probe_memory_access
|
---|
200 | #define TOPPERS_probe_memory_read
|
---|
201 | #define TOPPERS_probe_memory_write
|
---|
202 | #define TOPPERS_probe_memory_read_write
|
---|
203 | #define TOPPERS_initialize_sections
|
---|
204 |
|
---|
205 | /* osap.c */
|
---|
206 | #define TOPPERS_osap_initialize
|
---|
207 | #define TOPPERS_GetApplicationID
|
---|
208 | #define TOPPERS_GetApplicationState
|
---|
209 | #define TOPPERS_CallTrustedFunction
|
---|
210 | #define TOPPERS_CheckTaskAccess
|
---|
211 | #define TOPPERS_CheckISRAccess
|
---|
212 | #define TOPPERS_CheckAlarmAccess
|
---|
213 | #define TOPPERS_CheckResourceAccess
|
---|
214 | #define TOPPERS_CheckCounterAccess
|
---|
215 | #define TOPPERS_CheckScheduleTableAccess
|
---|
216 | #define TOPPERS_CheckTaskOwnership
|
---|
217 | #define TOPPERS_CheckISROwnership
|
---|
218 | #define TOPPERS_CheckAlarmOwnership
|
---|
219 | #define TOPPERS_CheckCounterOwnership
|
---|
220 | #define TOPPERS_CheckScheduleTableOwnership
|
---|
221 | #define TOPPERS_force_term_osap
|
---|
222 | #define TOPPERS_TerminateApplication
|
---|
223 | #define TOPPERS_AllowAccess
|
---|
224 |
|
---|
225 | #endif /* TOPPERS_ALLFUNC_H */
|
---|