MP3 Player. You can change fwd/rev speed and skip. see: http://mbed.org/users/okini3939/notebook/lpc4088_madplayer/

Dependencies:   I2SSlave SDFileSystem TLV320 mbed

Committer:
okini3939
Date:
Tue Feb 18 00:22:50 2014 +0000
Revision:
0:8ba6230eefbd
1st build

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okini3939 0:8ba6230eefbd 1 /*
okini3939 0:8ba6230eefbd 2 * Copyright 2013 Embedded Artists AB
okini3939 0:8ba6230eefbd 3 *
okini3939 0:8ba6230eefbd 4 * Licensed under the Apache License, Version 2.0 (the "License");
okini3939 0:8ba6230eefbd 5 * you may not use this file except in compliance with the License.
okini3939 0:8ba6230eefbd 6 * You may obtain a copy of the License at
okini3939 0:8ba6230eefbd 7 *
okini3939 0:8ba6230eefbd 8 * http://www.apache.org/licenses/LICENSE-2.0
okini3939 0:8ba6230eefbd 9 *
okini3939 0:8ba6230eefbd 10 * Unless required by applicable law or agreed to in writing, software
okini3939 0:8ba6230eefbd 11 * distributed under the License is distributed on an "AS IS" BASIS,
okini3939 0:8ba6230eefbd 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
okini3939 0:8ba6230eefbd 13 * See the License for the specific language governing permissions and
okini3939 0:8ba6230eefbd 14 * limitations under the License.
okini3939 0:8ba6230eefbd 15 */
okini3939 0:8ba6230eefbd 16
okini3939 0:8ba6230eefbd 17 #ifndef __SDRAM_H
okini3939 0:8ba6230eefbd 18 #define __SDRAM_H
okini3939 0:8ba6230eefbd 19
okini3939 0:8ba6230eefbd 20 #include "stdint.h"
okini3939 0:8ba6230eefbd 21
okini3939 0:8ba6230eefbd 22 /*
okini3939 0:8ba6230eefbd 23 * These timing parameters are based on the EMC clock
okini3939 0:8ba6230eefbd 24 * there is no way of ensuring what the EMC clock frequency is
okini3939 0:8ba6230eefbd 25 * without severely bloating the code
okini3939 0:8ba6230eefbd 26 * ENSURE THAT THE EMC clock is one of these values
okini3939 0:8ba6230eefbd 27 */
okini3939 0:8ba6230eefbd 28 #define SDRAM_SPEED_48 0
okini3939 0:8ba6230eefbd 29 #define SDRAM_SPEED_50 1
okini3939 0:8ba6230eefbd 30 #define SDRAM_SPEED_60 2
okini3939 0:8ba6230eefbd 31 #define SDRAM_SPEED_72 3
okini3939 0:8ba6230eefbd 32 #define SDRAM_SPEED_80 4
okini3939 0:8ba6230eefbd 33
okini3939 0:8ba6230eefbd 34 #define SDRAM_SPEED SDRAM_SPEED_60
okini3939 0:8ba6230eefbd 35
okini3939 0:8ba6230eefbd 36 #define SDRAM_CONFIG_32BIT
okini3939 0:8ba6230eefbd 37 #define SDRAM_SIZE 0x2000000
okini3939 0:8ba6230eefbd 38
okini3939 0:8ba6230eefbd 39 #define SDRAM_BASE 0xA0000000 /*CS0*/
okini3939 0:8ba6230eefbd 40
okini3939 0:8ba6230eefbd 41 /* Initializes the SDRAM.
okini3939 0:8ba6230eefbd 42 *
okini3939 0:8ba6230eefbd 43 * The entire SDRAM will be made available to malloc per default.
okini3939 0:8ba6230eefbd 44 *
okini3939 0:8ba6230eefbd 45 * Note that this functions is called internally if malloc requests
okini3939 0:8ba6230eefbd 46 * memory from SDRAM and that hasn't been disabled with a call to
okini3939 0:8ba6230eefbd 47 * sdram_disableMallocSdram().
okini3939 0:8ba6230eefbd 48 *
okini3939 0:8ba6230eefbd 49 * @returns 0 on success, 1 on failure
okini3939 0:8ba6230eefbd 50 */
okini3939 0:8ba6230eefbd 51 uint32_t sdram_init();
okini3939 0:8ba6230eefbd 52
okini3939 0:8ba6230eefbd 53 /* Prevents malloc from using SDRAM.
okini3939 0:8ba6230eefbd 54 *
okini3939 0:8ba6230eefbd 55 * This function must be called before the first allocation that
okini3939 0:8ba6230eefbd 56 * would have been in SDRAM. If a big allocation has already been
okini3939 0:8ba6230eefbd 57 * made then this call will do nothing as the SDRAM will have been
okini3939 0:8ba6230eefbd 58 * initialized and all SDRAM given to malloc.
okini3939 0:8ba6230eefbd 59 */
okini3939 0:8ba6230eefbd 60 void sdram_disableMallocSdram();
okini3939 0:8ba6230eefbd 61
okini3939 0:8ba6230eefbd 62 #endif /* end __SDRAM_H */
okini3939 0:8ba6230eefbd 63 /****************************************************************************
okini3939 0:8ba6230eefbd 64 ** End Of File
okini3939 0:8ba6230eefbd 65 *****************************************************************************/
okini3939 0:8ba6230eefbd 66
okini3939 0:8ba6230eefbd 67