mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-01 01:27:48 +03:00
bb68fca20b
* Fix ValueManager implementation * Implement ValueComposer * Add constructor for ValueManager * Add value-expanders.h to flipper_v2.h set * Move COPY_COMPOSE body into a .c file * Add test for ValueManager * Add destructors for ValueMutex, ValueManager and ValueComposer * Use destructors in tests * Move composition logic into perform_compose() * Add docs for perform_compose() * Add test for ValueComposer * Replace atomic_bool with bool as g++ compiler doesn't support C11 atomics * Add Event type * Add semaphore support to the local target * Add test for Event * Update input records and relevant examples * Rename Event to AppEvent in the cc1101-workaround example * Rename Event to AppEvent in the irda example * Use Event in ValueComposer to wait for update request * Add perform_compose_internal() function * fix Event/AppEvent Co-authored-by: aanper <mail@s3f.ru>
30 lines
498 B
C
30 lines
498 B
C
#pragma once
|
|
|
|
#include "flipper.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "api-basic/furi.h"
|
|
//#include "api-basic/flapp.h"
|
|
#include "cmsis_os2.h"
|
|
#include "api-basic/valuemutex.h"
|
|
#include "api-basic/pubsub.h"
|
|
#include "api-basic/value-expanders.h"
|
|
#include "api-basic/event.h"
|
|
|
|
#include "api-basic/memmgr.h"
|
|
|
|
#include "api-hal/api-gpio.h"
|
|
|
|
#include "gui/gui.h"
|
|
|
|
// tmeout for helper functions
|
|
#define FLIPPER_HELPER_TIMEOUT 10
|
|
|
|
bool init_flipper_api(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |