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 || DOXYGEN_ACTIVE
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
133 #if TN_OLD_EVENT_API || defined(DOXYGEN_ACTIVE)
136 # define _TN_EVENT TN_EventGrp
144 #define MAKE_ALIG TN_MAKE_ALIG
148 #define TSK_STATE_RUNNABLE TN_TASK_STATE_RUNNABLE
151 #define TSK_STATE_WAIT TN_TASK_STATE_WAIT
154 #define TSK_STATE_SUSPEND TN_TASK_STATE_SUSPEND
157 #define TSK_STATE_WAITSUSP TN_TASK_STATE_WAITSUSP
160 #define TSK_STATE_DORMANT TN_TASK_STATE_DORMANT
163 #define TN_TASK_START_ON_CREATION TN_TASK_CREATE_OPT_START
166 #define TN_EXIT_AND_DELETE_TASK TN_TASK_EXIT_OPT_DELETE
171 #define TN_EVENT_WCOND_AND TN_EVENTGRP_WMODE_AND
174 #define TN_EVENT_WCOND_OR TN_EVENTGRP_WMODE_OR
178 #define TSK_WAIT_REASON_NONE TN_WAIT_REASON_NONE
181 #define TSK_WAIT_REASON_SLEEP TN_WAIT_REASON_SLEEP
184 #define TSK_WAIT_REASON_SEM TN_WAIT_REASON_SEM
187 #define TSK_WAIT_REASON_EVENT TN_WAIT_REASON_EVENT
190 #define TSK_WAIT_REASON_DQUE_WSEND TN_WAIT_REASON_DQUE_WSEND
193 #define TSK_WAIT_REASON_DQUE_WRECEIVE TN_WAIT_REASON_DQUE_WRECEIVE
196 #define TSK_WAIT_REASON_MUTEX_C TN_WAIT_REASON_MUTEX_C
199 #define TSK_WAIT_REASON_MUTEX_I TN_WAIT_REASON_MUTEX_I
202 #define TSK_WAIT_REASON_WFIXMEM TN_WAIT_REASON_WFIXMEM
207 #define TERR_NO_ERR TN_RC_OK
210 #define TERR_OVERFLOW TN_RC_OVERFLOW
213 #define TERR_WCONTEXT TN_RC_WCONTEXT
216 #define TERR_WSTATE TN_RC_WSTATE
219 #define TERR_TIMEOUT TN_RC_TIMEOUT
222 #define TERR_WRONG_PARAM TN_RC_WPARAM
225 #define TERR_ILUSE TN_RC_ILLEGAL_USE
228 #define TERR_NOEXS TN_RC_INVALID_OBJ
231 #define TERR_DLT TN_RC_DELETED
234 #define TERR_FORCED TN_RC_FORCED
237 #define TERR_INTERNAL TN_RC_INTERNAL
242 #define TN_MUTEX_ATTR_CEILING TN_MUTEX_PROT_CEILING
245 #define TN_MUTEX_ATTR_INHERIT TN_MUTEX_PROT_INHERIT
251 #define tn_sem_polling tn_sem_acquire_polling
254 #define tn_sem_ipolling tn_sem_iacquire_polling
258 #define tn_sem_acquire tn_sem_wait
261 #define tn_sem_acquire_polling tn_sem_wait_polling
264 #define tn_sem_iacquire_polling tn_sem_iwait_polling
269 #define tn_fmem_get_ipolling tn_fmem_iget_polling
273 #define tn_queue_ireceive tn_queue_ireceive_polling
277 #define tn_start_system tn_sys_start
280 #define tn_sys_tslice_ticks tn_sys_tslice_set
285 #define align_attr_start TN_ARCH_STK_ATTR_BEFORE
288 #define align_attr_end TN_ARCH_STK_ATTR_AFTER
292 #define tn_cpu_int_disable tn_arch_int_dis
295 #define tn_cpu_int_enable tn_arch_int_en
299 #define tn_cpu_save_sr tn_arch_sr_save_int_dis
302 #define tn_cpu_restore_sr tn_arch_sr_restore
306 #define tn_disable_interrupt TN_INT_DIS_SAVE
309 #define tn_enable_interrupt TN_INT_RESTORE
313 #define tn_idisable_interrupt TN_INT_IDIS_SAVE
316 #define tn_ienable_interrupt TN_INT_IRESTORE
320 #define tn_chk_irq_disabled TN_IS_INT_DISABLED
323 #define TN_NUM_PRIORITY TN_PRIORITIES_CNT
326 #define _TN_BITS_IN_INT TN_INT_WIDTH
329 #define TN_ALIG sizeof(TN_UWord)
332 #define NO_TIME_SLICE TN_NO_TIME_SLICE
335 #define MAX_TIME_SLICE TN_MAX_TIME_SLICE
341 #define TN_TASK_STACK_DEF TN_STACK_ARR_DEF
344 #define TN_Timeout TN_TickCnt
350 #if TN_OLD_EVENT_API || DOXYGEN_ACTIVE
356 #define TN_EVENT_ATTR_SINGLE TN_EVENTGRP_ATTR_SINGLE
362 #define TN_EVENT_ATTR_MULTI TN_EVENTGRP_ATTR_MULTI
368 #define TN_EVENT_ATTR_CLR TN_EVENTGRP_ATTR_CLR
374 #define tn_event_create(ev, attr, pattern) \
375 tn_eventgrp_create_wattr((ev), (enum TN_EGrpAttr)(attr), (pattern))
381 #define tn_event_delete tn_eventgrp_delete
387 #define tn_event_wait tn_eventgrp_wait
393 #define tn_event_wait_polling tn_eventgrp_wait_polling
399 #define tn_event_iwait tn_eventgrp_iwait_polling
406 #define tn_event_set(ev, pattern) tn_eventgrp_modify ((ev), TN_EVENTGRP_OP_SET, (pattern))
413 #define tn_event_iset(ev, pattern) tn_eventgrp_imodify((ev), TN_EVENTGRP_OP_SET, (pattern))
422 #define tn_event_clear(ev, pattern) tn_eventgrp_modify ((ev), TN_EVENTGRP_OP_CLEAR, (~(pattern)))
431 #define tn_event_iclear(ev, pattern) tn_eventgrp_imodify((ev), TN_EVENTGRP_OP_CLEAR, (~(pattern)))
443 #if !DOXYGEN_SHOULD_SKIP_THIS
445 #define tn_ready_list _tn_tasks_ready_list
446 #define tn_create_queue _tn_tasks_created_list
447 #define tn_created_tasks_cnt _tn_tasks_created_cnt
449 #define tn_tslice_ticks _tn_tslice_ticks
451 #define tn_sys_state _tn_sys_state
453 #define tn_next_task_to_run _tn_next_task_to_run
454 #define tn_curr_run_task _tn_curr_run_task
456 #define tn_ready_to_run_bmp _tn_ready_to_run_bmp
458 #define tn_idle_task _tn_idle_task
473 #endif // TN_OLD_TNKERNEL_NAMES
475 #endif // _TN_OLDSYMBOLS_H
Structure representing data queue object.
Definitions used through the whole kernel.
Fixed memory blocks pool.
Circular doubly linked list item, for internal kernel usage.