Skip to content

Commit 1b46b21

Browse files
author
Jan Kamidra
committed
Revert back
1 parent b3d8cf7 commit 1b46b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/TARGET_STM/stm_dma_utils.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include <string.h>
2525

2626
#ifdef MBED_CONF_RTOS_PRESENT
27-
#include "rtx_os.h"
28-
#include "mbed_rtos1_types.h"
27+
#include "cmsis_os.h"
28+
#include "cmsis_os2.h"
2929
static osMutexId dmaMutex;
3030
static osRtxMutex_t dmaMutexMem;
3131
#endif
@@ -50,7 +50,7 @@ void stm_init_dma_mutex()
5050
void stm_lock_dma_mutex()
5151
{
5252
#ifdef MBED_CONF_RTOS_PRESENT
53-
osMutexAcquire(dmaMutex, osWaitForever);
53+
osMutexWait(dmaMutex, osWaitForever);
5454
#endif
5555
}
5656

0 commit comments

Comments
 (0)