May I use cli() and sei() in the interrupt?

后端 未结 0 1631
心在旅途
心在旅途 2020-12-02 23:48

May I use cli() and sei() like this:

ISR(EXT_INT0_vect)
{
    cli();
    MyFunction();
    sei();
}

I heard that it is forbidden. Is it or I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题