global_vars.c

来自「ADI 公司的DSP ADSP21262 EZ-KIT LITE开发板的全部源代」· C语言 代码 · 共 36 行

C
36
字号
#include "Sample Playback.h"

#ifndef __GVARS__
#define __GVARS__

//gain goes from 1->0 over half the number of samples
volatile float step = 1.0 / (float)SWEEP_MIDDLE;
//gains used to sweep audio balance left and right
volatile float Lgain=0.0;
volatile float Rgain=1.0;

//temporary storage for raw-data in read_flash() routine
volatile int flash_word;
//sample is the final data returned by read_flash
volatile float sample;
//processed_sample is the L/Rgain adjusted version to playback
volatile float processed_sample;

//semaphore to synchronize LED's w/ audio playback
volatile unsigned int start_sweep = 1;
volatile unsigned int sweep_count = 0;
//mask to sweep across LED's, a 1 is lit LED.
volatile unsigned int LED_value = 0xF0000000;

//semaphore that toggles each sample to show I2S state
volatile unsigned int LRflag = 1;

//address of sample in FLASH
volatile int ByteAddr = SAMPLE_START_ADDR;

//pointer to a linked list of sample descriptors
Csample* FirstSample;


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?