00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00012 00013 /* Copyright (c) 2007, Atmel Corporation All rights reserved. 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions are met: 00017 * 00018 * 1. Redistributions of source code must retain the above copyright notice, 00019 * this list of conditions and the following disclaimer. 00020 * 00021 * 2. Redistributions in binary form must reproduce the above copyright notice, 00022 * this list of conditions and the following disclaimer in the documentation 00023 * and/or other materials provided with the distribution. 00024 * 00025 * 3. The name of ATMEL may not be used to endorse or promote products derived 00026 * from this software without specific prior written permission. 00027 * 00028 * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED 00029 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00030 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY AND 00031 * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, 00032 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00033 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00034 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00035 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00036 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 00037 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00038 */ 00039 00040 00041 #ifndef _MEMORY_H_ 00042 #define _MEMORY_H_ 00043 00044 #include <string.h> 00045 00046 //_____ M A C R O S ________________________________________________________ 00047 //_____ D E F I N I T I O N S ______________________________________________ 00048 //_____ D E C L A R A T I O N S ____________________________________________ 00049 00050 //_____ F U N C T I O N S __________________________________________________ 00051 00052 #define memcpy_ram2ram memcpy 00053 #define memcpy_code2ram(x,y,z) code2data(y,x,z) // Caution keep param order !! 00054 #define memcmp_ram2ram memcmp 00055 #define memcmp_code2ram memcmp_code 00056 00057 // Caution functions needed for backward compatibility with FAT module for C51.. 00058 // TODO: rework fat code to get ride of these functions... 00059 void code2data ( U8 _CONST_TYPE_ *src , U8 _MEM_TYPE_SLOW_ *dest , U8 nb_data ); 00060 int memcmp_code ( U8 * ram, U8 _CONST_TYPE_ *rom, U16 n); 00061 00062 #endif // _MEMORY_H_ 00063
1.5.3