diff options
author | unknown <dm2515@eews303a-028.ic.ac.uk> | 2018-01-31 11:03:28 +0000 |
---|---|---|
committer | unknown <dm2515@eews303a-028.ic.ac.uk> | 2018-01-31 11:03:28 +0000 |
commit | d15acaf23dcc779bd65b393ace28178bd8ac152d (patch) | |
tree | ef9051056b387bc926ddc2ed2100e7c7216c41c1 /lab4/RTDSP/intio.c | |
parent | b3da85af53160023196b77b279a8002bee6e765f (diff) | |
download | NoiseSilencer-d15acaf23dcc779bd65b393ace28178bd8ac152d.tar.gz NoiseSilencer-d15acaf23dcc779bd65b393ace28178bd8ac152d.zip |
Need to debug
Diffstat (limited to 'lab4/RTDSP/intio.c')
-rw-r--r-- | lab4/RTDSP/intio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lab4/RTDSP/intio.c b/lab4/RTDSP/intio.c index 9992d4a..d7dceeb 100644 --- a/lab4/RTDSP/intio.c +++ b/lab4/RTDSP/intio.c @@ -44,7 +44,7 @@ // PI defined here for use in your code #define PI 3.141592653589793 #define N 249 -double buffer[N]; +double buffer[N]= {0}; unsigned int ptr = N-1; /******************************* Global declarations ********************************/ @@ -133,9 +133,9 @@ void ISR_AIC() sample_out = non_circ_fir(); mono_write_16Bit(sample_out); - ptr--; if (ptr == 0) - ptr = N-1; + ptr = N; + ptr--; } // Perform linear convolution |