Some of the examples in the embOS_Generic.pdf manual call OS_IncDI() before doing anything else in main(). But some do not.
In none of these example snippets is there a all to either OS_DecRI() or OS_EI() - I assume this happens in one of the subsequent initialization functions (OS_InitKern(), OS_InitHW(), or OS_Start()) and that it's performed unconditionally - not by decrementing the counter and enabling if it reaches 0.
Could I get clarification on whether or not a call to OS_IncDI() is necessary and where/how interrupts do get enabled? I'd prefer not to rely on 'it works for me'.
Thanks.
In none of these example snippets is there a all to either OS_DecRI() or OS_EI() - I assume this happens in one of the subsequent initialization functions (OS_InitKern(), OS_InitHW(), or OS_Start()) and that it's performed unconditionally - not by decrementing the counter and enabling if it reaches 0.
Could I get clarification on whether or not a call to OS_IncDI() is necessary and where/how interrupts do get enabled? I'd prefer not to rely on 'it works for me'.
Thanks.