-
Notifications
You must be signed in to change notification settings - Fork 3k
Query: Exclusive Access #4866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I dont recall if we did not have it previously in the older code base. But would make sense to switch to cmsis one 👍 Looking at this further, they added as well atomic_ functions that were not there previously (I believe prior cmsis5 update) |
If it's prefixed with "__", does that mean it's intended to be private? |
I would expect so, but if you look at the macros defined in cmsis headers, that we even use, all of them start and end with |
Just a remainder any identifier that begin by an underscore followed by another underscore or an uppercase are reserved and should not be used (C99: 7.1.3). Identifier beginning with an underscore are also reserved for use as identifier of file scope elements (C99: 7.1.3). Yes, |
__EXCLUSIVE_ACCESS Macro is set in "core_cm.h" file considering the ARM architecture.
EXCLUSIVE_ACCESS macro is set in "mbed_critical.c" file.
#define EXCLUSIVE_ACCESS (!defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS))
Shouldn't we use single macro, as it looks both of them are for same purpose. Or any specific reason to have this redefined in *.c file?
@sg- @0xc0170 @bulislaw
The text was updated successfully, but these errors were encountered: