tExcTask函数的作用:
This library provides a facility for interrupt service routines to defer work
that should be performed at task level. This library sets up an exception task
which executes jobs queued for it. A job is an address of a function to execute along with 6 arguments to be passed to it. The tExcTask should never be suspended or deleted, and neither should its priority ever be changed.
This library provides a facility for interrupt service routines to defer work
that should be performed at task level. This library sets up an exception task
which executes jobs queued for it. A job is an address of a function to execute along with 6 arguments to be passed to it. The tExcTask should never be suspended or deleted, and neither should its priority ever be changed.
也就是所这个任务是把一个中断函数延后并当作一个任务来执行。
这个实现,跟linux中把中断分为上下两部分执行类似。上半部分中断执行紧急的,下半部分中断函数执行其他不紧急的动作。
先看初始化:
usrRoot--->usrIosExtraInit--->excInit
延后队列的结构体:
typedef struct isr_job_q_ix
{
volatile UINT16 read; /* ISR jobQ read index */
UINT16 bitmask; /* ISR jobQ index bitmask */
volatile UINT16 write; /* ISR jobQ write index */
} ISR_JOB_Q_IX;
/*延后队列*/
LOCAL ISR_

本文介绍了tExcTask函数的工作机制,它将中断处理延迟为一个任务执行,类似于Linux中断上下半部的概念。在初始化后,tExcTask允许中断的上半部分处理紧急操作,而下半部分则处理后续的非紧急任务。

4552

被折叠的 条评论
为什么被折叠?



