#pragma once
#include <inttypes.h>
#define q15_t int16_t
#define q31_t int32_t
#define FFT_BIN(num, re) (uint16_t)((float)(num + 0.5) * re)
#define FFT_INDEX(freq, re) (uint16_t)((float)freq / re)
void FFT(q15_t *data);