[FL-140] Core api dynamic records (#296)
* SYSTEM: tickless mode with deep sleep. * Move FreeRTOS ticks to lptim2 * API: move all sumbodules init routines to one place. Timebase: working lptim2 at tick source. * API Timebase: lp-timer routines, timer access safe zones prediction and synchronization. FreeRTOS: adjust configuration for tickless mode. * NFC: support for tickless mode. * API Timebase: improve tick error handling in IRQ. Apploader: use insomnia mode to run applications. * BLE: prevent sleep while core2 starting * HAL: nap while in insomnia mode * init records work * try to implement record delete * tests and flapp * flapp subsystem * new core functions to get app stat, simplify core code * fix thread termination * add strdup to core * fix tests * Refactoring: remove all unusued parts, update API usage, aggreagate API sources and headers, new record storage * Refactoring: update furi record api usage, cleanup code * Fix broken merge for freertos apps * Core, Target: fix compilation warnings * Drop firmware target local * HAL Timebase, Power, Clock: semaphore guarded access to clock and power modes, better sleep mode. * SD-Filesystem: wait for all deps to arrive before adding widget. Core, BLE: disable debug dump to serial. * delete old app example-ipc * delete old app fatfs list * fix strobe app, add input header * delete old display driver * comment old app qr-code * fix sd-card test, add forced widget update * remove unused new core test * increase heap to 128k * comment and assert old core tests * fix syntax Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "flipper_v2.h"
|
||||
#include <furi.h>
|
||||
#include "minunit.h"
|
||||
|
||||
static void furi_concurent_app(void* p) {
|
||||
@@ -10,7 +10,9 @@ static void furi_concurent_app(void* p) {
|
||||
}
|
||||
|
||||
void test_furi_event() {
|
||||
Event event;
|
||||
mu_assert(false, "please reimplement or delete test");
|
||||
|
||||
/*Event event;
|
||||
|
||||
mu_check(init_event(&event));
|
||||
|
||||
@@ -27,5 +29,5 @@ void test_furi_event() {
|
||||
// The event should not be signalled once it's processed
|
||||
mu_check(!wait_event_with_timeout(&event, 100));
|
||||
|
||||
mu_check(delete_event(&event));
|
||||
mu_check(delete_event(&event));*/
|
||||
}
|
||||
|
@@ -1,8 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "flipper_v2.h"
|
||||
#include "log.h"
|
||||
|
||||
#include <furi.h>
|
||||
#include "minunit.h"
|
||||
|
||||
const uint32_t context_value = 0xdeadbeef;
|
||||
|
@@ -1,16 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "flipper.h"
|
||||
#include "flipper_v2.h"
|
||||
#include "log.h"
|
||||
#include <furi.h>
|
||||
#include "minunit.h"
|
||||
|
||||
void test_furi_create_open() {
|
||||
// 1. Create record
|
||||
uint8_t test_data = 0;
|
||||
mu_check(furi_create("test/holding", (void*)&test_data));
|
||||
furi_record_create("test/holding", (void*)&test_data);
|
||||
|
||||
// 2. Open it
|
||||
void* record = furi_open("test/holding");
|
||||
void* record = furi_record_open("test/holding");
|
||||
mu_assert_pointers_eq(record, &test_data);
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "flipper_v2.h"
|
||||
#include <furi.h>
|
||||
#include "minunit.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "flipper_v2.h"
|
||||
#include "log.h"
|
||||
#include <furi.h>
|
||||
|
||||
#include "minunit.h"
|
||||
|
||||
@@ -88,6 +87,8 @@ void furi_concurent_app(void* p) {
|
||||
}
|
||||
|
||||
void test_furi_concurrent_access() {
|
||||
mu_assert(false, "please reimplement or delete test");
|
||||
/*
|
||||
// 1. Create holding record
|
||||
ConcurrentValue value = {.a = 0, .b = 0};
|
||||
ValueMutex mutex;
|
||||
@@ -123,4 +124,5 @@ void test_furi_concurrent_access() {
|
||||
mu_assert_int_eq(value.a, value.b);
|
||||
|
||||
mu_check(delete_mutex(&mutex));
|
||||
*/
|
||||
}
|
@@ -1,7 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "flipper.h"
|
||||
#include "log.h"
|
||||
#include <furi.h>
|
||||
|
||||
/*
|
||||
Test: creating and killing task
|
||||
@@ -24,6 +23,8 @@ void create_kill_app(void* p) {
|
||||
}
|
||||
|
||||
bool test_furi_ac_create_kill() {
|
||||
mu_assert(false, "please reimplement or delete test");
|
||||
/*
|
||||
uint8_t counter = 0;
|
||||
|
||||
uint8_t value_a = counter;
|
||||
@@ -56,6 +57,7 @@ bool test_furi_ac_create_kill() {
|
||||
}
|
||||
|
||||
return true;
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include "flipper.h"
|
||||
#include "log.h"
|
||||
#include <furi.h>
|
||||
#include "minunit_vars.h"
|
||||
#include "minunit.h"
|
||||
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include "flipper.h"
|
||||
#include "flipper_v2.h"
|
||||
#include "log.h"
|
||||
#include <furi.h>
|
||||
|
||||
// #include "flipper-core.h" TODO: Rust build disabled
|
||||
|
||||
|
Reference in New Issue
Block a user