/*****************************************************************************
 Copyright (c)   
  FileName	   : SC_Init.c
  Function	   : Contains the MCU initialization function and its C file
  Instructions   : 
 ******************************************************************************
 * @attention
 *
 *1.This software is supplied by SinOne Microelectronics Co.,Ltd. and is only 
 *intended for use with SinOne products. No other uses are authorized. This 
 *software is owned by SinOne Microelectronics Co.,Ltd. and is protected under 
 *all applicable laws, including copyright laws. 
 *2.The software which is for guidance only aims at providing customers with 
 *coding information regarding their products in order for them to save time. 
 *As a result, SinOne shall not be held liable for any direct, indirect or 
 *consequential damages with respect to any claims arising from the content of 
 *such software and/or the use made by customers of the coding information 
 *contained herein in connection with their products.
 *
 *  COPYRIGHT 2024 SinOne Microelectronics
 */

#include "SC_Init.h"	// MCU initialization header file, including all firmware library header files
#include "SC_itExtern.h"


/**************************************Generated by EasyCodeCube*************************************/
//Forbid editing areas between the labels !!!
/*************************************.Generated by EasyCodeCube.************************************/

/*****************************************************
*Function Name: SC_Init
*Function: MCU init
*Input param: void
*Output param: void
*****************************************************/
void SC_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  SC_RCC_Init();
  /*<Generated by EasyCodeCube end>*/
}
/*****************************************************
*Function Name: SC_RCC_Init
*Function: RCC init
*Input param: void
*Output param: void
*****************************************************/
void SC_RCC_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  RCC_Unlock(0xFF);
#if defined(SC32f10xx)||defined(SC32f12xx)
  RCC_HXTCmd(DISABLE);
#endif
  RCC_LXTCmd(DISABLE);
  RCC_LIRCCmd(ENABLE);
  RCC_HIRCCmd(ENABLE);
  RCC_ITConfig(DISABLE);
  RCC_HCLKConfig(RCC_SYSCLK_Div1);
  /*<Generated by EasyCodeCube end>*/	
}
/*****************************************************
*Function Name: SC_SYSTICK_Init
*Function: system timer init
*Input param: void
*Output param: void
*****************************************************/
void SC_SYSTICK_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}
/*****************************************************
*Function Name: SC_OPTION_Init
*Function: custom OPTION init
*Input param: void
*Output param: void
*****************************************************/
void SC_OPTION_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}
/*****************************************************
*Function Name: SC_NVIC_Init
*Function: nvic init
*Input param: void
*Output param: void
*****************************************************/
void SC_NVIC_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_GPIO_Init
*Function: GPIO init
*Input param: void
*Output param: void
*****************************************************/
void SC_GPIO_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_UART0_Init
*Function: UART0 init
*Input param: void
*Output param: void
*****************************************************/
void SC_UART0_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_UART1_Init
*Function: UART1 init
*Input param: void
*Output param: void
*****************************************************/
void SC_UART1_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_UART2_Init
*Function: UART2 init
*Input param: void
*Output param: void
*****************************************************/
void SC_UART2_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_UART3_Init
*Function: UART3 init
*Input param: void
*Output param: void
*****************************************************/
void SC_UART3_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_TIM0_Init
*Function: Timer0 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM0_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_TIM1_Init
*Function: Timer1 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM1_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_TIM2_Init
*Function: Timer2 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM2_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_TIM3_Init
*Function: Timer3 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM3_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_TIM4_Init
*Function: Timer4 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM4_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_TIM5_Init
*Function: Timer5 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM5_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_TIM6_Init
*Function: Timer6 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM6_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_TIM7_Init
*Function: Timer7 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TIM7_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_PWM0_Init
*Function: PWM0 init
*Input param: void
*Output param: void
*****************************************************/
void SC_PWM0_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_LEDPWM_Init
*Function: LEDPWM init
*Input param: void
*Output param: void
*****************************************************/
void SC_LEDPWM_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_INT_Init
*Function: INT init
*Input param: void
*Output param: void
*****************************************************/
void SC_INT_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_ADC_Init
*Function: ADC init
*Input param: void
*Output param: void
*****************************************************/
void SC_ADC_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_PGA_Init
*Function: PGA init
*Input param: void
*Output param: void
*****************************************************/
void SC_PGA_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_IAP_Init
*Function: IAP init
*Input param: void
*Output param: void
*****************************************************/
void SC_IAP_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_SPI0_Init
*Function: SPI0 init
*Input param: void
*Output param: void
*****************************************************/
void SC_SPI0_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_SPI1_Init
*Function: SPI1 init
*Input param: void
*Output param: void
*****************************************************/
void SC_SPI1_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_TWI0_Init
*Function: TWI0 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TWI0_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_TWI1_Init
*Function: TWI1 init
*Input param: void
*Output param: void
*****************************************************/
void SC_TWI1_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/		
}

/*****************************************************
*Function Name: SC_BTM_Init
*Function: BTM init
*Input param: void
*Output param: void
*****************************************************/
void SC_BTM_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_CRC_Init
*Function: CRC init
*Input param: void
*Output param: void
*****************************************************/
void SC_CRC_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_DMA0_Init
*Function: DMA0 init
*Input param: void
*Output param: void
*****************************************************/
void SC_DMA0_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_DMA1_Init
*Function: DMA1 init
*Input param: void
*Output param: void
*****************************************************/
void SC_DMA1_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_DMA2_Init
*Function: DMA2 init
*Input param: void
*Output param: void
*****************************************************/
void SC_DMA2_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_DMA3_Init
*Function: DMA3 init
*Input param: void
*Output param: void
*****************************************************/
void SC_DMA3_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_WDT_Init
*Function: WDT init
*Input param: void
*Output param: void
*****************************************************/
void SC_WDT_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}

/*****************************************************
*Function Name: SC_LCD_Init
*Function: LCD init
*Input param: void
*Output param: void
*****************************************************/
void SC_LCD_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_LED_Init
*Function: LED init
*Input param: void
*Output param: void
*****************************************************/
void SC_LED_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/
}

/*****************************************************
*Function Name: SC_ACMP_Init
*Function: ACMP init
*Input param: void
*Output param: void
*****************************************************/
void SC_ACMP_Init(void)
{
  /*<Generated by EasyCodeCube begin>*/
  //Forbid editing areas between the labels !!!
  /*<Generated by EasyCodeCube end>*/	
}
































