but a fact is that __disable_irq() and __enable_irq() can not be called from the user mode.It seems they dont function correctly, the irq is not disabled after call to portDISABLE_INTERRUPTS() or portENABLE_INTERRUPTS().
plz help me about this…
Thanks for your kindly reply!
However , I found that the watchdog timer not work well with the __disable_irq().It seems that the wdt resets the whole system even if I feed it in the task using __disable_irq() and __enable_irq() to ensure the feed is successful.