50 #ifndef _TN_OLDSYMBOLS_H
51 #define _TN_OLDSYMBOLS_H
61 #ifndef TN_OLD_TNKERNEL_NAMES
62 # error TN_OLD_TNKERNEL_NAMES is not defined
65 #if TN_OLD_TNKERNEL_NAMES
114 #define _CDLL_QUEUE TN_ListItem
117 #define _TN_MUTEX TN_Mutex
120 #define _TN_DQUE TN_DQueue
123 #define _TN_TCB TN_Task
126 #define _TN_FMP TN_FMem
129 #define _TN_SEM TN_Sem
140 #define MAKE_ALIG TN_MAKE_ALIG
144 #define TSK_STATE_RUNNABLE TN_TASK_STATE_RUNNABLE
147 #define TSK_STATE_WAIT TN_TASK_STATE_WAIT
150 #define TSK_STATE_SUSPEND TN_TASK_STATE_SUSPEND
153 #define TSK_STATE_WAITSUSP TN_TASK_STATE_WAITSUSP
156 #define TSK_STATE_DORMANT TN_TASK_STATE_DORMANT
159 #define TN_TASK_START_ON_CREATION TN_TASK_CREATE_OPT_START
162 #define TN_EXIT_AND_DELETE_TASK TN_TASK_EXIT_OPT_DELETE
167 #define TN_EVENT_WCOND_AND TN_EVENTGRP_WMODE_AND
170 #define TN_EVENT_WCOND_OR TN_EVENTGRP_WMODE_OR
174 #define TSK_WAIT_REASON_NONE TN_WAIT_REASON_NONE
177 #define TSK_WAIT_REASON_SLEEP TN_WAIT_REASON_SLEEP
180 #define TSK_WAIT_REASON_SEM TN_WAIT_REASON_SEM
183 #define TSK_WAIT_REASON_EVENT TN_WAIT_REASON_EVENT
186 #define TSK_WAIT_REASON_DQUE_WSEND TN_WAIT_REASON_DQUE_WSEND
189 #define TSK_WAIT_REASON_DQUE_WRECEIVE TN_WAIT_REASON_DQUE_WRECEIVE
192 #define TSK_WAIT_REASON_MUTEX_C TN_WAIT_REASON_MUTEX_C
195 #define TSK_WAIT_REASON_MUTEX_I TN_WAIT_REASON_MUTEX_I
198 #define TSK_WAIT_REASON_WFIXMEM TN_WAIT_REASON_WFIXMEM
203 #define TERR_NO_ERR TN_RC_OK
206 #define TERR_OVERFLOW TN_RC_OVERFLOW
209 #define TERR_WCONTEXT TN_RC_WCONTEXT
212 #define TERR_WSTATE TN_RC_WSTATE
215 #define TERR_TIMEOUT TN_RC_TIMEOUT
218 #define TERR_WRONG_PARAM TN_RC_WPARAM
221 #define TERR_ILUSE TN_RC_ILLEGAL_USE
224 #define TERR_NOEXS TN_RC_INVALID_OBJ
227 #define TERR_DLT TN_RC_DELETED
230 #define TERR_FORCED TN_RC_FORCED
233 #define TERR_INTERNAL TN_RC_INTERNAL
238 #define TN_MUTEX_ATTR_CEILING TN_MUTEX_PROT_CEILING
241 #define TN_MUTEX_ATTR_INHERIT TN_MUTEX_PROT_INHERIT
247 #define tn_sem_polling tn_sem_acquire_polling
250 #define tn_sem_ipolling tn_sem_iacquire_polling
254 #define tn_sem_acquire tn_sem_wait
257 #define tn_sem_acquire_polling tn_sem_wait_polling
260 #define tn_sem_iacquire_polling tn_sem_iwait_polling
265 #define tn_fmem_get_ipolling tn_fmem_iget_polling
269 #define tn_queue_ireceive tn_queue_ireceive_polling
273 #define tn_start_system tn_sys_start
276 #define tn_sys_tslice_ticks tn_sys_tslice_set
281 #define align_attr_start TN_ARCH_STK_ATTR_BEFORE
284 #define align_attr_end TN_ARCH_STK_ATTR_AFTER
288 #define tn_cpu_int_disable tn_arch_int_dis
291 #define tn_cpu_int_enable tn_arch_int_en
295 #define tn_cpu_save_sr tn_arch_sr_save_int_dis
298 #define tn_cpu_restore_sr tn_arch_sr_restore
302 #define tn_disable_interrupt TN_INT_DIS_SAVE
305 #define tn_enable_interrupt TN_INT_RESTORE
309 #define tn_idisable_interrupt TN_INT_IDIS_SAVE
312 #define tn_ienable_interrupt TN_INT_IRESTORE
316 #define tn_chk_irq_disabled TN_IS_INT_DISABLED
319 #define TN_NUM_PRIORITY TN_PRIORITIES_CNT
322 #define _TN_BITS_IN_INT TN_INT_WIDTH
326 #define TN_ALIG sizeof(TN_UWord)
332 #define TN_TASK_STACK_DEF TN_STACK_ARR_DEF
344 #endif // TN_OLD_TNKERNEL_NAMES
346 #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