[FL-1274] Interrupt manager: cleaned version (#490)

* HAL interrupl manager: cleaned version
* HAL interrupt manager: mem barriers
* HAL interrupt manager: volatile interrupt list

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
SG
2021-05-25 20:56:27 +10:00
committed by GitHub
parent 84f46e670a
commit f49f30f8a7
4 changed files with 36 additions and 105 deletions

View File

@@ -12,14 +12,13 @@ typedef void (*InterruptCallback)(void*, void*);
/** Interupt type */
typedef enum {
InterruptTypeComparatorTrigger,
InterruptTypeTimerOutputCompare,
InterruptTypeTimerUpdate,
InterruptTypeLast,
} InterruptType;
/** Interrupt callback type */
typedef struct {
InterruptCallback callback;
InterruptType type;
void* context;
bool ready;
} InterruptCallbackItem;