Move mutex to common code.

This commit is contained in:
iabdalkader 2020-12-18 21:54:29 +02:00
parent c3ccf19234
commit 9f5dbae31b
4 changed files with 4 additions and 2 deletions

View File

@ -234,6 +234,7 @@ FIRM_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/common/, \
ini.o \ ini.o \
ringbuf.o \ ringbuf.o \
trace.o \ trace.o \
mutex.o \
) )
FIRM_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/sensors/, \ FIRM_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/sensors/, \
@ -400,6 +401,7 @@ UVC_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/alloc/, \
UVC_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/common/, \ UVC_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/common/, \
array.o \ array.o \
trace.o \ trace.o \
mutex.o \
) )
UVC_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/sensors/, \ UVC_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/sensors/, \
@ -428,7 +430,6 @@ UVC_OBJ += $(addprefix $(BUILD)/$(OMV_DIR)/ports/stm32/,\
sensor.o \ sensor.o \
stm32fxxx_hal_msp.o \ stm32fxxx_hal_msp.o \
soft_i2c.o \ soft_i2c.o \
mutex.o \
cambus.o \ cambus.o \
) )

View File

@ -19,6 +19,7 @@ SRCS += $(addprefix common/, \
ini.c \ ini.c \
ringbuf.c \ ringbuf.c \
trace.c \ trace.c \
mutex.c \
) )
SRCS += $(addprefix sensors/, \ SRCS += $(addprefix sensors/, \

View File

@ -8,8 +8,8 @@
* *
* Mutex implementation. * Mutex implementation.
*/ */
#include STM32_HAL_H
#include "mutex.h" #include "mutex.h"
#include "cmsis_gcc.h"
// This is a standard implementation of mutexs on ARM processors following the ARM guide. // This is a standard implementation of mutexs on ARM processors following the ARM guide.
// http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0321a/BIHEJCHB.html // http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0321a/BIHEJCHB.html