Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions common/core/src/ux_system_initialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,14 @@ ULONG pool_size;
/* Other fields are kept zero. */
#endif

#if !defined(UX_STANDALONE)

/* Create the Mutex object used by USBX to control critical sections. */
status = _ux_system_mutex_create(&_ux_system -> ux_system_mutex, "ux_system_mutex");
if(status != UX_SUCCESS)
return(UX_MUTEX_ERROR);
#endif

#ifdef UX_ENABLE_DEBUG_LOG

/* Obtain memory for storing the debug log. */
Expand All @@ -277,14 +285,6 @@ ULONG pool_size;

#endif

#if !defined(UX_STANDALONE)

/* Create the Mutex object used by USBX to control critical sections. */
status = _ux_system_mutex_create(&_ux_system -> ux_system_mutex, "ux_system_mutex");
if(status != UX_SUCCESS)
return(UX_MUTEX_ERROR);
#endif

return(UX_SUCCESS);
}

Expand Down