Microchip® Advanced Software Framework

events_hooks.c File Reference
#include "events.h"
#include "events_hooks.h"
#include "system_interrupt.h"

Macros

#define _EVENTS_INTFLAGS_DETECT   0x0f00ff00
 
#define _EVENTS_INTFLAGS_MASK   (_EVENTS_INTFLAGS_DETECT | _EVENTS_INTFLAGS_OVERRUN)
 
#define _EVENTS_INTFLAGS_OVERRUN   0x000f00ff
 

Functions

enum status_code events_ack_interrupt (struct events_resource *resource, enum events_interrupt_source source)
 Acknowledge an interrupt source. More...
 
enum status_code events_add_hook (struct events_resource *resource, struct events_hook *hook)
 Insert hook into the event drivers interrupt hook queue. More...
 
enum status_code events_create_hook (struct events_hook *hook, events_interrupt_hook func)
 Initializes an interrupt hook for insertion in the event interrupt hook queue. More...
 
enum status_code events_del_hook (struct events_resource *resource, struct events_hook *hook)
 Remove hook from the event drivers interrupt hook queue. More...
 
enum status_code events_disable_interrupt_source (struct events_resource *resource, enum events_interrupt_source source)
 Disable interrupt source. More...
 
enum status_code events_enable_interrupt_source (struct events_resource *resource, enum events_interrupt_source source)
 Enable interrupt source. More...
 
bool events_is_interrupt_set (struct events_resource *resource, enum events_interrupt_source source)
 Check if interrupt source is set. More...
 
void EVSYS_Handler (void)
 

Variables

struct _events_module _events_inst
 

#define _EVENTS_INTFLAGS_DETECT   0x0f00ff00
#define _EVENTS_INTFLAGS_MASK   (_EVENTS_INTFLAGS_DETECT | _EVENTS_INTFLAGS_OVERRUN)

Referenced by EVSYS_Handler().

#define _EVENTS_INTFLAGS_OVERRUN   0x000f00ff