Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_spi_master_20MHz Nucleo_vs_Arduino_Speed_Test DMA_I2S_Test MPU9150AHRS ... more
Revision 3:1d8106fcb4c5, committed 2014-03-07
- Comitter:
- dreschpe
- Date:
- Fri Mar 07 20:21:31 2014 +0000
- Parent:
- 2:e5c1060ec62d
- Child:
- 4:0834e0e36a1e
- Commit message:
- call SystemCoreClockUpdate() to correct timing functions
Changed in this revision
| ST_F401_84MHZ.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ST_F401_84MHZ.cpp Wed Mar 05 22:19:14 2014 +0000 +++ b/ST_F401_84MHZ.cpp Fri Mar 07 20:21:31 2014 +0000 @@ -24,7 +24,7 @@ RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2); - + SystemCoreClockUpdate(); // update SystemCoreClock var } @@ -53,5 +53,6 @@ RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2); + SystemCoreClockUpdate(); // update SystemCoreClock var }