-
Notifications
You must be signed in to change notification settings - Fork 3k
NEW TOOLCHAIN: Add the ARMC6 compiler #4905
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -595,7 +595,9 @@ void *__user_perthread_libspace (void) { | |
typedef void *mutex; | ||
|
||
// Initialize mutex | ||
#if !defined(__ARMCC_VERSION) || __ARMCC_VERSION < 6010050 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've asked in ARM-software/CMSIS_5#213 (comment) whether CMSIS guys have some better way of doing that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @bulislaw. It looks like they're staying until the CMSIS guys can find a better solution. |
||
__USED | ||
#endif | ||
int _mutex_initialize(mutex *m); | ||
__WEAK int _mutex_initialize(mutex *m) { | ||
*m = osMutexNew(NULL); | ||
|
@@ -607,7 +609,9 @@ __WEAK int _mutex_initialize(mutex *m) { | |
} | ||
|
||
// Acquire mutex | ||
#if !defined(__ARMCC_VERSION) || __ARMCC_VERSION < 6010050 | ||
__USED | ||
#endif | ||
void _mutex_acquire(mutex *m); | ||
__WEAK void _mutex_acquire(mutex *m) { | ||
if (os_kernel_is_active()) { | ||
|
@@ -616,7 +620,9 @@ __WEAK void _mutex_acquire(mutex *m) { | |
} | ||
|
||
// Release mutex | ||
#if !defined(__ARMCC_VERSION) || __ARMCC_VERSION < 6010050 | ||
__USED | ||
#endif | ||
void _mutex_release(mutex *m); | ||
__WEAK void _mutex_release(mutex *m) { | ||
if (os_kernel_is_active()) { | ||
|
@@ -625,7 +631,9 @@ __WEAK void _mutex_release(mutex *m) { | |
} | ||
|
||
// Free mutex | ||
#if !defined(__ARMCC_VERSION) || __ARMCC_VERSION < 6010050 | ||
__USED | ||
#endif | ||
void _mutex_free(mutex *m); | ||
__WEAK void _mutex_free(mutex *m) { | ||
osMutexDelete(*m); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
extern "C" { | ||
#endif | ||
|
||
#include <arm_compat.h> | ||
#include <rt_misc.h> | ||
#include <stdint.h> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the ARMCC reference manual recommend setting
__use_two_region_memory
and__use_no_semihosting
using this syntax? Its a bit odd seeing inline assembly outside the body of a function.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. https://developer.arm.com/docs/dui0742/latest/compiler-source-code-compatibility/language-extension-compatibility-pragmas