Fixed with HAL.
Fork of ST_L152_32MHZ by
Not finish yet. External crystal doesn't work.
Revision 3:1e82f1f333ad, committed 2014-04-08
- Comitter:
- dreschpe
- Date:
- Tue Apr 08 17:17:56 2014 +0000
- Parent:
- 2:9e2ba1d93567
- Child:
- 4:13f94218b838
- Commit message:
- We have to reset the clock setting to change the pll
Changed in this revision
ST_L152_32MHZ.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ST_L152_32MHZ.cpp Wed Mar 19 18:07:11 2014 +0000 +++ b/ST_L152_32MHZ.cpp Tue Apr 08 17:17:56 2014 +0000 @@ -30,7 +30,7 @@ { uint32_t PLLStartUpCounter = 0,PLLStatus = 0,error; - + RCC_DeInit(); // we have to reset the clock settings ! /* Enable 64-bit access */ FLASH->ACR |= FLASH_ACR_ACC64;