Thomas Kirchner / Mbed 2 deprecated Nucleo_vs_Arduino_Speed_Test

Dependencies:   ST_401_84MHZ mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers benchmark.cpp Source File

benchmark.cpp

00001 #include "benchmark.h"
00002 #include "stm32f4xx_hal.h" 
00003 #include "ST_F401_84MHZ.h"  
00004 
00005 //The program will run first at the clock speed at which you have set your board 
00006 //and then switch to 84 MHz. Presumably your board is set to 84 MHz already.
00007  
00008 main(){
00009     whetstone(0);
00010     SystemClock_Config_84MHz_internal();                                     // Now speed up to 84 MHz
00011     whetstone(84);
00012     //linpack();
00013     //dhrystone();
00014     }
00015     
00016