STM32F4 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
|
Peripheral clocks configuration functions. More...
Functions | |
void | RCC_RTCCLKConfig (uint32_t RCC_RTCCLKSource) |
Configures the RTC clock (RTCCLK). More... | |
void | RCC_RTCCLKCmd (FunctionalState NewState) |
Enables or disables the RTC clock. More... | |
void | RCC_BackupResetCmd (FunctionalState NewState) |
Forces or releases the Backup domain reset. More... | |
void | RCC_I2SCLKConfig (uint32_t RCC_I2SCLKSource) |
Configures the I2S clock source (I2SCLK). More... | |
void | RCC_AHB1PeriphClockCmd (uint32_t RCC_AHB1Periph, FunctionalState NewState) |
Enables or disables the AHB1 peripheral clock. More... | |
void | RCC_AHB2PeriphClockCmd (uint32_t RCC_AHB2Periph, FunctionalState NewState) |
Enables or disables the AHB2 peripheral clock. More... | |
void | RCC_AHB3PeriphClockCmd (uint32_t RCC_AHB3Periph, FunctionalState NewState) |
Enables or disables the AHB3 peripheral clock. More... | |
void | RCC_APB1PeriphClockCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) |
Enables or disables the Low Speed APB (APB1) peripheral clock. More... | |
void | RCC_APB2PeriphClockCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) |
Enables or disables the High Speed APB (APB2) peripheral clock. More... | |
void | RCC_AHB1PeriphResetCmd (uint32_t RCC_AHB1Periph, FunctionalState NewState) |
Forces or releases AHB1 peripheral reset. More... | |
void | RCC_AHB2PeriphResetCmd (uint32_t RCC_AHB2Periph, FunctionalState NewState) |
Forces or releases AHB2 peripheral reset. More... | |
void | RCC_AHB3PeriphResetCmd (uint32_t RCC_AHB3Periph, FunctionalState NewState) |
Forces or releases AHB3 peripheral reset. More... | |
void | RCC_APB1PeriphResetCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) |
Forces or releases Low Speed APB (APB1) peripheral reset. More... | |
void | RCC_APB2PeriphResetCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) |
Forces or releases High Speed APB (APB2) peripheral reset. More... | |
void | RCC_AHB1PeriphClockLPModeCmd (uint32_t RCC_AHB1Periph, FunctionalState NewState) |
Enables or disables the AHB1 peripheral clock during Low Power (Sleep) mode. More... | |
void | RCC_AHB2PeriphClockLPModeCmd (uint32_t RCC_AHB2Periph, FunctionalState NewState) |
Enables or disables the AHB2 peripheral clock during Low Power (Sleep) mode. More... | |
void | RCC_AHB3PeriphClockLPModeCmd (uint32_t RCC_AHB3Periph, FunctionalState NewState) |
Enables or disables the AHB3 peripheral clock during Low Power (Sleep) mode. More... | |
void | RCC_APB1PeriphClockLPModeCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) |
Enables or disables the APB1 peripheral clock during Low Power (Sleep) mode. More... | |
void | RCC_APB2PeriphClockLPModeCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) |
Enables or disables the APB2 peripheral clock during Low Power (Sleep) mode. More... | |
Peripheral clocks configuration functions.
=============================================================================== Peripheral clocks configuration functions =============================================================================== This section provide functions allowing to configure the Peripheral clocks. 1. The RTC clock which is derived from the LSI, LSE or HSE clock divided by 2 to 31. 2. After restart from Reset or wakeup from STANDBY, all peripherals are off except internal SRAM, Flash and JTAG. Before to start using a peripheral you have to enable its interface clock. You can do this using RCC_AHBPeriphClockCmd() , RCC_APB2PeriphClockCmd() and RCC_APB1PeriphClockCmd() functions. 3. To reset the peripherals configuration (to the default state after device reset) you can use RCC_AHBPeriphResetCmd(), RCC_APB2PeriphResetCmd() and RCC_APB1PeriphResetCmd() functions. 4. To further reduce power consumption in SLEEP mode the peripheral clocks can be disabled prior to executing the WFI or WFE instructions. You can do this using RCC_AHBPeriphClockLPModeCmd(), RCC_APB2PeriphClockLPModeCmd() and RCC_APB1PeriphClockLPModeCmd() functions.
void RCC_AHB1PeriphClockCmd | ( | uint32_t | RCC_AHB1Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB1 peripheral clock.
RCC_AHBPeriph,: | specifies the AHB1 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB1PeriphClockLPModeCmd | ( | uint32_t | RCC_AHB1Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB1 peripheral clock during Low Power (Sleep) mode.
RCC_AHBPeriph,: | specifies the AHB1 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB1PeriphResetCmd | ( | uint32_t | RCC_AHB1Periph, |
FunctionalState | NewState | ||
) |
Forces or releases AHB1 peripheral reset.
RCC_AHB1Periph,: | specifies the AHB1 peripheral to reset. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral reset. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB2PeriphClockCmd | ( | uint32_t | RCC_AHB2Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB2 peripheral clock.
RCC_AHBPeriph,: | specifies the AHB2 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB2PeriphClockLPModeCmd | ( | uint32_t | RCC_AHB2Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB2 peripheral clock during Low Power (Sleep) mode.
RCC_AHBPeriph,: | specifies the AHB2 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB2PeriphResetCmd | ( | uint32_t | RCC_AHB2Periph, |
FunctionalState | NewState | ||
) |
Forces or releases AHB2 peripheral reset.
RCC_AHB2Periph,: | specifies the AHB2 peripheral to reset. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral reset. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB3PeriphClockCmd | ( | uint32_t | RCC_AHB3Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB3 peripheral clock.
RCC_AHBPeriph,: | specifies the AHB3 peripheral to gates its clock. This parameter must be: RCC_AHB3Periph_FSMC |
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB3PeriphClockLPModeCmd | ( | uint32_t | RCC_AHB3Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB3 peripheral clock during Low Power (Sleep) mode.
RCC_AHBPeriph,: | specifies the AHB3 peripheral to gates its clock. This parameter must be: RCC_AHB3Periph_FSMC |
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_AHB3PeriphResetCmd | ( | uint32_t | RCC_AHB3Periph, |
FunctionalState | NewState | ||
) |
Forces or releases AHB3 peripheral reset.
RCC_AHB3Periph,: | specifies the AHB3 peripheral to reset. This parameter must be: RCC_AHB3Periph_FSMC |
NewState,: | new state of the specified peripheral reset. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_APB1PeriphClockCmd | ( | uint32_t | RCC_APB1Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the Low Speed APB (APB1) peripheral clock.
RCC_APB1Periph,: | specifies the APB1 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_APB1PeriphClockLPModeCmd | ( | uint32_t | RCC_APB1Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the APB1 peripheral clock during Low Power (Sleep) mode.
RCC_APB1Periph,: | specifies the APB1 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_APB1PeriphResetCmd | ( | uint32_t | RCC_APB1Periph, |
FunctionalState | NewState | ||
) |
Forces or releases Low Speed APB (APB1) peripheral reset.
RCC_APB1Periph,: | specifies the APB1 peripheral to reset. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral reset. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_APB2PeriphClockCmd | ( | uint32_t | RCC_APB2Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the High Speed APB (APB2) peripheral clock.
RCC_APB2Periph,: | specifies the APB2 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_APB2PeriphClockLPModeCmd | ( | uint32_t | RCC_APB2Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the APB2 peripheral clock during Low Power (Sleep) mode.
RCC_APB2Periph,: | specifies the APB2 peripheral to gates its clock. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_APB2PeriphResetCmd | ( | uint32_t | RCC_APB2Periph, |
FunctionalState | NewState | ||
) |
Forces or releases High Speed APB (APB2) peripheral reset.
RCC_APB2Periph,: | specifies the APB2 peripheral to reset. This parameter can be any combination of the following values:
|
NewState,: | new state of the specified peripheral reset. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_BackupResetCmd | ( | FunctionalState | NewState | ) |
Forces or releases the Backup domain reset.
NewState,: | new state of the Backup domain reset. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_I2SCLKConfig | ( | uint32_t | RCC_I2SCLKSource | ) |
Configures the I2S clock source (I2SCLK).
RCC_I2SCLKSource,: | specifies the I2S clock source. This parameter can be one of the following values:
|
None |
void RCC_RTCCLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the RTC clock.
NewState,: | new state of the RTC clock. This parameter can be: ENABLE or DISABLE. |
None |
void RCC_RTCCLKConfig | ( | uint32_t | RCC_RTCCLKSource | ) |
Configures the RTC clock (RTCCLK).
RCC_RTCCLKSource,: | specifies the RTC clock source. This parameter can be one of the following values:
|
None |