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 0156b6c commit 6c8532f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lwmem/src/system/lwmem_sys_cmsis_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@

uint8_t
lwmem_sys_mutex_create(LWMEM_CFG_OS_MUTEX_HANDLE* m) {
*m = osMutexNew(NULL);
return lwmem_sys_mutex_isvalid(m);
const osMutexAttr_t attr = {
.name = "lwmem_mutex",
};
return (*m = osMutexNew(&attr)) != NULL;
}

uint8_t
Expand Down

0 comments on commit 6c8532f

Please sign in to comment.