52 #ifndef _TN_OLDSYMBOLS_H
53 #define _TN_OLDSYMBOLS_H
63 #ifndef TN_OLD_TNKERNEL_NAMES
64 # error TN_OLD_TNKERNEL_NAMES is not defined
67 #if TN_OLD_TNKERNEL_NAMES
116 #define _CDLL_QUEUE TN_ListItem
119 #define _TN_MUTEX TN_Mutex
122 #define _TN_DQUE TN_DQueue
125 #define _TN_TCB TN_Task
128 #define _TN_FMP TN_FMem
131 #define _TN_SEM TN_Sem
142 #define MAKE_ALIG TN_MAKE_ALIG
146 #define TSK_STATE_RUNNABLE TN_TASK_STATE_RUNNABLE
149 #define TSK_STATE_WAIT TN_TASK_STATE_WAIT
152 #define TSK_STATE_SUSPEND TN_TASK_STATE_SUSPEND
155 #define TSK_STATE_WAITSUSP TN_TASK_STATE_WAITSUSP
158 #define TSK_STATE_DORMANT TN_TASK_STATE_DORMANT
161 #define TN_TASK_START_ON_CREATION TN_TASK_CREATE_OPT_START
164 #define TN_EXIT_AND_DELETE_TASK TN_TASK_EXIT_OPT_DELETE
169 #define TN_EVENT_WCOND_AND TN_EVENTGRP_WMODE_AND
172 #define TN_EVENT_WCOND_OR TN_EVENTGRP_WMODE_OR
176 #define TSK_WAIT_REASON_NONE TN_WAIT_REASON_NONE
179 #define TSK_WAIT_REASON_SLEEP TN_WAIT_REASON_SLEEP
182 #define TSK_WAIT_REASON_SEM TN_WAIT_REASON_SEM
185 #define TSK_WAIT_REASON_EVENT TN_WAIT_REASON_EVENT
188 #define TSK_WAIT_REASON_DQUE_WSEND TN_WAIT_REASON_DQUE_WSEND
191 #define TSK_WAIT_REASON_DQUE_WRECEIVE TN_WAIT_REASON_DQUE_WRECEIVE
194 #define TSK_WAIT_REASON_MUTEX_C TN_WAIT_REASON_MUTEX_C
197 #define TSK_WAIT_REASON_MUTEX_I TN_WAIT_REASON_MUTEX_I
200 #define TSK_WAIT_REASON_WFIXMEM TN_WAIT_REASON_WFIXMEM
205 #define TERR_NO_ERR TN_RC_OK
208 #define TERR_OVERFLOW TN_RC_OVERFLOW
211 #define TERR_WCONTEXT TN_RC_WCONTEXT
214 #define TERR_WSTATE TN_RC_WSTATE
217 #define TERR_TIMEOUT TN_RC_TIMEOUT
220 #define TERR_WRONG_PARAM TN_RC_WPARAM
223 #define TERR_ILUSE TN_RC_ILLEGAL_USE
226 #define TERR_NOEXS TN_RC_INVALID_OBJ
229 #define TERR_DLT TN_RC_DELETED
232 #define TERR_FORCED TN_RC_FORCED
235 #define TERR_INTERNAL TN_RC_INTERNAL
240 #define TN_MUTEX_ATTR_CEILING TN_MUTEX_PROT_CEILING
243 #define TN_MUTEX_ATTR_INHERIT TN_MUTEX_PROT_INHERIT
249 #define tn_sem_polling tn_sem_acquire_polling
252 #define tn_sem_ipolling tn_sem_iacquire_polling
256 #define tn_fmem_get_ipolling tn_fmem_iget_polling
260 #define tn_queue_ireceive tn_queue_ireceive_polling
264 #define tn_start_system tn_sys_start
267 #define tn_sys_tslice_ticks tn_sys_tslice_set
272 #define align_attr_start TN_ARCH_STK_ATTR_BEFORE
275 #define align_attr_end TN_ARCH_STK_ATTR_AFTER
279 #define tn_cpu_int_disable tn_arch_int_dis
282 #define tn_cpu_int_enable tn_arch_int_en
286 #define tn_cpu_save_sr tn_arch_sr_save_int_dis
289 #define tn_cpu_restore_sr tn_arch_sr_restore
293 #define tn_disable_interrupt TN_INT_DIS_SAVE
296 #define tn_enable_interrupt TN_INT_RESTORE
300 #define tn_idisable_interrupt TN_INT_IDIS_SAVE
303 #define tn_ienable_interrupt TN_INT_IRESTORE
307 #define tn_chk_irq_disabled TN_IS_INT_DISABLED
310 #define TN_NUM_PRIORITY TN_PRIORITIES_CNT
313 #define _TN_BITS_IN_INT TN_INT_WIDTH
317 #define TN_ALIG sizeof(TN_UWord)
328 #endif // TN_OLD_TNKERNEL_NAMES
330 #endif // _TN_OLDSYMBOLS_H
Structure representing data queue object.
Definitions used through the whole kernel.
Fixed memory blocks pool.
struct TN_ListItem CDLL_QUEUE
old TNKernel name of TN_ListItem