/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY RICHY. DO NOT MODIFY IT.
**     Filename  : Cpu.H
**     Processor : 56F84xx
**     Compiler  : Metrowerks DSP C Compiler
**     Date      : 03/05/2009
** ###################################################################*/

#ifndef __Cpu_H
#define __Cpu_H

/* MODULE Cpu. */

/* Active PE project configuration */
#define PEcfg_smmpROMxRAM 1

/* Active CPU bean */
#define CPU_TYPE_56F84xx

/* Active CPU variant */
#define CPU_VARIANT_56F84xx

/* Active CPU family */
#define CPU_FAMILY_56800

/* Active CPU subfamily */
#define CPU_SUBFAMILY_56F84xx

/*Include shared modules, which are used for whole project*/
#include "Types.h"

#ifndef __BWUserType_TShadowRegs
#define __BWUserType_TShadowRegs
  typedef struct {                     /* Shadow register type. */
    word* R0;                          /* Shadow register R0. */
    word* R1;                          /* Shadow register R1. */
    int16_t N;                         /* Shadow register N. */
    int16_t M01;                       /* Shadow register M01. */
  } TShadowRegs;
#endif



#define   Cpu_DisableInt()  __DI()     /* Disable interrupts */
/*
** ===================================================================
**     Method      :  Cpu_DisableInt (bean 56F82xx)
**
**     Description :
**         Disables all maskable interrupts
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define   Cpu_EnableInt()  __EI(0)     /* Enable interrupts */
/*
** ===================================================================
**     Method      :  Cpu_EnableInt (bean 56F82xx)
**
**     Description :
**         Enables all maskable interrupts
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/


void PE_low_level_init(void);
/*
** ===================================================================
**     Method      :  PE_low_level_init (bean 56F82xx)
**
**     Description :
**         Initializes beans and provides common register initialization. 
**         The method is called automatically as a part of the 
**         application initialization code.
** ===================================================================
*/

void _EntryPoint(void);
/*
** ===================================================================
**     Method      :  _EntryPoint (bean 56F82xx)
**
**     Description :
**         Initializes the whole system like timing and so on. At the end 
**         of this function, the C startup is invoked to initialize stack,
**         memory areas and so on.
** ===================================================================
*/

//void OCCS_Init(void);
/*
** ===================================================================
**     Method      :  OCCS_Init (void)
**
**     Description :
**         This function implement to initialize the on-chip clock 
**         synthesis circuit for proper operation.
** ===================================================================
*/



/* END Cpu. */

#endif
/* __Cpu_H */
