Benchmark Sute based on Arduino speed benchmark, adapted and modified for ARM Cortex-M7 ST Nucleo-144 STM32F767 and STM32F746 MCU's by Jovan Ivković 2017. https://hackaday.io/JovanE (Work based on Original Arduino Speed Test Benchmark Program by Dan Watson modified by Chester Lowrey)
Dependencies: STM32F4_RNG mbed
Revision 1:646b34df5819, committed 2017-02-22
- Comitter:
- JovanEps
- Date:
- Wed Feb 22 02:35:32 2017 +0000
- Parent:
- 0:82d68abdb697
- Commit message:
- Benchmark Sute based on Arduino speed bench. adapted and modified ; for ARM Cortex-M7 ST Nucleo-144 STM32F767 and STM32F746 MCU's by; Jovan Ivkovic 2017. ; https://hackaday.io/JovanE; (based on Arduino Speed Test Bench. Dan Watson and Chester Lowrey mod)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 82d68abdb697 -r 646b34df5819 main.cpp --- a/main.cpp Mon Feb 20 02:59:17 2017 +0000 +++ b/main.cpp Wed Feb 22 02:35:32 2017 +0000 @@ -1,17 +1,17 @@ -//******************************************************** -//** Benchamrk Sute based on Arduino bench. ****** -//** for ARM Cortex-M7 ST Nucleo-144 Stm32F746 ****** -//** Stm32F767 MCU's by ****** -//** Jovan Ivkovic 2016. ****** -//** JovanEps (jovan.eps@gmail.com). ****** -//******************************************************** +//************************************************************ +//** Benchmark Sute based on Arduino bench. ****** +//** adapted and mod. for ARM Cortex-M7 ST Nucleo-144 ****** +//** Stm32F767 and STM32F746 MCU's by ****** +//** Jovan Ivkovic 2016. ****** +//** JovanEps (jovan.eps@gmail.com). ****** +//************************************************************ #include "mbed.h" #include "STM32F4_RNG.h" //DigitalOut myled(LED1); -PwmOut PD13(PA_5); +PwmOut PD13(PA_5); //PWM Out to simulate Arduino Analog.Write //AnalogIn analog_value(A0); AnalogIn analog_value(PA_3); -AnalogOut DACout(PA_4); +AnalogOut DACout(PA_4); //Full DAC - analog out (write) Serial pc(USBTX, USBRX); DigitalOut PD7(PF_13); //introduce D7 pin-out *-Clear port it ping faster :) DigitalIn PD8(PF_12); @@ -79,7 +79,7 @@ */ -// Nucleo STM32F103RB - not tested yet +// Nucleo STM32F103RB - not tested yet /WE DO NOT USE THOSE SETINGS #define PIN_1 12 #define PIN_2 13 #define noAnalog