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 6:b9343c8b85ec, committed 2014-04-08
- Comitter:
- dreschpe
- Date:
- Tue Apr 08 20:00:49 2014 +0000
- Parent:
- 5:f44655076466
- Commit message:
- DeInit PLL before setting new parameter
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 Sat Mar 08 15:03:38 2014 +0000
+++ b/ST_F401_84MHZ.cpp Tue Apr 08 20:00:49 2014 +0000
@@ -2,9 +2,9 @@
// www.st.com/stm32cube
//
-#include "stm32f4xx_hal.h"
+#include "stm32f4xx_hal.h"
#include "ST_F401_84MHZ.h"
-
+
F401_init84::F401_init84(unsigned int external){
if(external == 1){
SystemClock_Config_84MHz_external();
@@ -16,6 +16,7 @@
void F401_init84::SystemClock_Config_84MHz_internal(void)
{
+ HAL_RCC_DeInit(); // we have to reset the clock settings !
RCC_ClkInitTypeDef RCC_ClkInitStruct;
RCC_OscInitTypeDef RCC_OscInitStruct;
@@ -46,6 +47,7 @@
void F401_init84::SystemClock_Config_84MHz_external(void)
{
+ HAL_RCC_DeInit(); // we have to reset the clock settings !
RCC_ClkInitTypeDef RCC_ClkInitStruct;
RCC_OscInitTypeDef RCC_OscInitStruct;