From 7dba052e883d3779d1eae60adf29335cf89b468a Mon Sep 17 00:00:00 2001 From: Jonathan Wyss Date: Tue, 27 Feb 2024 21:29:54 +0100 Subject: [PATCH] fixed internal clock to 16Mhz --- fix_fft.h | 2 +- main.c | 24 ++++++++++++++++-------- makefile | 2 +- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/fix_fft.h b/fix_fft.h index 4fd7132..70aa887 100644 --- a/fix_fft.h +++ b/fix_fft.h @@ -31,7 +31,7 @@ int fix_fft(char fr[], char fi[], int m, int inverse); real and imaginary samples in the complex array. */ int fix_fftr(char f[], int m, int inverse); -static inline char FIX_MPY(char a,char b); +//static inline char FIX_MPY(char a,char b); diff --git a/main.c b/main.c index 4d9b340..534a4a3 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -#define F_CPU 1000000UL +#define F_CPU 16000000UL #include #include @@ -16,9 +16,18 @@ int main (void) int i; char sample[128]; char im[128]; - struct cRGB led_bar1[1]; - //DDRB = (1<