mirror of https://github.com/ARMmbed/mbed-os.git
Fix IAR coding style and thread/mutex namingin mbed_boot.c
parent
b01f13d1a0
commit
e66f9ee818
|
|
@ -362,6 +362,7 @@ void $Sub$$__cpp_initialize__aeabi_(void)
|
|||
|
||||
void pre_main()
|
||||
{
|
||||
singleton_mutex_attr.name = "singleton_mutex";
|
||||
singleton_mutex_attr.attr_bits = osMutexRecursive;
|
||||
singleton_mutex_attr.cb_size = sizeof(singleton_mutex_obj);
|
||||
singleton_mutex_attr.cb_mem = &singleton_mutex_obj;
|
||||
|
|
@ -548,6 +549,7 @@ void __iar_program_start( void )
|
|||
low_level_init_needed_local = __low_level_init();
|
||||
if (low_level_init_needed_local) {
|
||||
__iar_data_init3();
|
||||
|
||||
/* Copy the vector table to RAM only if uVisor is not in use. */
|
||||
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
|
||||
mbed_cpy_nvic();
|
||||
|
|
@ -578,6 +580,7 @@ void __iar_system_Mtxinit(__iar_Rmtx *mutex) /* Initialize a system lock */
|
|||
uint32_t index;
|
||||
for (index = 0; index < _MAX_LOCK; index++) {
|
||||
if (0 == std_mutex_id_sys[index]) {
|
||||
attr.name = "system_mutex";
|
||||
attr.cb_mem = &std_mutex_sys[index];
|
||||
attr.cb_size = sizeof(std_mutex_sys[index]);
|
||||
attr.attr_bits = osMutexRecursive;
|
||||
|
|
@ -613,6 +616,7 @@ void __iar_file_Mtxinit(__iar_Rmtx *mutex) /* Initialize a file lock */
|
|||
uint32_t index;
|
||||
for (index = 0; index < _FOPEN_MAX; index++) {
|
||||
if (0 == std_mutex_id_file[index]) {
|
||||
attr.name = "file_mutex";
|
||||
attr.cb_mem = &std_mutex_file[index];
|
||||
attr.cb_size = sizeof(std_mutex_file[index]);
|
||||
attr.attr_bits = osMutexRecursive;
|
||||
|
|
|
|||
Loading…
Reference in New Issue