Skip to content

Commit 2f3dd04

Browse files
author
Mehmet Ozan Ünal
committed
extern removed for w function are renamed
1 parent 9d4b145 commit 2f3dd04

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

examples/fir/fir.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,14 @@ long calcTime;
324324
void setup()
325325
{
326326
Serial.begin(9600);
327-
initFIR(&fir1, 46, coef);
327+
init(&fir1, 46, coef);
328328
Serial.print("Initiliaze finished");
329329

330330
for (int i = 0; i < 255; i++)
331331
{
332332
startTime = micros();
333333
float a;
334-
a = filtFIR(&fir1, input[i]);
334+
a = filt(&fir1, input[i]);
335335
calcTime = micros() - startTime;
336336
Serial.println(a);
337337
Serial.print("Total calculation time: ");

simpleDSP_Global.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
struct COMPLEX
66
{
7-
double real;
8-
double imag;
7+
float real;
8+
float imag;
99
};
1010

1111
#endif /* end simpleDSP_Global.h */

simpleDSP_fft.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
#include "simpleDSP_Global.h"
66

7-
extern COMPLEX w[];
8-
97
void FFT(COMPLEX *Y, int N);
108
void IFFT(COMPLEX *Y, int N);
119

simpleDSP_fir.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <stdio.h>
77
#include <stdlib.h>
88

9-
typedef struct FIR
9+
typedef struct
1010
{
1111
int coefLen;
1212
float *H;

simpleDSP_iir.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
#include <stdio.h>
77
#include <stdlib.h>
88

9-
struct IIR
9+
typedef struct
1010
{
11-
int n;
11+
int coefLen1;
1212
float *H;
1313
float *dly;
14-
};
14+
}IIR;
1515

1616
void initIIR(IIR *iir, int N1, float *coef1, int n2, float *coef2);
1717
float filtIIR(IIR *iir, int input);

0 commit comments

Comments
 (0)