enabled .map generation in Makefile. Included twiddle generation at the startup of the blackfin (into main.c inside main() func)
This commit is contained in:
@ -28,6 +28,17 @@
|
||||
#include "l502_sport_rx.h"
|
||||
#include "l502_user_process.h"
|
||||
|
||||
|
||||
|
||||
|
||||
#define FFT_FP_EXTERNAL_TWIDDLES
|
||||
#define DATA_L (1<<10)
|
||||
#define TWIDDLE_L (DATA_L / 2)
|
||||
#include "FFT_FP_realisation.h"
|
||||
volatile int64_t twiddle_re[TWIDDLE_L] __attribute__((section(".sdram_noinit")));
|
||||
volatile int64_t twiddle_im[TWIDDLE_L] __attribute__((section(".sdram_noinit")));
|
||||
|
||||
|
||||
volatile uint32_t TX_buff[TX_BUFF_SIZE] __attribute__((section(".sdram_noinit")));
|
||||
volatile uint32_t TX_buff_shadow[TX_BUFF_SIZE] __attribute__((section(".sdram_noinit")));
|
||||
|
||||
@ -37,6 +48,8 @@ volatile uint32_t AVG_buff[AVG_BUFF_SIZE] __attribute__((section(".sdram_noinit"
|
||||
volatile uint32_t FFT_buff[FFT_BUFF_SIZE] __attribute__((section(".sdram_noinit")));
|
||||
|
||||
|
||||
|
||||
|
||||
/** Размер буфера на прием данных по SPORT0 в 32-битных словах */
|
||||
#define L502_SPORT_IN_BUF_SIZE (2048*1024)
|
||||
/** Размер буфера для приема данных по HostDMA на вывод в 32-битных словах */
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
void l502_init(void);
|
||||
#include "l502_global.h"
|
||||
#include "l502_cmd.h"
|
||||
#include "FFT_FP_realisation.h"
|
||||
|
||||
void stream_proc(void);
|
||||
|
||||
@ -17,7 +18,7 @@ SECTION("board_state", volatile t_l502_board_state g_state);
|
||||
int main(void) {
|
||||
/* Инициализация интерфейсов */
|
||||
l502_init();
|
||||
|
||||
fft_twiddle_gen(twiddle_re, twiddle_im);
|
||||
for (;;) {
|
||||
/* проверяем наличие команды от ПК и начинаяем
|
||||
обработку, если она есть */
|
||||
|
||||
Reference in New Issue
Block a user