mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
03196fa110
* cleanup of various warnings from clangs * lfrfid_debug: cast fixes * subghz: binraw: round->roundf * furi: thread: updated internal stack size variable to size_t * github: fail faster on unsuccessful build * unit_tests: double trouble
27 lines
770 B
C
27 lines
770 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);
|
|
|
|
#if(__ARM_ARCH_7A__ == 0U)
|
|
/* Service Call interrupt might be configured before kernel start */
|
|
/* and when its priority is lower or equal to BASEPRI, svc instruction */
|
|
/* causes a Hard Fault. */
|
|
NVIC_SetPriority(SVCall_IRQn, 0U);
|
|
#endif
|
|
|
|
/* Start the kernel scheduler */
|
|
vTaskStartScheduler();
|
|
}
|