fghfgh

Dependencies:   mbed CMSIS_DSP_5 TextLCD

Committer:
javiervicente
Date:
Thu Oct 18 20:11:44 2018 +0000
Revision:
3:44b632ea58aa
Parent:
2:69827542e976
Child:
6:1e45b5f30b87
A?adido tiempo de ejecuci?n

Who changed what in which revision?

UserRevisionLine numberNew contents of line
javiervicente 0:0d5a524c7d25 1 #include "mbed.h"
javiervicente 0:0d5a524c7d25 2 #include "datos.h"
javiervicente 0:0d5a524c7d25 3
javiervicente 0:0d5a524c7d25 4 Timer timer;
javiervicente 2:69827542e976 5 float resultado;
javiervicente 3:44b632ea58aa 6 int tiempo;
javiervicente 1:bdbd76df2103 7
javiervicente 2:69827542e976 8 float calcularRMS(int16_t *datos, int longitud);
javiervicente 2:69827542e976 9
javiervicente 0:0d5a524c7d25 10
javiervicente 0:0d5a524c7d25 11 int main()
javiervicente 0:0d5a524c7d25 12 {
javiervicente 3:44b632ea58aa 13
javiervicente 1:bdbd76df2103 14 timer.reset();
javiervicente 0:0d5a524c7d25 15 timer.start();
javiervicente 2:69827542e976 16 resultado=calcularRMS(datos, 500);
javiervicente 0:0d5a524c7d25 17 timer.stop();
javiervicente 3:44b632ea58aa 18 printf("****El valor Vrms es %f calculado en %d us ****\n",resultado,timer.read_us());
javiervicente 1:bdbd76df2103 19
javiervicente 1:bdbd76df2103 20 }
javiervicente 1:bdbd76df2103 21
javiervicente 2:69827542e976 22 float calcularRMS(int16_t *datos, int longitud)
javiervicente 1:bdbd76df2103 23 {
javiervicente 2:69827542e976 24 return 0.0;
javiervicente 1:bdbd76df2103 25 }
javiervicente 1:bdbd76df2103 26