Microchip® Advanced Software Framework

complex_fft_example.c File Reference

32 bits complex FFT program test

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "dsp.h"
#include "dsp_debug.h"
#include "sysclk.h"
#include "cycle_counter.h"

Macros

#define NLOG   6
 
#define SIZE   32
 

Functions

int main (int argc, char *argv[])
 

Variables

A_ALIGNED dsp32_t fft_real [SIZE]
 
A_ALIGNED dsp32_complex_t vect1 [SIZE]
 
A_ALIGNED dsp32_t vect2 [SIZE]
 

#define NLOG   6

Referenced by main().

#define SIZE   32

Referenced by main().

int main ( int  argc,
char *  argv[] 
)
Note
the call to sysclk_init() will disable all non-vital peripheral clocks, except for the peripheral clocks explicitly enabled in conf_clock.h.

References dsp32_debug_sprintf(), dsp32_trans_realcomplexfft(), dsp32_vect_complex_abs(), dsp32_vect_max(), dsp_debug_initialization, fft_real, Get_sys_count, NLOG, SIZE, sysclk_init(), vect1, and vect2.

A_ALIGNED dsp32_t fft_real[SIZE]

Referenced by main().