/////////////////////////////////////////////////////////////////////////
////                             FFT.h                               ////
////                                                                 ////
////   Header file containing defines and prototypes used by the     ////
////   FFT algorithm                                                 ////
////                                                                 ////
/////////////////////////////////////////////////////////////////////////
////        (C) Copyright 1996,2009 Custom Computer Services         ////
//// This source code may only be used by licensed users of the CCS  ////
//// C compiler.  This source code may only be distributed to other  ////
//// licensed users of the CCS C compiler.  No other use,            ////
//// reproduction or distribution is permitted without written       ////
//// permission.  Derivative programs created using this software    ////
//// in object code form are not restricted in any way.              ////
/////////////////////////////////////////////////////////////////////////

/*
Define the SFR registers used for FIR implementation using #word directive
*/
#word CORCON = getenv("SFR:CORCON")
#word MODCON = getenv("SFR:MODCON")
#word XBREV  = getenv("SFR:XBREV")
#word XMODSRT = getenv("SFR:XMODSRT")
#word XMODEND = getenv("SFR:XMODEND")
#word YMODSRT = getenv("SFR:YMODSRT")
#word YMODEND = getenv("SFR:YMODEND")

#define TABLE_SIZE 15
#define FILTER_SIZE 256
#define HALF_SIZE FILTER_SIZE/2
#define FRACT_MULTIPLIER   32768
#define BLOCK_LENGTH 512
#define PI 3.141592654
#define STEP_SIZE ((2*PI)/TABLE_SIZE)

#banky
signed int16 input[BLOCK_LENGTH];

#bankx
signed int16 Twid_factor[BLOCK_LENGTH];

