mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 14:22:27 +03:00
12c1d10246
* Furi: Fix EventLoop state persisting on same thread after free * Furi: clear event loop notification state and value on allocation, report unprocessed events on free * UnitTests: add multiple event loop runs in one thread test Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
50 lines
2.3 KiB
C
50 lines
2.3 KiB
C
#include <update_util/resources/manifest.h>
|
|
#include <nfc/protocols/slix/slix_i.h>
|
|
#include <nfc/protocols/iso15693_3/iso15693_3_poller_i.h>
|
|
#include <FreeRTOS.h>
|
|
#include <FreeRTOS-Kernel/include/queue.h>
|
|
#include <task.h>
|
|
|
|
#include <rpc/rpc_i.h>
|
|
#include <flipper.pb.h>
|
|
#include <core/event_loop.h>
|
|
|
|
static constexpr auto unit_tests_api_table = sort(create_array_t<sym_entry>(
|
|
API_METHOD(resource_manifest_reader_alloc, ResourceManifestReader*, (Storage*)),
|
|
API_METHOD(resource_manifest_reader_free, void, (ResourceManifestReader*)),
|
|
API_METHOD(resource_manifest_reader_open, bool, (ResourceManifestReader*, const char*)),
|
|
API_METHOD(resource_manifest_reader_next, ResourceManifestEntry*, (ResourceManifestReader*)),
|
|
API_METHOD(resource_manifest_reader_previous, ResourceManifestEntry*, (ResourceManifestReader*)),
|
|
API_METHOD(slix_process_iso15693_3_error, SlixError, (Iso15693_3Error)),
|
|
API_METHOD(iso15693_3_poller_get_data, const Iso15693_3Data*, (Iso15693_3Poller*)),
|
|
API_METHOD(rpc_system_storage_get_error, PB_CommandStatus, (FS_Error)),
|
|
API_METHOD(xQueueSemaphoreTake, BaseType_t, (QueueHandle_t, TickType_t)),
|
|
API_METHOD(
|
|
xTaskGenericNotify,
|
|
BaseType_t,
|
|
(TaskHandle_t, UBaseType_t, uint32_t, eNotifyAction, uint32_t*)),
|
|
API_METHOD(xTaskGetCurrentTaskHandle, TaskHandle_t, ()),
|
|
API_METHOD(vQueueDelete, void, (QueueHandle_t)),
|
|
API_METHOD(
|
|
xQueueGenericCreateStatic,
|
|
QueueHandle_t,
|
|
(const UBaseType_t, const UBaseType_t, uint8_t*, StaticQueue_t*, const uint8_t)),
|
|
API_METHOD(
|
|
xQueueGenericSend,
|
|
BaseType_t,
|
|
(QueueHandle_t, const void* const, TickType_t, const BaseType_t)),
|
|
API_METHOD(furi_event_loop_alloc, FuriEventLoop*, (void)),
|
|
API_METHOD(furi_event_loop_free, void, (FuriEventLoop*)),
|
|
API_METHOD(
|
|
furi_event_loop_message_queue_subscribe,
|
|
void,
|
|
(FuriEventLoop*,
|
|
FuriMessageQueue*,
|
|
FuriEventLoopEvent,
|
|
FuriEventLoopMessageQueueCallback,
|
|
void*)),
|
|
API_METHOD(furi_event_loop_message_queue_unsubscribe, void, (FuriEventLoop*, FuriMessageQueue*)),
|
|
API_METHOD(furi_event_loop_run, void, (FuriEventLoop*)),
|
|
API_METHOD(furi_event_loop_stop, void, (FuriEventLoop*)),
|
|
API_VARIABLE(PB_Main_msg, PB_Main_msg_t)));
|