/** ###################################################################
**     THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename    : COP1.c
**     Project     : ProcessorExpert
**     Processor   : MC56F84789VLL
**     Component   : Init_COP
**     Version     : Component 01.000, Driver 01.00, CPU db: 3.50.001
**     Compiler    : Metrowerks DSP C Compiler
**     Date/Time   : 2012-05-15, 17:58, # CodeGen: 5
**     Abstract    :
**          This file implements the COP (COP) module initialization
**          according to the Peripheral Initialization settings, and
**          defines interrupt service routines prototypes.
**     Settings    :
**          Component name                                 : COP1
**          Device                                         : COP
**          Settings                                       : 
**            Clock settings                               : 
**              Clock select                               : ROSC_8M
**              Prescaler                                  : divide by 1024
**              Counter frequency                          : 7.8125 kHz
**              Timeout                                    : 65535
**              Period                                     : 8388.4800 ms
**              Interrupt value                            : 255
**              Interrupt time                             : 32.6400 ms
**            Loss of reference                            : Disabled
**            Stop mode                                    : Disabled
**            Wait mode                                    : Disabled
**          Interrupts                                     : 
**            COP Warning                                  : 
**              Interrupt                                  : INT_COP_INT
**              Interrupt priority                         : default
**              ISR Name                                   : 
**              COP Warning                                : Disabled
**          Initialization                                 : 
**            Enable COP                                   : no
**            Write protect                                : no
**            Call Init method                             : yes
**     Contents    :
**         Init - void COP1_Init(void);
**
**     Copyright : 1997 - 2012 Freescale Semiconductor, Inc. All Rights Reserved.
**     
**     http      : www.freescale.com
**     mail      : support@freescale.com
** ###################################################################*/

/* MODULE COP1. */

#include "COP1.h"
  /* Including shared modules, which are used in the whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "Cpu.h"


/*
** ===================================================================
**     Method      :  COP1_Init (component Init_COP)
**
**     Description :
**         This method initializes registers of the COP module
**         according to the Peripheral Initialization 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 component for more details.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/
void COP1_Init(void)
{
  /* COP_CTRL: ??=0,??=0,??=0,??=0,??=0,??=0,PSS=3,INTEN=0,CLKSEL=0,CLOREN=0,CSEN=0,CWEN=0,CEN=0,CWP=0 */
  setReg16(COP_CTRL, 0x0300U);          
  /* COP_TOUT: TIMEOUT=0xFFFF */
  setReg16(COP_TOUT, 0xFFFFU);          
  /* COP_INTVAL: INTERRUPT_VALUE=0xFF */
  setReg16(COP_INTVAL, 0xFFU);          
}


/* END COP1. */
/*
** ###################################################################
**
**     This file was created by Processor Expert 5.3 [05.01]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
