MG32F10x Standard Peripherals Firmware Library
|
Functions | |
void | RCC_PLLSourceConfig (uint32_t RCC_PLLSource, FunctionalState NewState) |
Configures the PLL clock source. More... | |
void | RCC_MAINCLKConfig (uint32_t RCC_MAINCLKSource) |
Configures the main clock (MAINCLK). More... | |
void | RCC_USBCLKConfig (uint32_t RCC_USBCLKSource, FunctionalState NewState) |
Configures the USB clock (USBCLK). More... | |
void | RCC_AHBCLKConfig (uint32_t RCC_MAINCLK) |
Configures the AHB clock (AHBCLK). More... | |
void | RCC_APB1CLKConfig (uint32_t RCC_MAINCLK, FunctionalState NewState) |
Configures the APB1 clock (APB1CLK). More... | |
void | RCC_APB2CLKConfig (uint32_t RCC_MAINCLK, FunctionalState NewState) |
Configures the APB2 clock (APB2CLK). More... | |
void | RCC_MCLKConfig (uint32_t RCC_MCLKSource, FunctionalState NewState) |
Configures the I2S MCLK clock (MCLK). More... | |
void | RCC_I2SCLKConfig (uint32_t RCC_MCLK, FunctionalState NewState) |
Configures the I2S SCLK clock (I2SCLK). More... | |
void | RCC_I2SCLKResetCmd (FunctionalState NewState) |
Forces or releases the I2S SCLK clock domain reset. More... | |
void | RCC_RNGCLKCmd (FunctionalState NewState) |
Enables or disables the RNG clock (RNGCLK). More... | |
void | RCC_IWDGCLKCmd (FunctionalState NewState) |
Enables or disables the IWDG clock (IWDGCLK). More... | |
void | RCC_DCSSCLKCmd (FunctionalState NewState) |
Enables or disables the DCSS clock. More... | |
void | RCC_SPIS1CLKCmd (FunctionalState NewState) |
Enables or disables the SPIS1 clock (SPIS1CLK). More... | |
void | RCC_SPIS2CLKCmd (FunctionalState NewState) |
Enables or disables the SPIS2 clock (SPIS2CLK). More... | |
void | RCC_USBFIFOCLKConfig (uint32_t RCC_USBFIFOCLKSource) |
Configures the USB FIFO clock (USBFIFOCLK). More... | |
void | RCC_USBFIFOCLKCmd (FunctionalState NewState) |
Enables or disables the USB FIFO clock (USBFIFOCLK). More... | |
void | RCC_MCOConfig (uint32_t RCC_MCO) |
Selects the clock source to output on MCO pin. More... | |
void | RCC_GetClocksFreq (RCC_ClocksTypeDef *RCC_Clocks) |
Returns the frequencies of different on chip clocks. More... | |
void | RCC_AHBPeriphClockCmd (uint32_t RCC_AHBPeriph, FunctionalState NewState) |
Enables or disables the AHB peripheral clock. More... | |
void | RCC_APB1PeriphClockCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) |
Enables or disables the APB1 peripheral clock. More... | |
void | RCC_APB2PeriphClockCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) |
Enables or disables the APB2 peripheral clock. More... | |
void | RCC_AHBPeriphResetCmd (uint32_t RCC_AHBPeriph, FunctionalState NewState) |
Forces or releases AHB peripheral reset. More... | |
void | RCC_APB1PeriphResetCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) |
Forces or releases APB1 peripheral reset. More... | |
void | RCC_APB2PeriphResetCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) |
Forces or releases APB2 peripheral reset. More... | |
void | RCC_BackupResetCmd (FunctionalState NewState) |
Forces or releases the Backup domain reset. More... | |
FlagStatus | RCC_GetResetFlagStatus (uint32_t RCC_RSTFLAG) |
Checks whether the specified RCC reset flag is set or not. More... | |
void | RCC_ClearResetFlags (void) |
Clears the RCC reset flags. More... | |
void RCC_AHBCLKConfig | ( | uint32_t | RCC_MAINCLK | ) |
Configures the AHB clock (AHBCLK).
RCC_MAINCLK | defines the AHB clock divider. This clock is derived from the main clock (MAINCLK). This parameter can be RCC_MAINCLK_Divx where x:[1, 64] |
void RCC_AHBPeriphClockCmd | ( | uint32_t | RCC_AHBPeriph, |
FunctionalState | NewState | ||
) |
Enables or disables the AHB peripheral clock.
RCC_AHBPeriph | specifies the AHB 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. |
void RCC_AHBPeriphResetCmd | ( | uint32_t | RCC_AHBPeriph, |
FunctionalState | NewState | ||
) |
Forces or releases AHB peripheral reset.
RCC_AHBPeriph | specifies the AHB 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. |
void RCC_APB1CLKConfig | ( | uint32_t | RCC_MAINCLK, |
FunctionalState | NewState | ||
) |
Configures the APB1 clock (APB1CLK).
RCC_MAINCLK | defines the APB1 clock divider. This clock is derived from the main clock (MAINCLK). This parameter can be RCC_MAINCLK_Divx where x:[1, 64] |
NewState | new state of the APB1 clock. This parameter can be: ENABLE or DISABLE. |
void RCC_APB1PeriphClockCmd | ( | uint32_t | RCC_APB1Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the 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. |
void RCC_APB1PeriphResetCmd | ( | uint32_t | RCC_APB1Periph, |
FunctionalState | NewState | ||
) |
Forces or releases 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. |
void RCC_APB2CLKConfig | ( | uint32_t | RCC_MAINCLK, |
FunctionalState | NewState | ||
) |
Configures the APB2 clock (APB2CLK).
RCC_MAINCLK | defines the APB2 clock divider. This clock is derived from the main clock (MAINCLK). This parameter can be RCC_MAINCLK_Divx where x:[1, 64] |
NewState | new state of the APB2 clock. This parameter can be: ENABLE or DISABLE. |
void RCC_APB2PeriphClockCmd | ( | uint32_t | RCC_APB2Periph, |
FunctionalState | NewState | ||
) |
Enables or disables the 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. |
void RCC_APB2PeriphResetCmd | ( | uint32_t | RCC_APB2Periph, |
FunctionalState | NewState | ||
) |
Forces or releases 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. |
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. |
void RCC_ClearResetFlags | ( | void | ) |
Clears the RCC reset flags.
None |
void RCC_DCSSCLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the DCSS clock.
NewState | new state of the DCSS clock. This parameter can be: ENABLE or DISABLE. |
void RCC_GetClocksFreq | ( | RCC_ClocksTypeDef * | RCC_Clocks | ) |
Returns the frequencies of different on chip clocks.
RCC_Clocks | pointer to a RCC_ClocksTypeDef structure which will hold the clocks frequencies. |
FlagStatus RCC_GetResetFlagStatus | ( | uint32_t | RCC_RSTFLAG | ) |
Checks whether the specified RCC reset flag is set or not.
RCC_RSTFLAG | specifies the flag to check. This parameter can be one of the following values:
|
void RCC_I2SCLKConfig | ( | uint32_t | RCC_MCLK, |
FunctionalState | NewState | ||
) |
Configures the I2S SCLK clock (I2SCLK).
RCC_MCLK | defines the I2S SCLK clock divider. This clock is derived from the MCLK clock (MCLK). This parameter can be RCC_MCLK_Divx where x:[1, 512] |
NewState | new state of the I2S SCLK clock. This parameter can be: ENABLE or DISABLE. |
void RCC_I2SCLKResetCmd | ( | FunctionalState | NewState | ) |
Forces or releases the I2S SCLK clock domain reset.
NewState | new state of the I2S SCLK clock domain reset. This parameter can be: ENABLE or DISABLE. |
void RCC_IWDGCLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the IWDG clock (IWDGCLK).
NewState | new state of the IWDG clock. This parameter can be: ENABLE or DISABLE. |
void RCC_MAINCLKConfig | ( | uint32_t | RCC_MAINCLKSource | ) |
Configures the main clock (MAINCLK).
RCC_MAINCLKSource | specifies the clock source used as main clock. This parameter can be one of the following values:
|
void RCC_MCLKConfig | ( | uint32_t | RCC_MCLKSource, |
FunctionalState | NewState | ||
) |
Configures the I2S MCLK clock (MCLK).
RCC_MCLKSource | specifies the I2S MCLK clock source.. This parameter can be RCC_MCLKSource_MAINCLK_Divx or RCC_MCLKSource_FHSI_Divx where x:[1, 64] |
NewState | new state of the I2S MCLK clock. This parameter can be: ENABLE or DISABLE. |
void RCC_MCOConfig | ( | uint32_t | RCC_MCO | ) |
Selects the clock source to output on MCO pin.
RCC_MCO | specifies the clock source to output. This parameter can be one of the following values:
|
void RCC_PLLSourceConfig | ( | uint32_t | RCC_PLLSource, |
FunctionalState | NewState | ||
) |
Configures the PLL clock source.
RCC_PLLSource | specifies the PLL entry clock source. This parameter can be RCC_PLLSource_HSE_Divx or RCC_PLLSource_MHSI_Divx where x:[1, 16] |
NewState | new state of the PLL source clock. This parameter can be: ENABLE or DISABLE. |
void RCC_RNGCLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the RNG clock (RNGCLK).
NewState | new state of the RNG clock. This parameter can be: ENABLE or DISABLE. |
void RCC_SPIS1CLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the SPIS1 clock (SPIS1CLK).
NewState | new state of the SPIS1 clock. This parameter can be: ENABLE or DISABLE. |
void RCC_SPIS2CLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the SPIS2 clock (SPIS2CLK).
NewState | new state of the SPIS2 clock. This parameter can be: ENABLE or DISABLE. |
void RCC_USBCLKConfig | ( | uint32_t | RCC_USBCLKSource, |
FunctionalState | NewState | ||
) |
Configures the USB clock (USBCLK).
RCC_USBCLKSource | specifies the USB clock source.. This parameter can be one of the following values:
|
NewState | new state of the USB clock. This parameter can be: ENABLE or DISABLE. |
void RCC_USBFIFOCLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the USB FIFO clock (USBFIFOCLK).
NewState | new state of the USB FIFO clock. This parameter can be: ENABLE or DISABLE. |
void RCC_USBFIFOCLKConfig | ( | uint32_t | RCC_USBFIFOCLKSource | ) |
Configures the USB FIFO clock (USBFIFOCLK).
RCC_USBFIFOCLKSource | specifies the USB FIFO clock source. This parameter can be one of the following values:
|