Loading...
Searching...
No Matches
furi/core/base.h
1#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5#include <stddef.h>
6#include <furi_config.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef enum {
13 FuriWaitForever = 0xFFFFFFFFU,
14} FuriWait;
15
16typedef enum {
17 FuriFlagWaitAny = 0x00000000U,
18 FuriFlagWaitAll = 0x00000001U,
19 FuriFlagNoClear = 0x00000002U,
20
21 FuriFlagError = 0x80000000U,
22 FuriFlagErrorUnknown = 0xFFFFFFFFU,
23 FuriFlagErrorTimeout = 0xFFFFFFFEU,
24 FuriFlagErrorResource = 0xFFFFFFFDU,
25 FuriFlagErrorParameter = 0xFFFFFFFCU,
26 FuriFlagErrorISR = 0xFFFFFFFAU,
27} FuriFlag;
28
29typedef enum {
30 FuriStatusOk = 0,
31 FuriStatusError =
32 -1,
33 FuriStatusErrorTimeout = -2,
34 FuriStatusErrorResource = -3,
35 FuriStatusErrorParameter = -4,
36 FuriStatusErrorNoMemory =
37 -5,
38 FuriStatusErrorISR =
39 -6,
40 FuriStatusReserved = 0x7FFFFFFF
41} FuriStatus;
42
43typedef enum {
44 FuriSignalExit,
45 // Other standard signals may be added in the future
46 FuriSignalCustom = 100,
47} FuriSignal;
48
49#ifdef __cplusplus
50}
51#endif