@@ -363,7 +363,7 @@ void $Sub$$__cpp_initialize__aeabi_(void)
363
363
void pre_main ()
364
364
{
365
365
singleton_mutex_attr .name = "singleton_mutex" ;
366
- singleton_mutex_attr .attr_bits = osMutexRecursive ;
366
+ singleton_mutex_attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
367
367
singleton_mutex_attr .cb_size = sizeof (singleton_mutex_obj );
368
368
singleton_mutex_attr .cb_mem = & singleton_mutex_obj ;
369
369
singleton_mutex_id = osMutexNew (& singleton_mutex_attr );
@@ -383,7 +383,7 @@ extern int main(int argc, char* argv[]);
383
383
void pre_main (void )
384
384
{
385
385
singleton_mutex_attr .name = "singleton_mutex" ;
386
- singleton_mutex_attr .attr_bits = osMutexRecursive ;
386
+ singleton_mutex_attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
387
387
singleton_mutex_attr .cb_size = sizeof (singleton_mutex_obj );
388
388
singleton_mutex_attr .cb_mem = & singleton_mutex_obj ;
389
389
singleton_mutex_id = osMutexNew (& singleton_mutex_attr );
@@ -440,19 +440,19 @@ int __wrap_main(void) {
440
440
void pre_main (void )
441
441
{
442
442
singleton_mutex_attr .name = "singleton_mutex" ;
443
- singleton_mutex_attr .attr_bits = osMutexRecursive ;
443
+ singleton_mutex_attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
444
444
singleton_mutex_attr .cb_size = sizeof (singleton_mutex_obj );
445
445
singleton_mutex_attr .cb_mem = & singleton_mutex_obj ;
446
446
singleton_mutex_id = osMutexNew (& singleton_mutex_attr );
447
447
448
448
malloc_mutex_attr .name = "malloc_mutex" ;
449
- malloc_mutex_attr .attr_bits = osMutexRecursive ;
449
+ malloc_mutex_attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
450
450
malloc_mutex_attr .cb_size = sizeof (malloc_mutex_obj );
451
451
malloc_mutex_attr .cb_mem = & malloc_mutex_obj ;
452
452
malloc_mutex_id = osMutexNew (& malloc_mutex_attr );
453
453
454
454
env_mutex_attr .name = "env_mutex" ;
455
- env_mutex_attr .attr_bits = osMutexRecursive ;
455
+ env_mutex_attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
456
456
env_mutex_attr .cb_size = sizeof (env_mutex_obj );
457
457
env_mutex_attr .cb_mem = & env_mutex_obj ;
458
458
env_mutex_id = osMutexNew (& env_mutex_attr );
@@ -526,7 +526,7 @@ static uint8_t low_level_init_needed;
526
526
void pre_main (void )
527
527
{
528
528
singleton_mutex_attr .name = "singleton_mutex" ;
529
- singleton_mutex_attr .attr_bits = osMutexRecursive ;
529
+ singleton_mutex_attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
530
530
singleton_mutex_attr .cb_size = sizeof (singleton_mutex_obj );
531
531
singleton_mutex_attr .cb_mem = & singleton_mutex_obj ;
532
532
singleton_mutex_id = osMutexNew (& singleton_mutex_attr );
@@ -583,7 +583,7 @@ void __iar_system_Mtxinit(__iar_Rmtx *mutex) /* Initialize a system lock */
583
583
attr .name = "system_mutex" ;
584
584
attr .cb_mem = & std_mutex_sys [index ];
585
585
attr .cb_size = sizeof (std_mutex_sys [index ]);
586
- attr .attr_bits = osMutexRecursive ;
586
+ attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
587
587
std_mutex_id_sys [index ] = osMutexNew (& attr );
588
588
* mutex = (__iar_Rmtx * )& std_mutex_id_sys [index ];
589
589
return ;
@@ -619,7 +619,7 @@ void __iar_file_Mtxinit(__iar_Rmtx *mutex) /* Initialize a file lock */
619
619
attr .name = "file_mutex" ;
620
620
attr .cb_mem = & std_mutex_file [index ];
621
621
attr .cb_size = sizeof (std_mutex_file [index ]);
622
- attr .attr_bits = osMutexRecursive ;
622
+ attr .attr_bits = osMutexRecursive | osMutexPrioInherit | osMutexRobust ;
623
623
std_mutex_id_file [index ] = osMutexNew (& attr );
624
624
* mutex = (__iar_Rmtx * )& std_mutex_id_file [index ];
625
625
return ;
0 commit comments