src/peripherals.c
/*
 * @brief  Configures hardware and peripherals clock
 * @param  None
 * @retval None
 */
@brief  Configures hardware and peripherals clock
@param  None
@retval None
@brief Configures hardware and peripherals clock @param None @retval None
void RCC_Configuration(void)
{
	SystemCoreClockUpdate();
	RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE);
	RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOC, ENABLE);
	RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE);
	RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1, ENABLE);
	RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);
}
void RCC_Configuration ( void ) { SystemCoreClockUpdate ( ) ; RCC_APB1PeriphClockCmd ( RCC_APB1Periph_TIM3 , ENABLE ) ; RCC_APB2PeriphClockCmd ( RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOC , ENABLE ) ; RCC_AHBPeriphClockCmd ( RCC_AHBPeriph_DMA1 , ENABLE ) ; RCC_APB2PeriphClockCmd ( RCC_APB2Periph_ADC1 , ENABLE ) ; RCC_APB2PeriphClockCmd ( RCC_APB2Periph_AFIO , ENABLE ) ; }
@brief  Configures hardware and peripherals clock
 @param  None
 @retval None
@brief Configures hardware and peripherals clock @param None @retval None
/* Update SystemCoreClock value */ /* Enable timer 3 clock */ /* Enable GPIOA, GPIOB and GPIOC clocks */ /* Enable DMA1 clock */ /* Enable ADC1 clock */ /* Enable AFIO clock */