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 00188 //----------------------------------------------------------------------------- 00189 // Define 00190 //----------------------------------------------------------------------------- 00191 00192 #ifndef TIMOTORLIB_H 00193 #define TIMOTORLIB_H 00194 00196 #ifndef DSP_FAMILY 00197 #define DSP_FAMILY DSP2833x 00198 #endif 00199 #define JOIN(x, y) JOIN_AGAIN(x, y) 00200 #define JOIN_AGAIN(x, y) x ## y 00201 #define QUOTE(PARAM) #PARAM 00202 #define MACRO_INC(PARAM) QUOTE(PARAM) 00203 00206 #define GENERATE_FLEX_INC(FILE) MACRO_INC(JOIN(DSP_FAMILY,_##FILE)) 00207 00209 typedef interrupt void(*interruptFCN)(void); 00210 00211 // Hardware headers 00212 #include "cpu.h" 00213 #include "cpuTimers.h" 00214 #include "gpio.h" 00215 #include "Epwm.h" 00216 #include "adc.h" 00217 #include "qep.h" 00218 #include "sci.h" 00219 // Software headers 00220 #include "Constants.h" 00221 #include "QDOperations.h" 00222 #include "Utils.h" 00223 #include "Control.h" 00224 #include "Sensorless.h" 00225 00226 #endif 00227 00228 //----------------------------------------------------------------------------- 00229 // End Of File 00230 //----------------------------------------------------------------------------- 00231