📄 tcd.c
字号:
0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0,
1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1,
0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0,
2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2,
0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0,
1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1,
0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,
4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3,
0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0,
1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1,
0, 2, 0, 1, 0};
/* TCD_Highest_Priority contains the highest priority task ready for execution.
Note that this does not necessarily represent the priority of the currently
executing task. This is true if the currently executing task has preemption
disabled. If no tasks are executing, this variable is set to the maximum
priority. */
INT TCD_Highest_Priority;
/* TCD_Execute_Task is a pointer to the task to execute. Note that this
pointer does not necessarily point to the currently executing task. There
are several points in the system where this is true. One situation is
when preemption is about to take place. Another situation can result from
a internal protection conflict. */
TC_TCB *TCD_Execute_Task;
/* TCD_Created_HISRs_List is the head pointer of the list of created High-
Level Interrupt Service Routines (HISR). If this pointer is NU_NULL, there
are no HISRs currently created. */
CS_NODE *TCD_Created_HISRs_List;
/* TCD_Total_HISRs contains the number of currently created HISRs. */
UNSIGNED TCD_Total_HISRs;
/* TCD_Active_HISR_Heads is an array of active HISR list head pointers.
There are three HISR priorities available. The HISR priority is an index
into this table. Priority/index 0 represents the highest priority. */
TC_HCB *TCD_Active_HISR_Heads[TC_HISR_PRIORITIES];
/* TCD_Active_HISR_Tails is an array of active HISR list tail pointers.
There are three HISR priorities available. The HISR priority is an index
into this table. Priority/index 0 represents the highest priority. */
TC_HCB *TCD_Active_HISR_Tails[TC_HISR_PRIORITIES];
/* TCD_Execute_HISR contains a pointer to the highest priority HISR to execute.
If this pointer is NU_NULL, no HISRs are currently activated. Note that
the current thread pointer is not always equal to this pointer. */
TC_HCB *TCD_Execute_HISR;
/* TCD_Current_Thread points to the control block of the currently executing
thread of execution. Therefore, this variable points at either a TC_TCB
or a TC_HCB structure. Except for initialization, this variable is set
and cleared in the target dependent portion of this component. */
VOID *TCD_Current_Thread;
/* TCD_System_Stack contains the system stack base pointer. When the system
is idle or in interrupt processing the system stack pointer is used. This
variable is usually setup during target dependent initialization. */
VOID *TCD_System_Stack;
/* TCD_Registered_LISRs is a list that specifies whether or not a
LISR is registered for a given interrupt vector. If the value in the
list indexed by the vector is non-zero, then that value can be used
as the index into the list of LISR pointers to find the actual registered
LISR. */
UNSIGNED_CHAR TCD_Registered_LISRs[NU_MAX_VECTORS];
/* TCD_LISR_Pointers is a list of LISR pointers that indicate the LISR function
to call when the interrupt occurs. If the entry is NULL, it is
available. */
VOID (*TCD_LISR_Pointers[NU_MAX_LISRS])(INT vector);
/* TCD_Interrupt_Count contains the number of Interrupt Service Routines (ISRs)
currently in progress. If the contents of this variable is zero, then no
interrupts are in progress. If the contents are greater than 1, nested
interrupts are being processed. */
INT TCD_Interrupt_Count;
/* TCD_Stack_Switched contains a flag indicating that the system stack was
switched to after the thread's context was saved. This variable is not
used in all ports. */
INT TCD_Stack_Switched;
/* TCD_List_Protect is a structure that is used to protect against multiple
access to the list of established tasks. */
TC_PROTECT TCD_List_Protect;
/* TCD_System_Protect is a structure that is used to provide protection
against multiple threads accessing the same system structures at the
same time. */
TC_PROTECT TCD_System_Protect;
/* TCD_LISR_Protect is a structure that is used to provide protection against
multiple threads accessing the LISR registration structures at the same
time. */
TC_PROTECT TCD_LISR_Protect;
/* TCD_HISR_Protect is a structure that is used to provide protection against
multiple threads accessing the created HISR linked-list at the same time. */
TC_PROTECT TCD_HISR_Protect;
/* TCD_Interrupt_Level is a variable that contains the enabled interrupt
level. If the target processor does not have multiple enable interrupt
levels, this variable is a boolean. */
INT TCD_Interrupt_Level;
/* TCD_Unhandled_Interrupt is a variable that contains the last unhandled
interrupt in system error conditions. */
INT TCD_Unhandled_Interrupt;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -