mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Move mutex to common code.
This commit is contained in:
parent
c3ccf19234
commit
9f5dbae31b
@ -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 \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -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/, \
|
||||||
|
|||||||
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user