EngineeringSpirit / FreeLwIP-Nios-II

FreeRTOS with LwIP integration in the Nios II EDS
19 stars 28 forks source link

Incorrect implementatios of portENABLE_INTERRUPTS. #13

Open vmpru opened 4 years ago

vmpru commented 4 years ago

This port use incorrect implementatios of portENABLE_INTERRUPTS. Two consecutive calls of portENABLE_INTERRUPTS make interrupts disabled:

#define portENABLE_INTERRUPTS()     enh_alt_irq_enable_all()
void enh_alt_irq_enable_all()
{
    alt_irq_context restore = lastContext;
    lastContext = 0;
    alt_irq_enable_all(restore);
}