/********************************************************************************
  * @file    system_sc32f1xxx.c
  * @author  SOC AE Team
  * @brief   CMSIS Cortex-M0 PlUs Device Peripheral Access Layer System Source File.
  *******************************************************************************/

#include "sc32f1xxx.h"
///**************************************Generated by EasyCodeCube*************************************/
////Forbid editing areas between the labels !!!
//#if !defined  (LXT_VALUE) 
//  #define LXT_VALUE    ((uint32_t)32768) /*!< Default value of the External oscillator in Hz */
//#endif /* LXT_VALUE */
//#if !defined  (HXT_VALUE) 
//  #define HXT_VALUE    ((uint32_t)16000000) /*!< Default value of the External oscillator in Hz */
//#endif /* HXT_VALUE */
//#if !defined  (HIRC_VALUE) 
//  #define HIRC_VALUE    ((uint32_t)32000000) /*!< Default value of the External oscillator in Hz */
//#endif /* HIRC_VALUE */
//#if !defined  (LIRC_VALUE) 
//  #define LIRC_VALUE    ((uint32_t)32000) /*!< Default value of the External oscillator in Hz */
//#endif /* LIRC_VALUE */
//#if !defined  (PPLR_VALUE) 
//  #define PPLR_VALUE    ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
//#endif /* PPLR_VALUE */
///*************************************.Generated by EasyCodeCube.************************************/

/************************* Miscellaneous Configuration ************************/
/*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */
/* #define VECT_TAB_SRAM */
#define VECT_TAB_OFFSET  0x00 /*!< Vector Table base offset field. This value must be a multiple of 0x200. */
/******************************************************************************/

/*
  * @brief  Setup the microcontroller system
  *         Initialize the vector table location configuration.
  * @param  None
  * @retval None
  */
void SystemInit(void)
{
  /* Configure the Vector Table location add offset address ------------------*/
#ifdef VECT_TAB_SRAM
  SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
#else
  SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
#endif
}



