void RCC_APB1PeriphClockCmd ( uint32_t RCC_APB1Periph,
FunctionalState NewState)
ï‚· RCC_APB1Periph : specifies the APB1 peripheral to gates
its clock. This parameter can be any combination of the
following values:
ï€ RCC_APB1Periph_TIM2 :
ï€ RCC_APB1Periph_TIM3 :
ï€ RCC_APB1Periph_TIM4 :
ï€ RCC_APB1Periph_TIM6 :
ï€ RCC_APB1Periph_TIM7 :
ï€ RCC_APB1Periph_WWDG :
ï€ RCC_APB1Periph_SPI2 :
ï€ RCC_APB1Periph_SPI3 :
ï€ RCC_APB1Periph_USART2 :
ï€ RCC_APB1Periph_USART3 :
ï€ RCC_APB1Periph_UART4 :
ï€ RCC_APB1Periph_UART5 :
ï€ RCC_APB1Periph_I2C1 :
ï€ RCC_APB1Periph_I2C2 :
ï€ RCC_APB1Periph_USB :
ï€ RCC_APB1Periph_CAN1 :
ï€ RCC_APB1Periph_PWR :
ï€ RCC_APB1Periph_DAC :
ï‚· NewState : new state of the specified peripheral clock. This
parameter can be: ENABLE or DISABLE.
ï‚· After reset, the peripheral clock (used for registers read/write
access) is disabled and the application software has to enable
this clock before using it.
void RCC_AHBPeriphResetCmd ( uint32_t RCC_AHBPeriph,
FunctionalState NewState)