Atmel Software Framework

simulator_examples/adpcm/adpcm_example.c File Reference

IMA/DVI ADPCM functions usage.

Copyright (c) 2011-2012 Atmel Corporation. All rights reserved.

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


#define NSAMPLES   100


int main (int argc, char *argv[])
 The main function. More...


char cbuf [NSAMPLES]
short new_sbuf [NSAMPLES]
short sbuf [NSAMPLES]

#define NSAMPLES   100

Referenced by main().

int main ( int  argc,
char *  argv[] 

The main function.

the call to sysclk_init() will disable all non-vital peripheral clocks, except for the peripheral clocks explicitly enabled in conf_clock.h.

References cbuf, DSP16_Q, dsp_adpcm_ima_decode(), dsp_adpcm_ima_encode(), dsp_debug_initialization, FOSC0, Get_sys_count, i, new_sbuf, NSAMPLES, predicted_value, sbuf, step_index, and sysclk_init().

char cbuf[NSAMPLES]
short new_sbuf[NSAMPLES]
short sbuf[NSAMPLES]