This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294以太网中断怎么关断



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

  • 这就是看你对时间的分配和任务的调度了,肯定会有其他中断的优先级更高的,可以试着上RTOS,官方也有LWIP+RTOS的例程了。
  • 另外您也可以尝试使用 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.