Release Candidate 0.48.0 Bug Fixes (#991)

* Power: wait a little bit till message displayed on screen when executing power off. FuriCore: do not use bkpt in release builds(causing HardFault when SPI is active).
* Cleanup BSS section: add more consty consts to be more constish.
* Desktop: properly handle autostarted applications.
This commit is contained in:
あく
2022-02-13 22:24:03 +03:00
committed by GitHub
parent 2c616983cf
commit 939998a8c8
26 changed files with 258 additions and 233 deletions

View File

@@ -4,7 +4,12 @@
#include <furi.h>
#include <furi_hal_spi.h>
static osThreadAttr_t platform_irq_thread_attr;
static const osThreadAttr_t platform_irq_thread_attr = {
.name = "RfalIrqWorker",
.stack_size = 1024,
.priority = osPriorityRealtime,
};
static volatile osThreadId_t platform_irq_thread_id = NULL;
static volatile PlatformIrqCallback platform_irq_callback = NULL;
static const GpioPin pin = {ST25R_INT_PORT, ST25R_INT_PIN};
@@ -36,9 +41,6 @@ void platformDisableIrqCallback() {
void platformSetIrqCallback(PlatformIrqCallback callback) {
platform_irq_callback = callback;
platform_irq_thread_attr.name = "RfalIrqWorker";
platform_irq_thread_attr.stack_size = 1024;
platform_irq_thread_attr.priority = osPriorityRealtime;
platform_irq_thread_id = osThreadNew(platformIrqWorker, NULL, &platform_irq_thread_attr);
hal_gpio_add_int_callback(&pin, nfc_isr, NULL);
// Disable interrupt callback as the pin is shared between 2 apps