FFT.c for Code Composer Studio

Here's the FFT function in C; the comments inside the function have a
full description