Skip to content

Commit

Permalink
Update cmsis-os driver to support kernel aware debuggers
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jun 1, 2021
1 parent 8cbc2ca commit a45af8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lwow/src/system/lwow_sys_cmsis_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ uint8_t
lwow_sys_mutex_create(LWOW_CFG_OS_MUTEX_HANDLE* m, void* arg) {
LWOW_UNUSED(arg);
const osMutexAttr_t attr = {
.attr_bits = osMutexRecursive
.attr_bits = osMutexRecursive,
.name = "lwow_mutex",
};

*m = osMutexNew(&attr);
return *m != NULL;
return (*m = osMutexNew(&attr)) != NULL;
}

uint8_t
Expand Down

0 comments on commit a45af8a

Please sign in to comment.