00001 /****************************************************************************** 00002 ** Copyright (C) 2011 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 00035 //----------------------------------------------------------------------------- 00036 // Define 00037 //----------------------------------------------------------------------------- 00038 00039 #ifndef FLASH_H 00040 #define FLASH_H 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif 00045 00046 //----------------------------------------------------------------------------- 00047 // Includes 00048 //----------------------------------------------------------------------------- 00049 00050 #include "cpu.h" 00051 00052 /*#define EXECUTE_FROM_RAM(function) {\ 00053 #pragma CODE_SECTION(function, "ramfuncs")} 00054 */ 00055 00056 // These are defined by the linker (see F28335.cmd) 00057 extern Uint16 RamfuncsLoadStart; 00058 extern Uint16 RamfuncsLoadEnd; 00059 extern Uint16 RamfuncsRunStart; 00060 00061 00062 void InitFlash(void); 00063 // This function is implemented in DSP28XXX_MemCopy.c 00064 extern void MemCopy(Uint16 *SourceAddr, Uint16* SourceEndAddr, Uint16* DestAddr); 00065 00066 #ifdef __cplusplus 00067 } 00068 #endif /* extern "C" */ 00069 00070 #endif 00071 00072 //----------------------------------------------------------------------------- 00073 // End Of File 00074 //----------------------------------------------------------------------------- 00075 00076