Implement mutex for local target, fix concurrency test (#104)

* Implement mutex support for target_lo

* Kill application if test hangs

* Use mutex in furi_take and furi_give

* Give furi application enough time to finish

* remove app obj after build

* enable counting semaphores

Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
Vadim Kaushan
2020-09-07 17:35:18 +03:00
committed by GitHub
parent 0307b12fd5
commit 884fccc591
8 changed files with 58 additions and 18 deletions

View File

@@ -67,6 +67,7 @@
#define configUSE_MUTEXES 1
#define configQUEUE_REGISTRY_SIZE 8
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
#define configUSE_COUNTING_SEMAPHORES 1
/* Co-routine definitions. */
#define configUSE_CO_ROUTINES 0

View File

@@ -261,18 +261,16 @@ rust_lib:
$(RUST_LIB_CMD)
example_blink:
rm $(BUILD_DIR)/app.o
EXAMPLE_BLINK=1 make
rm $(BUILD_DIR)/app.o
example_uart_write:
rm $(BUILD_DIR)/app.o
EXAMPLE_UART_WRITE=1 make
rm $(BUILD_DIR)/app.o
example_ipc:
rm $(BUILD_DIR)/app.o
EXAMPLE_IPC=1 make
rm $(BUILD_DIR)/app.o
test:
TEST=1 make

View File

@@ -1,5 +1,6 @@
git checkout -- target_f1/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h
git checkout -- target_f1/Makefile
git checkout -- target_f1/Inc/FreeRTOSConfig.h
git checkout -- target_f1/Src/stm32l4xx_it.c
git checkout -- target_f1/Src/usbd_conf.c
git checkout -- target_f1/Src/usbd_desc.c