-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
70 lines (48 loc) · 1.4 KB
/
config.h
File metadata and controls
70 lines (48 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include <stdio.h>
#include <csl.h>
#include <cslr_emifa2.h>/*原来是csl_emifa*/
#include <csl_irq.h>
#include <csl_chip.h>
#include <csl_chiphal.h>
#include <csl_mcbsp.h>
#include <math.h>
#include <csl_gpio.h>
#include <csl_timer.h>
#include "seeddm642.h"
#include "dsp_fft16x16r.h"
#define Lp (3)
#define N_SYMBOLS (6) //OFDM符号数
#define N_DATASYMBOLS (4)
#define N_FFT (4096)
#define CP_LEN (1024)
#define MAX_FFT_LEN (2*(N_SYMBOLS+1)*N_FFT)
#define N_USE_CARR (408)
#define SCALE (128) //2^(log2(N_FFT)-ceil[log4(N_FFT)-1])
//BLS=FFTLEN*10KHz/60KHz采样率,有效载波在ifft输入符号中的偏移量
#define BLS (683) //第K个子载波的位置
#define SYNC_GAP (600)
#define DDS_GAP (4800) //80ms
#define N_DDS (3600)
#define DDS_LEN (N_DDS*3)
#define ADC_LEN (DDS_LEN+DDS_GAP+LFM_LEN+SYNC_GAP+MAX_FFT_LEN+100)
#define DETECTLEN (16000)
#define HIGHPOINT (10000)
//DDS frequency(Hz)
#define F1 (8000)
#define F2 (9000)
#define F3 (10000)
#define FS (60000)
//TIMER0
#define PRDVAL (0x4e2) /* sample rate freq=60khz */
//MCBSP
#define CLKGDVVAL (34)
#define PI (3.141592654)
#define RADIX (4) /* FFT 2 if NN is a power of 2, 4 if NN is a power of 4 */
static short d2s(double d);
int gen_twiddle_fft16x16r(short *w, int n, double scale);
extern far void vectors();
/* system configure */
void SysInit(void);
#endif