#ifndef __zl_event_h__
#define __zl_event_h__

// Bit masks for the interrupt register
#define INT_CPU_FRAME      (0x01)
#define INT_CONTROL_FRAME1 (0x02)
#define INT_CONTROL_FRAME2 (0x04)
#define INT_CHIP_RESET     (0x80)

#define INT_ALL (INT_CPU_FRAME | INT_CONTROL_FRAME1 | INT_CONTROL_FRAME2 | INT_CHIP_RESET)

#ifdef __cplusplus
extern "C" {
#endif

int zarlinkEventInit(boolean connectIrq);
void zarlinkEventMaskPorts(unsigned char portMask);
void zarlinkEventMaskIrq(unsigned char mask);
void zarlinkEventUnmaskIrq(unsigned char mask);

#ifdef __cplusplus
}
#endif

#endif /* __zl_event_h__ */

