Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrZlo13 <who.just.the.doctor@gmail.com>2021-01-20 19:09:26 +0300
committerGitHub <noreply@github.com>2021-01-20 19:09:26 +0300
commit8f9b2513ffdda4afd9a3bce1906183bf8c5a8622 (patch)
treed6d47f17d0717e1db436ab6c7ef16fcfa9913132 /applications/irda
parent6c4983c6b6a03c025c39cdd5d7100a4c955b6cf6 (diff)
[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>
Diffstat (limited to 'applications/irda')
-rw-r--r--applications/irda/irda-decoder/irda-decoder.h3
-rw-r--r--applications/irda/irda.c14
-rw-r--r--applications/irda/irda_nec.c2
-rw-r--r--applications/irda/irda_nec.h2
-rw-r--r--applications/irda/irda_samsung.c2
-rw-r--r--applications/irda/irda_samsung.h2
6 files changed, 11 insertions, 14 deletions
diff --git a/applications/irda/irda-decoder/irda-decoder.h b/applications/irda/irda-decoder/irda-decoder.h
index fd14ebf0..78f4415c 100644
--- a/applications/irda/irda-decoder/irda-decoder.h
+++ b/applications/irda/irda-decoder/irda-decoder.h
@@ -1,6 +1,5 @@
#pragma once
-#include "flipper.h"
-#include "flipper_v2.h"
+#include <furi.h>
#include "irda-decoder-nec.h"
#include "irda-decoder-types.h"
diff --git a/applications/irda/irda.c b/applications/irda/irda.c
index f079e0d4..522a7a50 100644
--- a/applications/irda/irda.c
+++ b/applications/irda/irda.c
@@ -1,5 +1,7 @@
-#include "flipper.h"
-#include "flipper_v2.h"
+#include <furi.h>
+#include <gui/gui.h>
+#include <input/input.h>
+
#include "irda_nec.h"
#include "irda_samsung.h"
#include "irda_protocols.h"
@@ -185,7 +187,7 @@ static void render_callback(Canvas* canvas, void* ctx) {
}
static void input_callback(InputEvent* input_event, void* ctx) {
- osMessageQueueId_t event_queue = (QueueHandle_t)ctx;
+ osMessageQueueId_t event_queue = ctx;
AppEvent event;
event.type = EventTypeKey;
@@ -271,11 +273,7 @@ void irda(void* p) {
widget_input_callback_set(widget, input_callback, event_queue);
// Open GUI and register widget
- Gui* gui = (Gui*)furi_open("gui");
- if(gui == NULL) {
- printf("gui is not available\n");
- furiac_exit(NULL);
- }
+ Gui* gui = furi_record_open("gui");
gui_add_widget(gui, widget, GuiLayerFullscreen);
// Red LED
diff --git a/applications/irda/irda_nec.c b/applications/irda/irda_nec.c
index 9d465e17..8c22cea5 100644
--- a/applications/irda/irda_nec.c
+++ b/applications/irda/irda_nec.c
@@ -1,4 +1,4 @@
-#include "flipper.h"
+#include <furi.h>
#include "irda_nec.h"
#include "irda_protocols.h"
diff --git a/applications/irda/irda_nec.h b/applications/irda/irda_nec.h
index eb5d0975..5506b1e7 100644
--- a/applications/irda/irda_nec.h
+++ b/applications/irda/irda_nec.h
@@ -1,4 +1,4 @@
#pragma once
-#include "flipper.h"
+#include <furi.h>
void ir_nec_send(uint16_t addr, uint8_t data); \ No newline at end of file
diff --git a/applications/irda/irda_samsung.c b/applications/irda/irda_samsung.c
index 9227c77c..e608a7da 100644
--- a/applications/irda/irda_samsung.c
+++ b/applications/irda/irda_samsung.c
@@ -1,4 +1,4 @@
-#include "flipper.h"
+#include <furi.h>
#include "irda_samsung.h"
#include "irda_protocols.h"
diff --git a/applications/irda/irda_samsung.h b/applications/irda/irda_samsung.h
index 21bf4105..85f98abe 100644
--- a/applications/irda/irda_samsung.h
+++ b/applications/irda/irda_samsung.h
@@ -1,4 +1,4 @@
#pragma once
-#include "flipper.h"
+#include <furi.h>
void ir_samsung_send(uint16_t addr, uint16_t data); \ No newline at end of file