mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 06:54:19 +00:00
380ec2ac46
* fbt: added -Wundef to compiler options; libs: various small fixes for missing defines; desktop: proper access to current RTOS config * apps: fixes for FURI_DEBUG handling * rpc: unified definition checks * Cleanup various defines use * Cleanup configs and move SVCall ISR priority configuration to furi_hal_interrupts Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
20 lines
462 B
C
20 lines
462 B
C
#include "furi.h"
|
|
|
|
#include <FreeRTOS.h>
|
|
#include <queue.h>
|
|
|
|
void furi_init(void) {
|
|
furi_check(!furi_kernel_is_irq_or_masked());
|
|
furi_check(xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED);
|
|
|
|
furi_log_init();
|
|
furi_record_init();
|
|
}
|
|
|
|
void furi_run(void) {
|
|
furi_check(!furi_kernel_is_irq_or_masked());
|
|
furi_check(xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED);
|
|
|
|
/* Start the kernel scheduler */
|
|
vTaskStartScheduler();
|
|
}
|