as

Dependencies:   mbed CMSIS_DSP_5

Committer:
javiervicente
Date:
Wed Oct 17 17:00:32 2018 +0000
Revision:
2:69827542e976
Parent:
1:bdbd76df2103
Child:
3:44b632ea58aa
inicial;

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 1:bdbd76df2103 6
javiervicente 2:69827542e976 7 float calcularRMS(int16_t *datos, int longitud);
javiervicente 2:69827542e976 8
javiervicente 0:0d5a524c7d25 9
javiervicente 0:0d5a524c7d25 10 int main()
javiervicente 0:0d5a524c7d25 11 {
javiervicente 1:bdbd76df2103 12
javiervicente 1:bdbd76df2103 13 timer.reset();
javiervicente 0:0d5a524c7d25 14 timer.start();
javiervicente 2:69827542e976 15 resultado=calcularRMS(datos, 500);
javiervicente 0:0d5a524c7d25 16 timer.stop();
javiervicente 2:69827542e976 17 printf("****El valor Vrms es %f ****\n",resultado);
javiervicente 1:bdbd76df2103 18
javiervicente 1:bdbd76df2103 19 }
javiervicente 1:bdbd76df2103 20
javiervicente 2:69827542e976 21 float calcularRMS(int16_t *datos, int longitud)
javiervicente 1:bdbd76df2103 22 {
javiervicente 2:69827542e976 23 return 0.0;
javiervicente 1:bdbd76df2103 24 }
javiervicente 1:bdbd76df2103 25