We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd7270 commit 275737dCopy full SHA for 275737d
targets/TARGET_STM/stm_dma_utils.c
@@ -27,6 +27,7 @@
27
#include "cmsis_os.h"
28
#include "cmsis_os2.h"
29
static osMutexId dmaMutex;
30
+static osRtxMutex_t dmaMutexMem;
31
#endif
32
33
// Array to store pointer to DMA handle for each DMA channel.
@@ -39,8 +40,8 @@ void stm_init_dma_mutex()
39
40
osMutexAttr_t attr = {
41
.name = "dma_mutex",
42
.attr_bits = osMutexRecursive|osMutexPrioInherit,
- .cb_mem = NULL,
43
- .cb_size = 0
+ .cb_mem = &dmaMutexMem,
44
+ .cb_size = sizeof(osRtxMutex_t)
45
};
46
dmaMutex = osMutexNew(&attr);
47
0 commit comments