Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
config.h
00001 /* 00002 * libmad - MPEG audio decoder library 00003 * Copyright (C) 2000-2004 Underbit Technologies, Inc. 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 */ 00020 /************************************************************************/ 00021 /* This library has been changed by Andreas Gruen to work on an LPC1768 00022 * Because the available RAM is too small for decoding, it uses 00023 * some of the AHB-RAM dedicated to the Ethernet peripheral to 00024 * store parts of the mad_decoder structure. 00025 * Therefore the Ethernet module cannot be used ! 00026 * The address is defined by AHBMEM below, ~12kByte are used 00027 * All other changes are made only to satisfy the mbed online compiler, 00028 * which treats all files as C++ code and does not allow additional 00029 * defines on the command line. 00030 * The changes are: 00031 * forced inclusion of "config.h" in all files 00032 * forced inclusion of "mbed.h" in all files via "config.h" 00033 * typecasts from void * 00034 * renaming of all .c-Files to .cpp 00035 * renaming of all .dat-Files to .h 00036 * 00037 * The exact changes can bee seen by a diff-tool comparing with 00038 * the libmad-0.15.1b source. 00039 * This modified version does no longer compile for other systems. 00040 * There are still one compiler warning that can be ignored. 00041 */ 00042 00043 # ifndef LIBMAD_CONFIG_H 00044 # define LIBMAD_CONFIG_H 00045 00046 #if defined(TARGET_LPC1768) 00047 #include "mbed.h" 00048 void *mad_malloc(unsigned int sz); 00049 void reset_ahb_mem(void); 00050 #endif 00051 00052 /* config.h. Generated by configure. */ 00053 /* config.h.in. Generated from configure.ac by autoheader. */ 00054 00055 00056 /* used by USB 00057 #define AHBMEM ((void *)0x2007C000) */ 00058 00059 /* used by ethernet */ 00060 #define AHBMEM ((void *)0x20080000) 00061 #define AHBMEMSIZE 16300 00062 00063 #define FPM_DEFAULT 00064 /* Define to enable diagnostic debugging support. */ 00065 /* #undef DEBUG */ 00066 00067 /* Define to enable experimental code. */ 00068 /* #undef EXPERIMENTAL */ 00069 00070 /* Define to 1 if you have the <assert.h> header file. */ 00071 /*#define HAVE_ASSERT_H 1*/ 00072 00073 /* Define to 1 if you have the <dlfcn.h> header file. */ 00074 /* #undef HAVE_DLFCN_H */ 00075 00076 /* Define to 1 if you have the <errno.h> header file. */ 00077 /* #define HAVE_ERRNO_H 1*/ 00078 00079 /* Define to 1 if you have the `fcntl' function. */ 00080 /* #undef HAVE_FCNTL */ 00081 00082 /* Define to 1 if you have the <fcntl.h> header file. */ 00083 /* #define HAVE_FCNTL_H 1*/ 00084 00085 /* Define to 1 if you have the `fork' function. */ 00086 /* #undef HAVE_FORK */ 00087 00088 /* Define to 1 if you have the <inttypes.h> header file. */ 00089 /* #define HAVE_INTTYPES_H 1*/ 00090 00091 /* Define to 1 if you have the <limits.h> header file. */ 00092 /* #define HAVE_LIMITS_H 1*/ 00093 00094 /* Define if your MIPS CPU supports a 2-operand MADD16 instruction. */ 00095 /* #undef HAVE_MADD16_ASM */ 00096 00097 /* Define if your MIPS CPU supports a 2-operand MADD instruction. */ 00098 /* #undef HAVE_MADD_ASM */ 00099 00100 /* Define to 1 if you have the <memory.h> header file. */ 00101 /* #define HAVE_MEMORY_H 1 */ 00102 00103 /* Define to 1 if you have the `pipe' function. */ 00104 /* #undef HAVE_PIPE */ 00105 00106 /* Define to 1 if you have the <stdint.h> header file. */ 00107 /* #define HAVE_STDINT_H 1*/ 00108 00109 /* Define to 1 if you have the <stdlib.h> header file. */ 00110 #define HAVE_STDLIB_H 1 00111 00112 /* Define to 1 if you have the <strings.h> header file. */ 00113 #define HAVE_STRINGS_H 1 00114 00115 /* Define to 1 if you have the <string.h> header file. */ 00116 /* #define HAVE_STRING_H 1 */ 00117 00118 /* Define to 1 if you have the <sys/stat.h> header file. */ 00119 /* #define HAVE_SYS_STAT_H 1*/ 00120 00121 /* Define to 1 if you have the <sys/types.h> header file. */ 00122 /* #define HAVE_SYS_TYPES_H 1*/ 00123 00124 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 00125 /* #undef HAVE_SYS_WAIT_H */ 00126 00127 /* Define to 1 if you have the <unistd.h> header file. */ 00128 /* #undef HAVE_UNISTD_H */ 00129 00130 /* Define to 1 if you have the `waitpid' function. */ 00131 /* #undef HAVE_WAITPID */ 00132 00133 /* Define to disable debugging assertions. */ 00134 /* #undef NDEBUG */ 00135 00136 /* Define to optimize for accuracy over speed. */ 00137 /* #undef OPT_ACCURACY */ 00138 00139 /* Define to optimize for speed over accuracy. */ 00140 /* #define OPT_SPEED */ 00141 00142 /* Define to enable a fast subband synthesis approximation optimization. */ 00143 /* #define OPT_SSO */ 00144 00145 /* Define to influence a strict interpretation of the ISO/IEC standards, even 00146 if this is in opposition with best accepted practices. */ 00147 /* #undef OPT_STRICT */ 00148 00149 /* Name of package */ 00150 #define PACKAGE "libmad" 00151 00152 /* Define to the address where bug reports for this package should be sent. */ 00153 #define PACKAGE_BUGREPORT "support@underbit.com" 00154 00155 /* Define to the full name of this package. */ 00156 #define PACKAGE_NAME "MPEG Audio Decoder" 00157 00158 /* Define to the full name and version of this package. */ 00159 #define PACKAGE_STRING "MPEG Audio Decoder 0.15.1b" 00160 00161 /* Define to the one symbol short name of this package. */ 00162 #define PACKAGE_TARNAME "libmad" 00163 00164 /* Define to the version of this package. */ 00165 #define PACKAGE_VERSION "0.15.1b" 00166 00167 /* The size of a `int', as computed by sizeof. */ 00168 #define SIZEOF_INT 4 00169 00170 /* The size of a `long', as computed by sizeof. */ 00171 #define SIZEOF_LONG 4 00172 00173 /* The size of a `long long', as computed by sizeof. */ 00174 #define SIZEOF_LONG_LONG 8 00175 00176 /* Define to 1 if you have the ANSI C header files. */ 00177 #define STDC_HEADERS 1 00178 00179 /* Version number of package */ 00180 #define VERSION "0.15.1b" 00181 00182 /* Define to empty if `const' does not conform to ANSI C. */ 00183 /* #undef const */ 00184 00185 /* Define as `__inline' if that's what the C compiler calls it, or to nothing 00186 if it is not supported. */ 00187 #define inline 00188 00189 /* Define to `int' if <sys/types.h> does not define. */ 00190 /* #undef pid_t */ 00191 00192 00193 /* Define mad_malloc to malloc if no special mem handling required */ 00194 00195 #endif
Generated on Tue Jul 12 2022 23:11:09 by
