Library Functions.
More...
Library Functions.
Gets current PLL settings from RCC registers.
- Note
- You can use this function to read current PLL settings before applying new settings
- Parameters
-
| *PLL_Settings | Pointer to TM_RCC_PLL_t structure where PLL settings will be stored |
- Return values
-
| uint8_t TM_RCC_IsPLLReady |
( |
void |
| ) |
|
Checks if main PLL is ready.
- Parameters
-
- Return values
-
| PLL | ready status:
- 0: PLL is not ready
- > 0: PLL is ready
|
Sets the main PLL settings for STM32F4xx device.
- Note
- PLL can only be configured when PLL is not used as system clock. For that purpose, this function does the following things:
- Enables HSI as system core clock
- Disables PLL
- Sets PLL parameters passed as parameters in function
- Enables PLL
- Waits will PLL is ready and locked
- Enables PLL as system core clock
- Updates system core clock variable
- Parameters
-
| *PLL_Settings | Pointer to TM_RCC_PLL_t structure with PLL settings. Use 0 for setting you don't want to change |
- Return values
-