fixed angle and cos generation. Problem was in diffrent declaration of DATA_L and other defines in different files. Solution: fixed include tree

This commit is contained in:
2025-10-09 20:00:48 +03:00
parent c12ae1f521
commit 2a30945bee
23 changed files with 5436 additions and 5438 deletions

View File

@ -38,8 +38,8 @@
//*/
#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")));
int64_t twiddle_re[TWIDDLE_L] __attribute__((section(".sdram_noinit")));
int64_t twiddle_im[TWIDDLE_L] __attribute__((section(".sdram_noinit")));
volatile uint32_t TX_buff[TX_BUFF_SIZE] __attribute__((section(".sdram_noinit")));

View File

@ -9,12 +9,32 @@
пользователем для написания своих алгоритмов обработки данных и реализации
пользовательских команд.
******************************************************************************/
#define FFT_INP_DATA_L (1<<10)
#include "l502_cmd.h"
#ifndef L502_USER_PROCESS_H_
#define L502_USER_PROCESS_H_
#ifndef FFT_FP_EXTERNAL_TWIDDLES
#define FFT_FP_EXTERNAL_TWIDDLES 1
#endif
#ifndef FFT_INP_DATA_L
#define FFT_INP_DATA_L (1 << 10)
#endif
#ifndef DATA_L
#define DATA_L FFT_INP_DATA_L
#endif
#ifndef TWIDDLE_L
#define TWIDDLE_L (DATA_L / 2)
#endif
/* остальной код заголовка */
//#endif /* L502_USER_PROCESS_H_ */
//#define FFT_FP_EXTERNAL_TWIDDLES
#define DATA_L (1<<10)
#define TWIDDLE_L (DATA_L / 2)
//#define TX_BUFF_SIZE 100000
#define RAW_DATA_BUFF_SIZE 1000
@ -29,8 +49,8 @@
#define TX_BUFF_SIZE 10000
#ifndef L502_USER_PROCESS_H_
#define L502_USER_PROCESS_H_
//#ifndef L502_USER_PROCESS_H_
//#define L502_USER_PROCESS_H_
enum buff_switch{