d65e9b04ce
* fix "state not acquired error" * add InterruptTypeComparatorTrigger to interrupt mgr, use interrupt mgr in irda app * separate init irda timer * capture events buffer by app * irda common decoder * irda nec decoder realization * finished work with decoder * fix app path * fix widget remove on exit * nec receive, store and send * init some packets
20 lines
490 B
C
20 lines
490 B
C
#pragma once
|
|
#include "flipper_v2.h"
|
|
|
|
typedef void (*InterruptCallback)(void*, void*);
|
|
|
|
typedef enum {
|
|
InterruptTypeComparatorTrigger,
|
|
InterruptTypeTimerCapture,
|
|
} InterruptType;
|
|
|
|
typedef struct {
|
|
InterruptCallback callback;
|
|
InterruptType type;
|
|
void* context;
|
|
bool ready;
|
|
} InterruptCallbackItem;
|
|
|
|
bool api_interrupt_init();
|
|
void api_interrupt_add(InterruptCallback callback, InterruptType type, void* context);
|
|
void api_interrupt_remove(InterruptCallback callback); |