TI中文支持网
TI专业的中文技术问题搜集分享网站

TM4C1294以太网中断怎么关断

初始化LWIP协议栈后,好像总有中断会打断其他的工作,怎么确保其他的程序不被打断

xyz549040622:

这就是看你对时间的分配和任务的调度了,肯定会有其他中断的优先级更高的,可以试着上RTOS,官方也有LWIP+RTOS的例程了。

Susan Yang:

另外您也可以尝试使用Interrupt Priority Grouping (www.ti.com.cn/…/tm4c1294kcpdt.pdf 的2.5.6)

To increase priority control in systems with interrupts, the NVIC supports priority grouping. This grouping divides each interrupt priority register entry into two fields:
■ An upper field that defines the group priority
■ A lower field that defines a subpriority within the group

Only the group priority determines preemption of interrupt exceptions. When the processor is executing an interrupt exception handler, another interrupt with the same group priority as the interrupt being handled does not preempt the handler. If multiple pending interrupts have the same group priority, the subpriority field determines the order in which they are processed. If multiple pending interrupts have the same group priority and
subpriority, the interrupt with the lowest IRQ number is processed first.

For information about splitting the interrupt priority fields into group priority and subpriority, see page 171.

赞(0)
未经允许不得转载:TI中文支持网 » TM4C1294以太网中断怎么关断
分享到: 更多 (0)