File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
rtos/source/TARGET_CORTEX/rtx5/RTX/Source Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -728,11 +728,12 @@ typedef void *mutex;
728
728
//lint -e818 "Pointer 'm' could be declared as pointing to const"
729
729
730
730
// Initialize mutex
731
+ #if !defined(__ARMCC_VERSION ) || __ARMCC_VERSION < 6010050
731
732
__USED
733
+ #endif
732
734
int _mutex_initialize (mutex * m );
733
- int _mutex_initialize (mutex * m ) {
735
+ __WEAK int _mutex_initialize (mutex * m ) {
734
736
int result ;
735
-
736
737
* m = osMutexNew (NULL );
737
738
if (* m != NULL ) {
738
739
result = 1 ;
@@ -744,26 +745,32 @@ int _mutex_initialize(mutex *m) {
744
745
}
745
746
746
747
// Acquire mutex
748
+ #if !defined(__ARMCC_VERSION ) || __ARMCC_VERSION < 6010050
747
749
__USED
748
- void _mutex_acquire (mutex * m );
750
+ #endif
751
+ __WEAK void _mutex_acquire (mutex * m );
749
752
void _mutex_acquire (mutex * m ) {
750
753
if (os_kernel_is_active () != 0U ) {
751
754
(void )osMutexAcquire (* m , osWaitForever );
752
755
}
753
756
}
754
757
755
758
// Release mutex
759
+ #if !defined(__ARMCC_VERSION ) || __ARMCC_VERSION < 6010050
756
760
__USED
757
- void _mutex_release (mutex * m );
761
+ #endif
762
+ __WEAK void _mutex_release (mutex * m );
758
763
void _mutex_release (mutex * m ) {
759
764
if (os_kernel_is_active () != 0U ) {
760
765
(void )osMutexRelease (* m );
761
766
}
762
767
}
763
768
764
769
// Free mutex
770
+ #if !defined(__ARMCC_VERSION ) || __ARMCC_VERSION < 6010050
765
771
__USED
766
- void _mutex_free (mutex * m );
772
+ #endif
773
+ __WEAK void _mutex_free (mutex * m );
767
774
void _mutex_free (mutex * m ) {
768
775
(void )osMutexDelete (* m );
769
776
}
You can’t perform that action at this time.
0 commit comments