mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 14:51:52 +03:00
26 lines
631 B
C
26 lines
631 B
C
|
#pragma once
|
||
|
|
||
|
#include <furi.h>
|
||
|
#include <mjs_core_public.h>
|
||
|
#include <mjs_ffi_public.h>
|
||
|
#include <mjs_exec_public.h>
|
||
|
#include <mjs_object_public.h>
|
||
|
#include <mjs_string_public.h>
|
||
|
#include <mjs_array_public.h>
|
||
|
#include <mjs_util_public.h>
|
||
|
#include <mjs_primitive_public.h>
|
||
|
#include <mjs_array_buf_public.h>
|
||
|
|
||
|
#define INST_PROP_NAME "_"
|
||
|
|
||
|
typedef enum {
|
||
|
ThreadEventStop = (1 << 0),
|
||
|
ThreadEventCustomDataRx = (1 << 1),
|
||
|
} WorkerEventFlags;
|
||
|
|
||
|
bool js_delay_with_flags(struct mjs* mjs, uint32_t time);
|
||
|
|
||
|
void js_flags_set(struct mjs* mjs, uint32_t flags);
|
||
|
|
||
|
uint32_t js_flags_wait(struct mjs* mjs, uint32_t flags, uint32_t timeout);
|