mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Added additional simplified define
This commit is contained in:
parent
f67bf14b32
commit
ebd5821be7
1 changed files with 3 additions and 1 deletions
|
@ -80,6 +80,8 @@
|
||||||
|
|
||||||
#define PLL_SAIN 384
|
#define PLL_SAIN 384
|
||||||
#define PLL_SAIQ 7
|
#define PLL_SAIQ 7
|
||||||
|
#define PLL_SAIP RCC_PLLSAIP_DIV8
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
@ -181,7 +183,7 @@
|
||||||
PeriphClkInitStruct.Clk48ClockSelection = RCC_CLK48SOURCE_PLLSAIP;
|
PeriphClkInitStruct.Clk48ClockSelection = RCC_CLK48SOURCE_PLLSAIP;
|
||||||
PeriphClkInitStruct.PLLSAI.PLLSAIN = PLL_SAIN;
|
PeriphClkInitStruct.PLLSAI.PLLSAIN = PLL_SAIN;
|
||||||
PeriphClkInitStruct.PLLSAI.PLLSAIQ = PLL_SAIQ;
|
PeriphClkInitStruct.PLLSAI.PLLSAIQ = PLL_SAIQ;
|
||||||
PeriphClkInitStruct.PLLSAI.PLLSAIP = RCC_PLLSAIP_DIV8;
|
PeriphClkInitStruct.PLLSAI.PLLSAIP = PLL_SAIP;
|
||||||
if(HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
|
if(HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
|
||||||
{
|
{
|
||||||
while(1) {};
|
while(1) {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue