Пример #1
0
void CCU4GLOBAL_Init(void)
{
  static uint32_t CCU4InitCalled = (uint32_t)0U;
  uint32_t Count = 0U;
  
  if(CCU4InitCalled == (uint32_t)0U)
  {
    /*
     * Each instance of the App brings the module out of reset and enable 
     * the prescalar clock
     */
    /* Initialise the clock */
	#if (UC_FAMILY == XMC4)     
		CLK001_Init();     
	#endif		
	
	#if (UC_FAMILY == XMC1)    
		CLK002_Init();
	#endif
    
    for (Count = 0U; Count<(uint32_t)CCU4GLOBAL_NUM_INSTANCES; Count++)
    {
  	  CCU4Global_lInit(CCU4Global_HandleArray[Count]);
    }

    CCU4InitCalled = (uint32_t)1;
  }
}
Пример #2
0
/*
 *  Initialization function which initializes the App internal data
 *  structures to default values. 
 */
void  SYSTM001_Init( void)
{
    uint32_t Status = 0UL;

  /** Initialize the header of the list */
  TimerList = NULL;
  /* Clock Initialization */
  CLK002_Init();
  /**   Initialize timer tracker  */
  Status = SysTick_Config((uint32_t)(SYSTM001_SYSTICK_INTERVAL * SYSTM001_SYS_CORE_CLOCK * 1000U));
  if(Status == 1U)
  {
        DBG002_ERROR(APP_GID, DBG002_MESSAGEID_LITERAL, sizeof(Status), &Status);
  }
    NVIC_SetPriority(SysTick_IRQn, 0);
  TimerTracker = 0UL;

}
Пример #3
0
void DAVE_Init(void)
{
     

//****************************************************************************
// @Initialization of APPs Init Functions
//****************************************************************************
	//  MUX configurations
	DAVE_MUX_PreInit(); 
	//  Initialization of app 'CLK002'		     
	CLK002_Init();
	 
	//  Initialization of app 'CCU4GLOBAL'		     
	CCU4GLOBAL_Init();
	 
	//  Initialization of app 'PWMSP001'		     
	PWMSP001_Init();
	 
	//  Initialization of app 'NVIC_SR101'		     
	NVIC_SR101_Init();
	 
	//  Initialization of app 'RTC001'		     
	RTC001_Init();
	 
	//  Initialization of app 'SYSTM002'		     
	SYSTM002_Init();
	 
	//  Initialization of app 'UART001'		     
	UART001_Init();
	 
	//  Initialization of app 'I2C001'		     
	I2C001_Init();
	
      
	//  MUX configurations
	DAVE_MUX_Init();	
} //  End of function DAVE_Init