Loading...
Searching...
No Matches
kernel.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <core/base.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
29
34bool furi_kernel_is_running(void);
35
42int32_t furi_kernel_lock(void);
43
50int32_t furi_kernel_unlock(void);
51
60int32_t furi_kernel_restore_lock(int32_t lock);
61
67
76void furi_delay_tick(uint32_t ticks);
77
86FuriStatus furi_delay_until_tick(uint32_t tick);
87
94uint32_t furi_get_tick(void);
95
101uint32_t furi_ms_to_ticks(uint32_t milliseconds);
102
114void furi_delay_ms(uint32_t milliseconds);
115
122void furi_delay_us(uint32_t microseconds);
123
124#ifdef __cplusplus
125}
126#endif
FuriStatus furi_delay_until_tick(uint32_t tick)
Delay until tick.
Definition kernel.c:139
void furi_delay_ms(uint32_t milliseconds)
Delay in milliseconds.
Definition kernel.c:186
void furi_delay_tick(uint32_t ticks)
Delay execution.
Definition kernel.c:130
uint32_t furi_kernel_get_tick_frequency(void)
Get kernel systick frequency.
Definition kernel.c:125
int32_t furi_kernel_lock(void)
Lock kernel, pause process scheduling.
Definition kernel.c:39
bool furi_kernel_is_running(void)
Check if kernel is running.
Definition kernel.c:35
uint32_t furi_ms_to_ticks(uint32_t milliseconds)
Convert milliseconds to ticks.
Definition kernel.c:178
void furi_delay_us(uint32_t microseconds)
Delay in microseconds.
Definition kernel.c:201
int32_t furi_kernel_unlock(void)
Unlock kernel, resume process scheduling.
Definition kernel.c:64
bool furi_kernel_is_irq_or_masked(void)
Check if CPU is in IRQ or kernel running and IRQ is masked.
Definition kernel.c:11
int32_t furi_kernel_restore_lock(int32_t lock)
Restore kernel lock state.
Definition kernel.c:94
uint32_t furi_get_tick(void)
Get current tick counter.
Definition kernel.c:166