00001 /****************************************************************************** 00002 ** Copyright (C) 2007 Pablo Garcia 00003 ** 00004 ** This library is free software; you can redistribute it and/or 00005 ** modify it under the terms of the GNU Lesser General Public 00006 ** License as published by the Free Software Foundation; either 00007 ** version 2.1 of the License, or (at your option) any later version. 00008 00009 ** This library is distributed in the hope that it will be useful, 00010 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 ** Lesser General Public License for more details. 00013 00014 ** You should have received a copy of the GNU Lesser General Public 00015 ** License along with this library; if not, write to the Free Software 00016 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 ******************************************************************************/ 00018 00175 //----------------------------------------------------------------------------- 00176 // Define 00177 //----------------------------------------------------------------------------- 00178 00179 #ifndef TIMOTORLIB_H 00180 #define TIMOTORLIB_H 00181 00183 #ifndef DSP_FAMILY 00184 #define DSP_FAMILY DSP2833x 00185 #endif 00186 #define JOIN(x, y) JOIN_AGAIN(x, y) 00187 #define JOIN_AGAIN(x, y) x ## y 00188 #define QUOTE(PARAM) #PARAM 00189 #define MACRO_INC(PARAM) QUOTE(PARAM) 00190 00193 #define GENERATE_FLEX_INC(FILE) MACRO_INC(JOIN(DSP_FAMILY,_##FILE)) 00194 00196 typedef interrupt void(*interruptFCN)(void); 00197 00198 // Hardware headers 00199 #include "cpu.h" 00200 #include "cpuTimers.h" 00201 #include "gpio.h" 00202 #include "Epwm.h" 00203 #include "adc.h" 00204 #include "qep.h" 00205 #include "sci.h" 00206 #include "spi.h" 00207 #include "flash.h" 00208 // Software headers 00209 #include "Constants.h" 00210 #include "QDOperations.h" 00211 #include "Utils.h" 00212 #include "Control.h" 00213 #include "Sensorless.h" 00214 00215 #endif 00216 00217 //----------------------------------------------------------------------------- 00218 // End Of File 00219 //----------------------------------------------------------------------------- 00220