mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
REVONANO - Change Power Regulatro Scale mode to Scale1.
Looks like stm32f4xx_Clock_Configuration_V1.1.0 seems like doesn't play well with 411. Reg Scale mode was wrong
This commit is contained in:
parent
c0618258ad
commit
0d714fb861
@ -74,7 +74,7 @@
|
||||
*-----------------------------------------------------------------------------
|
||||
* VDD(V) | 3.3
|
||||
*-----------------------------------------------------------------------------
|
||||
* Main regulator output voltage | Scale2 mode
|
||||
* Main regulator output voltage | Scale1 mode
|
||||
*-----------------------------------------------------------------------------
|
||||
* Flash Latency(WS) | 3
|
||||
*-----------------------------------------------------------------------------
|
||||
@ -375,7 +375,7 @@ static void SetSysClock(void)
|
||||
/* Select regulator voltage output Scale 2 mode, System frequency up to 144 MHz */
|
||||
RCC->APB1ENR |= RCC_APB1ENR_PWREN;
|
||||
PWR->CR &= (uint32_t)~(PWR_CR_VOS);
|
||||
|
||||
PWR->CR |= PWR_CR_VOS_0 | PWR_CR_VOS_1;
|
||||
/* HCLK = SYSCLK / 1*/
|
||||
RCC->CFGR |= RCC_CFGR_HPRE_DIV1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user