[FL-1910, FL-2146] Update to new FreeRTOS, fix CMSIS thread flags collision with stream buffer. New cube. (#917)

* Libs: add FreeRTOS submodule. FuriHal: replace ST provided FreeRTOS with original one. FuriHal: for cmsis os hal and patch it for better compatibility with stream buffer.
* Makefile: fix svd plugin on blackmagic
* Lib: update STM32CubeWB package. Project: update project to match new cube package.
* Lib: properly rebase and upload STM32CubeWB
* BleGlue: switch ack logging level to trace
This commit is contained in:
あく
2021-12-21 15:16:25 +03:00
committed by GitHub
parent 26b2d07dd6
commit 439fb9c18d
39 changed files with 4313 additions and 354 deletions

View File

@@ -2,7 +2,6 @@
#include "ble.h"
#include "cmsis_os.h"
#include <furi-hal.h>
#include <furi.h>
@@ -28,7 +27,7 @@ typedef struct {
osMutexId_t state_mutex;
BleEventCallback on_event_cb;
void* context;
osTimerId advertise_timer;
osTimerId_t advertise_timer;
FuriThread* thread;
osMessageQueueId_t command_queue;
bool enable_adv;
@@ -446,7 +445,7 @@ void gap_thread_stop() {
static int32_t gap_app(void *context) {
GapCommand command;
while(1) {
osStatus status = osMessageQueueGet(gap->command_queue, &command, NULL, osWaitForever);
osStatus_t status = osMessageQueueGet(gap->command_queue, &command, NULL, osWaitForever);
if(status != osOK) {
FURI_LOG_E(TAG, "Message queue get error: %d", status);
continue;