/** ###################################################################
**     THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : IRQ1.C
**     Project   : PE_LL64_Quick_Start
**     Processor : MC9S08LL64C_LQFP80
**     Component : Init_IRQ
**     Version   : Component 01.035, Driver 01.15, CPU db: 3.00.023
**     Compiler  : CodeWarrior HCS08 C Compiler
**     Date/Time : 11/30/2009, 5:48 PM
**     Abstract  :
**          This file implements the IRQ (IRQModule) module initialization
**          according to the Peripheral Initialization Bean settings, and defines
**          interrupt service routines prototypes.
**     Settings  :
**          Bean name                                      : IRQ1
**          Device                                         : IRQModule
**
**          Pins 
**            Pin                                          : PTC7_IRQ_TCLK
**            Pin signal                                   : 
**            Pin enable                                   : yes
**            Pull resistor                                : pull enable
**            Detection mode                               : edge only
**            Edge select                                  : falling edge
**          
**          Interrupts 
**            Interrupt                                    : Virq
**            IRQ interrupt                                : Enabled
**            ISR Name                                     : IRQ_ISR
**
**          Initialization 
**            Call Init method                             : yes
**     Contents  :
**         Init - void IRQ1_Init(void);
**
**     Copyright : 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved.
**     
**     http      : www.freescale.com
**     mail      : support@freescale.com
** ###################################################################*/

/* MODULE IRQ1. */

#include "IRQ1.h"

/*
** ===================================================================
**     Method      :  IRQ1_Init (component Init_IRQ)
**
**     Description :
**         This method initializes registers of the IRQ module
**         according to this Peripheral Initialization Bean settings.
**         Call this method in user code to initialize the module.
**         By default, the method is called by PE automatically; see
**         "Call Init method" property of the bean for more details.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/
void IRQ1_Init(void)
{
  /* ** Initialize pin PTC7_IRQ_TCLK ** */
  /* IRQSC: IRQIE=0 */
  clrReg8Bits(IRQSC, 0x02);            /* Disable IRQ Interrupt */ 
  /* IRQSC: IRQPE=1 */
  setReg8Bits(IRQSC, 0x10);             
  /* IRQSC: IRQACK=1 */
  setReg8Bits(IRQSC, 0x04);             
  /* IRQSC: IRQIE=1 */
  setReg8Bits(IRQSC, 0x02);            /* Enable IRQ Interrupt */ 
}

/*
** ###################################################################
**
**  The interrupt service routine(s) must be implemented
**  by user in one of the following user modules.
**
**  If the "Generate ISR" option is enabled, Processor Expert generates
**  ISR templates in the CPU event module.
**
**  User modules:
**      PE_LL64_Quick_Start.c
**      Events.c
**
** ###################################################################
#pragma CODE_SEG __NEAR_SEG NON_BANKED
ISR( IRQ_ISR )
{
  // NOTE: The routine should include the following actions to obtain
  //       correct functionality of the hardware.
  //
  // The interrupt is deasserted by clearing the IRQACK bit.
  // The IRQACK bit is cleared by writing a logic 1
  // Example: IRQSC_IRQACK = 1;

}
#pragma CODE_SEG DEFAULT
*/

/* END IRQ1. */
/*
** ###################################################################
**
**     This file was created by Processor Expert 3.07 [04.34]
**     for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/
