Microchip® Advanced Software Framework

avr32/applications/uc3c-fpu-fractal-demo/main.c File Reference
#include "board.h"
#include "gpio.h"
#include "power_clocks_lib.h"
#include "et024006dhu.h"
#include "cycle_counter.h"
#include "fpu_operators.h"
#include "conf_demo.h"
#include <math.h>

Functions

static int draw_mandel_with_fpu (void)
 Fractal Algorithm with FPU optimization. More...
 
static int draw_mandel_without_fpu (void)
 Fractal Algorithm without FPU optimization. More...
 
int main (void)
 Main function. More...
 

Variables

static int colour_wfpu
 
static int colour_wofpu
 
static int i_wfpu =0
 
static int i_wofpu =0
 
static int inset_wfpu
 
static int inset_wofpu
 
static int iter_wfpu =40
 Local variables for Draw Mandel with FPU Optimization. More...
 
static int iter_wofpu =40
 Local variables for Draw Mandel without FPU Optimization. More...
 
static int j_wfpu =0
 
static int j_wofpu =0
 
static int k_wfpu =0
 
static int k_wofpu =0
 
static float newz_wfpu
 
static float newz_wofpu
 
static float newzi_wfpu
 
static float newzi_wofpu
 
static float x_wfpu
 
static float x_wofpu
 
static float xend_wfpu = 1.0
 
static float xend_wofpu = 1.0
 
static float xstart_wfpu = -2.0
 
static float xstart_wofpu = -2.0
 
static float xstep_wfpu
 
static float xstep_wofpu
 
static float y_wfpu
 
static float y_wofpu
 
static float yend_wfpu = 1.35
 
static float yend_wofpu = 1.35
 
static float ystart_wfpu = -1.35
 
static float ystart_wofpu = -1.35
 
static float ystep_wfpu
 
static float ystep_wofpu
 
static float z_wfpu
 
static float z_wofpu
 
static float zi_wfpu
 
static float zi_wofpu
 
System Clock Frequencies

Information about Clock configuration and TWIM Module configuration

pcl_freq_param_t pcl_freq_param
 

int colour_wfpu
static

Referenced by draw_mandel_with_fpu().

int colour_wofpu
static

Referenced by draw_mandel_without_fpu().

int i_wfpu =0
static

Referenced by draw_mandel_with_fpu(), and main().

int i_wofpu =0
static

Referenced by draw_mandel_without_fpu(), and main().

int inset_wfpu
static

Referenced by draw_mandel_with_fpu().

int inset_wofpu
static

Referenced by draw_mandel_without_fpu().

int iter_wfpu =40
static

Local variables for Draw Mandel with FPU Optimization.

Referenced by draw_mandel_with_fpu(), and main().

int iter_wofpu =40
static

Local variables for Draw Mandel without FPU Optimization.

Referenced by draw_mandel_without_fpu(), and main().

int j_wfpu =0
static

Referenced by draw_mandel_with_fpu(), and main().

int j_wofpu =0
static

Referenced by draw_mandel_without_fpu(), and main().

int k_wfpu =0
static

Referenced by draw_mandel_with_fpu(), and main().

int k_wofpu =0
static

Referenced by draw_mandel_without_fpu(), and main().

float newz_wfpu
static

Referenced by draw_mandel_with_fpu().

float newz_wofpu
static

Referenced by draw_mandel_without_fpu().

float newzi_wfpu
static

Referenced by draw_mandel_with_fpu().

float newzi_wofpu
static

Referenced by draw_mandel_without_fpu().

static pcl_freq_param_t pcl_freq_param
Initial value:
=
{
.cpu_f = FCPU_HZ
, .pba_f = FPBA_HZ
, .osc0_f = FOSC0
, .osc0_startup = OSC0_STARTUP
}
#define FCPU_HZ
Definition: pevc_example3.c:89
#define FPBA_HZ
Definition: pevc_example3.c:90
float x_wfpu
static

Referenced by draw_mandel_with_fpu(), and main().

float x_wofpu
static

Referenced by draw_mandel_without_fpu(), and main().

float xend_wfpu = 1.0
static

Referenced by main().

float xend_wofpu = 1.0
static

Referenced by main().

float xstart_wfpu = -2.0
static

Referenced by draw_mandel_with_fpu(), and main().

float xstart_wofpu = -2.0
static

Referenced by draw_mandel_without_fpu(), and main().

float xstep_wfpu
static

Referenced by draw_mandel_with_fpu(), and main().

float xstep_wofpu
static

Referenced by draw_mandel_without_fpu(), and main().

float y_wfpu
static

Referenced by draw_mandel_with_fpu(), and main().

float y_wofpu
static

Referenced by draw_mandel_without_fpu(), and main().

float yend_wfpu = 1.35
static

Referenced by main().

float yend_wofpu = 1.35
static

Referenced by main().

float ystart_wfpu = -1.35
static

Referenced by main().

float ystart_wofpu = -1.35
static

Referenced by main().

float ystep_wfpu
static

Referenced by draw_mandel_with_fpu(), and main().

float ystep_wofpu
static

Referenced by draw_mandel_without_fpu(), and main().

float z_wfpu
static

Referenced by draw_mandel_with_fpu().

float z_wofpu
static

Referenced by draw_mandel_without_fpu().

float zi_wfpu
static

Referenced by draw_mandel_with_fpu().

float zi_wofpu
static

Referenced by draw_mandel_without_fpu().