2022-07-20 13:56:33 +03:00
|
|
|
#include "furi.h"
|
2023-11-01 10:24:11 +03:00
|
|
|
|
|
|
|
#include <FreeRTOS.h>
|
|
|
|
#include <queue.h>
|
2022-07-20 13:56:33 +03:00
|
|
|
|
2024-03-19 17:43:52 +03:00
|
|
|
void furi_init(void) {
|
|
|
|
furi_check(!furi_kernel_is_irq_or_masked());
|
|
|
|
furi_check(xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED);
|
2022-07-20 13:56:33 +03:00
|
|
|
|
|
|
|
furi_log_init();
|
|
|
|
furi_record_init();
|
|
|
|
}
|
|
|
|
|
2024-03-19 17:43:52 +03:00
|
|
|
void furi_run(void) {
|
|
|
|
furi_check(!furi_kernel_is_irq_or_masked());
|
|
|
|
furi_check(xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED);
|
2022-07-20 13:56:33 +03:00
|
|
|
|
|
|
|
/* Start the kernel scheduler */
|
|
|
|
vTaskStartScheduler();
|
|
|
|
}
|