CMSIS DSP library

Dependents:   performance_timer Surfboard_ gps2rtty Capstone ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Revision:
4:9cee975aadce
Parent:
1:fdd22bb7aa52
--- a/dsp/Sine_f32.cpp	Fri Nov 08 13:45:10 2013 +0000
+++ b/dsp/Sine_f32.cpp	Mon Jun 23 09:30:09 2014 +0100
@@ -34,7 +34,7 @@
 }
 
 void Sine_f32::process(float32_t *sgn_in, float32_t *sgn_out) {
-    for (int i=0; i<_block_size; i++) {
+    for (uint32_t i=0; i<_block_size; i++) {
         *sgn_out = *sgn_in + (_amplitude * arm_sin_f32(_x));
         sgn_in++; sgn_out++;
         _x += _dx;
@@ -42,7 +42,7 @@
 }
 
 void Sine_f32::generate(float32_t *sgn) {
-    for (int i=0; i<_block_size; i++) {
+    for (uint32_t i=0; i<_block_size; i++) {
         *sgn = (_amplitude * arm_sin_f32(_x));
         sgn++;
         _x += _dx;