#ifndef __S08_IRQ__

  #define __S08_IRQ__
  
  #include "FslTypes.h"
  #include "Derivative.h"
  
  #define IRQ_CONFIG()       IRQSC = IRQSC_IRQPE_MASK | IRQSC_IRQACK_MASK | IRQSC_IRQIE_MASK
  
  #define IRQ_Event  0
  
  #define IRQ_Occurred()     (gu8IRQStatus & (1<<IRQ_Event))
  #define IRQ_Clear_Event()  gu8IRQStatus &= ~(1<<IRQ_Event)
  
  #define IRQ_Pin            PTCD_PTCD7 
  
  extern UINT8 gu8IRQStatus;
  
  
#endif