[En-Nut-Discussion] NutEnterCritical with multiple local variables
Dušan
dferbas at etech.cz
Mon Nov 23 12:55:12 CET 2015
Just to int temp_.
Then the {} parenthesis will be no more needed in NutEnterCritical, NutExitCritical because there will be no more need to declare such a local variable.
There are functions with NutEnter / NutExit pairs , e.g. UsartResetBuffer() in dev/usart.c.
Are you sure all compilers can optimize existing code?
Dušan
On 23.11.2015 0:38, Nathan Moore wrote:
> What code would the NutUseCritical macro expand to? Why is it needed?
>
> Nathan
More information about the En-Nut-Discussion
mailing list