/*
*********************************************************************************************************
*                                       STMicroelectronics STR710
*                                         Board Support Package
*
*
*                                (c) Copyright 2005, Micrium, Weston, FL
*                                          All Rights Reserved
*
*
* File : BSP.C
*********************************************************************************************************
*/

#define  BSP_GLOBALS
//#include  <includes.h>

/*
*********************************************************************************************************
*                                               CONSTANTS
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                               DATA TYPES
*********************************************************************************************************
*/


/*
*********************************************************************************************************
*                                                VARIABLES
*********************************************************************************************************
*/



/*
*********************************************************************************************************
*                                         BSP INITIALIZATION
*
* Description : This function should be called by your application code before you make use of any of the
*               functions found in this module.
*
* Arguments   : none
*********************************************************************************************************
*/

void  BSP_Init (void)
{
  /*************************************************
   * Configure and Enable the PLL:
   * The input Oscillator clock is 25MHz, the PLL output
   * is set to 96 MHz
   *************************************************/ 	
   SCU_EnDisPll(0x1);

   /* switch the cpu clock input to PLL output clock */
   SCU_SetMcuClock(0x0);

   // Enable VIC Clock and Disble VIC reset
   SCU_VicClk(0x1);
   SCU_VicRst(0x1);

   /*************************************************
    * Enables the IRQ and FIQ in the ARM processor
    *************************************************/
   asm("MRS r0, CPSR");	
   asm("BIC r0, r0, #0xC0");	
   asm("MSR CPSR_c, r0");	
}


