📄 epower_28x_regsdefs.c
字号:
//###########################################################################
//
// FILE: Epower_28x_RegsDefs.c
//
// TITLE: DSP281x Global Variables and Data Section Pragmas.
//
//###########################################################################
//
// Ver | dd mmm yyyy | Who | Description of changes
// =====|=============|======|===============================================
// 1.00| 11 Sep 2003 | L.H. | Changes since previous version (v.58 Alpha)
// | | | Added support for C++
//###########################################################################
#include "Epower_28x.h" // DSP281x Headerfile Include File
//---------------------------------------------------------------------------
// Define Global Peripheral Variables:
//
/* 数组定义区 */
// Ipcb[1026]
#ifdef __cplusplus
#pragma DATA_SECTION("FFTipcb")
#else
#pragma DATA_SECTION(ipcb, "FFTipcb");
#endif
long ipcb[1026];
// Mag[513]
#ifdef __cplusplus
#pragma DATA_SECTION("FFTmag")
#else
#pragma DATA_SECTION(mag, "FFTmag");
#endif
long mag[513];
// ADC[2] define
#ifdef __cplusplus
#pragma DATA_SECTION("ADCua")
#else
#pragma DATA_SECTION(adc_ua, "ADCua");
#endif
int adc_ua[2];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCub")
#else
#pragma DATA_SECTION(adc_ub, "ADCub");
#endif
int adc_ub[2];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCuc")
#else
#pragma DATA_SECTION(adc_uc, "ADCuc");
#endif
int adc_uc[2];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCia")
#else
#pragma DATA_SECTION(adc_ia, "ADCia");
#endif
int adc_ia[2];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCib")
#else
#pragma DATA_SECTION(adc_ib, "ADCib");
#endif
int adc_ib[2];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCic")
#else
#pragma DATA_SECTION(adc_ic, "ADCic");
#endif
int adc_ic[2];
// ADCdata[256] define
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdataua")
#else
#pragma DATA_SECTION(adcdata_ua, "ADCdataua");
#endif
int adcdata_ua[256];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdataub")
#else
#pragma DATA_SECTION(adcdata_ub, "ADCdataub");
#endif
int adcdata_ub[256];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdatauc")
#else
#pragma DATA_SECTION(adcdata_uc, "ADCdatauc");
#endif
int adcdata_uc[256];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdataia")
#else
#pragma DATA_SECTION(adcdata_ia, "ADCdataia");
#endif
int adcdata_ia[256];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdataib")
#else
#pragma DATA_SECTION(adcdata_ib, "ADCdataib");
#endif
int adcdata_ib[256];
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdataic")
#else
#pragma DATA_SECTION(adcdata_ic, "ADCdataic");
#endif
int adcdata_ic[256];
// ADCdatatime[800] define
#ifdef __cplusplus
#pragma DATA_SECTION("ADCdatatime")
#else
#pragma DATA_SECTION(adcdata_time, "ADCdatatime");
#endif
Uint32 adcdata_time[800];
// fftdata[1024] define
#ifdef __cplusplus
#pragma DATA_SECTION("FFTdataua")
#else
#pragma DATA_SECTION(fftdata_ua, "FFTdataua");
#endif
int fftdata_ua[1024];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTdataub")
#else
#pragma DATA_SECTION(fftdata_ub, "FFTdataub");
#endif
int fftdata_ub[1024];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTdatauc")
#else
#pragma DATA_SECTION(fftdata_uc, "FFTdatauc");
#endif
int fftdata_uc[1024];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTdataia")
#else
#pragma DATA_SECTION(fftdata_ia, "FFTdataia");
#endif
int fftdata_ia[1024];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTdataib")
#else
#pragma DATA_SECTION(fftdata_ib, "FFTdataib");
#endif
int fftdata_ib[1024];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTdataic")
#else
#pragma DATA_SECTION(fftdata_ic, "FFTdataic");
#endif
int fftdata_ic[1024];
// fft[128] define
#ifdef __cplusplus
#pragma DATA_SECTION("FFTua")
#else
#pragma DATA_SECTION(fft_ua, "FFTua");
#endif
int fft_ua[128];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTub")
#else
#pragma DATA_SECTION(fft_ub, "FFTub");
#endif
int fft_ub[128];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTuc")
#else
#pragma DATA_SECTION(fft_uc, "FFTuc");
#endif
int fft_uc[128];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTia")
#else
#pragma DATA_SECTION(fft_ia, "FFTia");
#endif
int fft_ia[128];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTib")
#else
#pragma DATA_SECTION(fft_ib, "FFTib");
#endif
int fft_ib[128];
#ifdef __cplusplus
#pragma DATA_SECTION("FFTic")
#else
#pragma DATA_SECTION(fft_ic, "FFTic");
#endif
int fft_ic[128];
// mag[64] define
#ifdef __cplusplus
#pragma DATA_SECTION("MAGua")
#else
#pragma DATA_SECTION(mag_ua, "MAGua");
#endif
long mag_ua[64];
#ifdef __cplusplus
#pragma DATA_SECTION("MAGub")
#else
#pragma DATA_SECTION(mag_ub, "MAGub");
#endif
long mag_ub[64];
#ifdef __cplusplus
#pragma DATA_SECTION("MAGuc")
#else
#pragma DATA_SECTION(mag_uc, "MAGuc");
#endif
long mag_uc[64];
#ifdef __cplusplus
#pragma DATA_SECTION("MAGia")
#else
#pragma DATA_SECTION(mag_ia, "MAGia");
#endif
long mag_ia[64];
#ifdef __cplusplus
#pragma DATA_SECTION("MAGib")
#else
#pragma DATA_SECTION(mag_ib, "MAGib");
#endif
long mag_ib[64];
#ifdef __cplusplus
#pragma DATA_SECTION("MAGic")
#else
#pragma DATA_SECTION(mag_ic, "MAGic");
#endif
long mag_ic[64];
// P[64]
#ifdef __cplusplus
#pragma DATA_SECTION("Pa")
#else
#pragma DATA_SECTION(p_a, "Pa");
#endif
Uint32 p_a[64];
#ifdef __cplusplus
#pragma DATA_SECTION("Pb")
#else
#pragma DATA_SECTION(p_b, "Pb");
#endif
Uint32 p_b[64];
#ifdef __cplusplus
#pragma DATA_SECTION("Pc")
#else
#pragma DATA_SECTION(p_c, "Pc");
#endif
Uint32 p_c[64];
// Q[64]
#ifdef __cplusplus
#pragma DATA_SECTION("Qa")
#else
#pragma DATA_SECTION(q_a, "Qa");
#endif
Uint32 q_a[64];
#ifdef __cplusplus
#pragma DATA_SECTION("Qb")
#else
#pragma DATA_SECTION(q_b, "Qb");
#endif
Uint32 q_b[64];
#ifdef __cplusplus
#pragma DATA_SECTION("Qc")
#else
#pragma DATA_SECTION(q_c, "Qc");
#endif
Uint32 q_c[64];
// Sum_p
#ifdef __cplusplus
#pragma DATA_SECTION("Sump")
#else
#pragma DATA_SECTION(sum_p, "Sump");
#endif
long sum_p[3];
// Sum_q
#ifdef __cplusplus
#pragma DATA_SECTION("Sumq")
#else
#pragma DATA_SECTION(sum_q, "Sumq");
#endif
long sum_q[3];
// Sum_ui[6]
#ifdef __cplusplus
#pragma DATA_SECTION("Sumui")
#else
#pragma DATA_SECTION(sum_ui, "Sumui");
#endif
long sum_ui[6];
// X_ui[6]
#ifdef __cplusplus
#pragma DATA_SECTION("Zui")
#else
#pragma DATA_SECTION(z_ui, "Zui");
#endif
int z_ui[6];
// Uua[6000]
#ifdef __cplusplus
#pragma DATA_SECTION("Uua")
#else
#pragma DATA_SECTION(uua, "Uua");
#endif
int uua[6000];
// Uub[6000]
#ifdef __cplusplus
#pragma DATA_SECTION("Uub")
#else
#pragma DATA_SECTION(uub, "Uub");
#endif
int uub[6000];
// Uuc[6000]
#ifdef __cplusplus
#pragma DATA_SECTION("Uuc")
#else
#pragma DATA_SECTION(uuc, "Uuc");
#endif
int uuc[6000];
/* 变量定义区 */
// Up_t_old
#ifdef __cplusplus
#pragma DATA_SECTION("Uptold")
#else
#pragma DATA_SECTION(up_t_old, "Uptold");
#endif
Uint32 up_t_old = 0;
// Realtime
#ifdef __cplusplus
#pragma DATA_SECTION("Rtime")
#else
#pragma DATA_SECTION(realtime, "Rtime");
#endif
int32 realtime = 0;
// Adcdata_timef
#ifdef __cplusplus
#pragma DATA_SECTION("Adctimef")
#else
#pragma DATA_SECTION(adcdata_timef, "Adctimef");
#endif
Uint32 adcdata_timef = 0;
// Xxua_old
#ifdef __cplusplus
#pragma DATA_SECTION("Xxuaold")
#else
#pragma DATA_SECTION(xxua_old, "Xxuaold");
#endif
int xxua_old = 0;
// Fftn
#ifdef __cplusplus
#pragma DATA_SECTION("FftnI")
#else
#pragma DATA_SECTION(fftn, "FftnI");
#endif
Uint16 fftn = 0;
// Timen
#ifdef __cplusplus
#pragma DATA_SECTION("TimenI")
#else
#pragma DATA_SECTION(timen, "TimenI");
#endif
Uint16 timen = 0;
// Tempn
#ifdef __cplusplus
#pragma DATA_SECTION("TempnI")
#else
#pragma DATA_SECTION(tempn, "TempnI");
#endif
Uint16 tempn = 0;
// Samplen
#ifdef __cplusplus
#pragma DATA_SECTION("SamplenI")
#else
#pragma DATA_SECTION(samplen, "SamplenI");
#endif
Uint16 samplen;
// Dcyc
#ifdef __cplusplus
#pragma DATA_SECTION("DcycI")
#else
#pragma DATA_SECTION(dcyc, "DcycI");
#endif
Uint16 dcyc = 11719;
// Cyclen
#ifdef __cplusplus
#pragma DATA_SECTION("CyclenI")
#else
#pragma DATA_SECTION(cyclen, "CyclenI");
#endif
Uint16 cyclen = 23438;
// Phaze
#ifdef __cplusplus
#pragma DATA_SECTION("PhazeI")
#else
#pragma DATA_SECTION(phaze, "PhazeI");
#endif
Uint16 phaze = 0;
// Capflag
#ifdef __cplusplus
#pragma DATA_SECTION("Capf")
#else
#pragma DATA_SECTION(capflag, "Capf");
#endif
Uint16 capflag = 0;
// Fftstart
#ifdef __cplusplus
#pragma DATA_SECTION("FftstartI")
#else
#pragma DATA_SECTION(fftstart, "FftstartI");
#endif
Uint16 fftstart = 0;
// Adcflag
#ifdef __cplusplus
#pragma DATA_SECTION("AdcflagI")
#else
#pragma DATA_SECTION(adcflag, "AdcflagI");
#endif
Uint16 adcflag = 0;
// Samplen_1
#ifdef __cplusplus
#pragma DATA_SECTION("Samplen1I")
#else
#pragma DATA_SECTION(samplen_1, "Samplen1I");
#endif
Uint16 samplen_1 = 0;
// Samplen_temp
#ifdef __cplusplus
#pragma DATA_SECTION("SamplentempI")
#else
#pragma DATA_SECTION(samplen_temp, "SamplentempI");
#endif
Uint16 samplen_temp = 0;
// Samplen_2
#ifdef __cplusplus
#pragma DATA_SECTION("Samplen2I")
#else
#pragma DATA_SECTION(samplen_2, "Samplen2I");
#endif
Uint16 samplen_2;
// Arc
#ifdef __cplusplus
#pragma DATA_SECTION("ArcI")
#else
#pragma DATA_SECTION(arc, "ArcI");
#endif
Uint16 arc;
// Fftflag
#ifdef __cplusplus
#pragma DATA_SECTION("Fftf")
#else
#pragma DATA_SECTION(fftflag, "Fftf");
#endif
Uint16 fftflag = 0;
// Powerflag
#ifdef __cplusplus
#pragma DATA_SECTION("Powerf")
#else
#pragma DATA_SECTION(powerflag, "Powerf");
#endif
Uint16 powerflag = 0;
// Powersflag
#ifdef __cplusplus
#pragma DATA_SECTION("Powersf")
#else
#pragma DATA_SECTION(powersflag, "Powersf");
#endif
Uint16 powersflag = 0;
// sample_cap
#ifdef __cplusplus
#pragma DATA_SECTION("Samcap")
#else
#pragma DATA_SECTION(sample_cap, "Samcap");
#endif
Uint16 sample_cap = 0;
// Sampleflag
#ifdef __cplusplus
#pragma DATA_SECTION("Samplef")
#else
#pragma DATA_SECTION(sampleflag, "Samplef");
#endif
Uint16 sampleflag = 0;
// Coefua
#ifdef __cplusplus
#pragma DATA_SECTION("Coefua")
#else
#pragma DATA_SECTION(coef_ua, "Coefua");
#endif
Uint16 coef_ua = 1;
// Coefub
#ifdef __cplusplus
#pragma DATA_SECTION("Coefub")
#else
#pragma DATA_SECTION(coef_ub, "Coefub");
#endif
Uint16 coef_ub = 1;
// Coefuc
#ifdef __cplusplus
#pragma DATA_SECTION("Coefuc")
#else
#pragma DATA_SECTION(coef_uc, "Coefuc");
#endif
Uint16 coef_uc = 1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -