Forum Discussion
Altera_Forum
Honored Contributor
19 years agoThank you for you suggestions!! Yes, I think the "volatile" definition do play some role. But I am not quite sure in what cases should I use this keyword.
And in the uC/OS-II there are OS_ENTER_CRITICAL() and OS_EXIT_CRITICAL() macros that protects certain critical code from being interrupted. I again do not know where I should use them. Is there any rules about the usage of these items?? Thank you!!