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.
Dependencies: mbed CMSIS_DSP_5
main.cpp
- Committer:
- javiervicente
- Date:
- 2018-10-18
- Revision:
- 3:44b632ea58aa
- Parent:
- 2:69827542e976
- Child:
- 8:99642487de6f
File content as of revision 3:44b632ea58aa:
#include "mbed.h"
#include "datos.h"
Timer timer;
float resultado;
int tiempo;
float calcularRMS(int16_t *datos, int longitud);
int main()
{
timer.reset();
timer.start();
resultado=calcularRMS(datos, 500);
timer.stop();
printf("****El valor Vrms es %f calculado en %d us ****\n",resultado,timer.read_us());
}
float calcularRMS(int16_t *datos, int longitud)
{
return 0.0;
}