/*
 * conf_sdram.h
 *
 *  Created on: Dec 1, 2010
 *      Author: hemal.gujarathi
 */

#ifndef CONF_SDRAM_H_
#define CONF_SDRAM_H_

//Macro defines
#define CPU_SPEED						FOSC0
#define PBA_SPEED						CPU_SPEED
#define PBB_HZ							pm_freq_param.pba_f

#define DATA_FLASH						1
#define SD_MMC_CARD						2

#define BOOT_OPTION						SD_MMC_CARD

#define FILE_COPY_SUCCESS				1
#define ERROR_FILE_READ					2
#define ERROR_FILE_NOT_FOUND			3
#define ERROR_DATAFLASH_NOT_READY  		4
#define ERROR_FAT_NAVIGATION_INIT_FAIL 	5
#define ERROR_SDRAM_TEST_FAIL 			6

#define SDRAM_TEST_OK					1
#define SDRAM_TEST_FAIL					0

/* Obtained from the map file after compilation */
#define	FUNCTION_SIZE					0x28

#define	EXECUTE_FUNCTION_IN_SDRAM		0
#define	EXECUTE_CODE_IN_SDRAM			1

#define	SDRAM_START_ADDRESS				0xD0000000

#endif /* CONF_SDRAM_H_ */
