This repository has been archived on 2026-08-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ciciec2026/sdk/software/examples/fft_dma/fft.h
2026-07-05 23:25:51 +08:00

18 lines
511 B
C

#pragma once
#define FFT_BASE 0xbf400000
#define FFT_IN_RE_BASE (FFT_BASE + 0x8000)
#define FFT_IN_IM_BASE (FFT_BASE + 0x9000)
#define FFT_OUT_RE_BASE (FFT_BASE + 0xA000)
#define FFT_OUT_IM_BASE (FFT_BASE + 0xB000)
#define FFT_CSR_REG (FFT_BASE + 0xC000)
#define FFT_CTRL_START (1 << 4)
#define FFT_STAT_DONE (1 << 1)
#define FFT_STAT_BUSY (1 << 0)
#define FFT_POINT_NUM 1024
#define FFT_SAMPLE_BITS 16
void fft_start();
void fft_wait();
unsigned int fft_get_csr();